/* Generated by Nim Compiler v0.11.2 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>
typedef struct Tcgen456038 Tcgen456038;
typedef struct Ropeobj161009 Ropeobj161009;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tcell46347 Tcell46347;
typedef struct TNimType TNimType;
typedef struct Tcellseq46363 Tcellseq46363;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46359 Tcellset46359;
typedef struct Tpagedesc46355 Tpagedesc46355;
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 Ttypeseq190845 Ttypeseq190845;
typedef struct Ttype190849 Ttype190849;
typedef struct TNimNode TNimNode;
typedef struct Intset187056 Intset187056;
typedef struct Ttrunk187052 Ttrunk187052;
typedef struct Ttrunkseq187054 Ttrunkseq187054;
typedef struct Tpasscontext241005 Tpasscontext241005;
typedef struct Tsym190843 Tsym190843;
typedef struct Tidobj167015 Tidobj167015;
typedef struct TNimObject TNimObject;
typedef struct Tscope190837 Tscope190837;
typedef struct TY190944 TY190944;
typedef struct Tstrtable190817 Tstrtable190817;
typedef struct Tsymseq190815 Tsymseq190815;
typedef struct Tident167021 Tident167021;
typedef struct Tlineinfo163338 Tlineinfo163338;
typedef struct Tnode190813 Tnode190813;
typedef struct Tloc190827 Tloc190827;
typedef struct Tlib190831 Tlib190831;
typedef struct TY456155 TY456155;
typedef struct TY86345 TY86345;
typedef struct Tidtable190861 Tidtable190861;
typedef struct Tidpairseq190859 Tidpairseq190859;
typedef struct Tlinkedlist130028 Tlinkedlist130028;
typedef struct Tlistentry130022 Tlistentry130022;
typedef struct Tcproc456034 Tcproc456034;
typedef struct Tnodetable190873 Tnodetable190873;
typedef struct Tnodepairseq190871 Tnodepairseq190871;
typedef struct Tnodeseq190807 Tnodeseq190807;
typedef struct TY163351 TY163351;
typedef struct TY456106 TY456106;
typedef struct Tinfocc170011 Tinfocc170011;
typedef struct Tblock456032 Tblock456032;
typedef struct Ttraversalclosure464431 Ttraversalclosure464431;
typedef struct Tbitset239012 Tbitset239012;
typedef struct TY122008 TY122008;
typedef struct Trodreader233030 Trodreader233030;
typedef struct TY163415 TY163415;
typedef struct Tfileinfo163336 Tfileinfo163336;
typedef struct Tinfoos159049 Tinfoos159049;
typedef struct Tinfocpu159479 Tinfocpu159479;
typedef struct Tstrentry130024 Tstrentry130024;
typedef struct TY119589 TY119589;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
typedef struct Tinstantiation190833 Tinstantiation190833;
typedef struct Tidpair190857 Tidpair190857;
typedef struct Tnodepair190869 Tnodepair190869;
typedef struct TY190933 TY190933;
typedef struct Tindex233028 Tindex233028;
typedef struct Tiitable198274 Tiitable198274;
typedef struct Tiipairseq198272 Tiipairseq198272;
typedef struct Memfile231208 Memfile231208;
typedef struct Tiipair198270 Tiipair198270;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tcell46347  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46363  {
NI len;
NI cap;
Tcell46347** d;
};
struct  Tcellset46359  {
NI counter;
NI max;
Tpagedesc46355* head;
Tpagedesc46355** 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;
Tcellseq46363 zct;
Tcellseq46363 decstack;
Tcellset46359 cycleroots;
Tcellseq46363 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
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  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Intset187056  {
NI counter;
NI max;
Ttrunk187052* head;
Ttrunkseq187054* data;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj167015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable190817  {
NI counter;
Tsymseq190815* data;
};
struct  Tlineinfo163338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc190827  {
NU8 k;
NU8 s;
NU16 flags;
Ttype190849* t;
Ropeobj161009* r;
Ropeobj161009* heaproot;
};
struct  Tsym190843  {
  Tidobj167015 Sup;
NU8 kind;
union{
struct {Ttypeseq190845* typeinstcache;
Tscope190837* typscope;
} S1;
struct {TY190944* procinstcache;
Tsym190843* gcunsafetyreason;
} S2;
struct {TY190944* usedgenerics;
Tstrtable190817 tab;
} S3;
struct {Tsym190843* guard;
} S4;
} kindU;
NU16 magic;
Ttype190849* typ;
Tident167021* name;
Tlineinfo163338 info;
Tsym190843* owner;
NU32 flags;
Tnode190813* ast;
NU32 options;
NI position;
NI offset;
Tloc190827 loc;
Tlib190831* annex;
Tnode190813* constraint;
};
struct TY86345 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tpasscontext241005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
typedef Ropeobj161009* Tcfilesections456022[18];
struct  Tidtable190861  {
NI counter;
Tidpairseq190859* data;
};
struct  Tlinkedlist130028  {
Tlistentry130022* head;
Tlistentry130022* tail;
NI counter;
};
struct  Tnodetable190873  {
NI counter;
Tnodepairseq190871* data;
};
typedef Ropeobj161009* TY456143[10];
struct  Tcgen456038  {
  Tpasscontext241005 Sup;
Tsym190843* module;
NimStringDesc* filename;
Tcfilesections456022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable190861 typecache;
Tidtable190861 forwtypecache;
Intset187056 declaredthings;
Intset187056 declaredprotos;
Tlinkedlist130028 headerfiles;
Intset187056 typeinfomarker;
Tcproc456034* initproc;
Tcproc456034* postinitproc;
Tcproc456034* preinitproc;
Ttypeseq190845* typestack;
Tnodetable190873 datacache;
Tsymseq190815* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj161009* typenodesname;
Ropeobj161009* nimtypesname;
NI labels;
TY456143 extensionloaders;
Ropeobj161009* injectstmt;
};
struct  Tcproc456034  {
Tsym190843* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo163338 lastlineinfo;
Tnodeseq190807* nestedtrystmts;
NI inexceptblock;
TY163351* finallysafepoints;
NI labels;
TY456106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen456038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj161009* gcframetype;
};
struct  Tident167021  {
  Tidobj167015 Sup;
NimStringDesc* s;
Tident167021* next;
NI h;
};
typedef Ropeobj161009* TY460664[1];
struct  Tlistentry130022  {
  TNimObject Sup;
Tlistentry130022* prev;
Tlistentry130022* next;
};
struct  Tlib190831  {
  Tlistentry130022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj161009* name;
Tnode190813* path;
};
typedef Ropeobj161009* TY490436[2];
struct  Ttype190849  {
  Tidobj167015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq190845* sons;
Tnode190813* n;
Tsym190843* owner;
Tsym190843* sym;
Tsym190843* destructor;
Tsym190843* deepcopy;
Tsym190843* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc190827 loc;
};
typedef NimStringDesc* TY461351[14];
struct  Tnode190813  {
Ttype190849* typ;
Tlineinfo163338 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym190843* sym;
} S4;
struct {Tident167021* ident;
} S5;
struct {Tnodeseq190807* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef Ropeobj161009* TY462566[4];
typedef NimStringDesc* TY190020[10];
typedef Ropeobj161009* TY462569[3];
struct  Ropeobj161009  {
  TNimObject Sup;
Ropeobj161009* left;
Ropeobj161009* right;
NI length;
NimStringDesc* data;
};
struct Tinfocc170011 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
NimStringDesc* Field3;
NimStringDesc* Field4;
NimStringDesc* Field5;
NimStringDesc* Field6;
NimStringDesc* Field7;
NimStringDesc* Field8;
NimStringDesc* Field9;
NimStringDesc* Field10;
NimStringDesc* Field11;
NimStringDesc* Field12;
NimStringDesc* Field13;
NimStringDesc* Field14;
NimStringDesc* Field15;
NimStringDesc* Field16;
NimStringDesc* Field17;
NimStringDesc* Field18;
NimStringDesc* Field19;
NU8 Field20;
};
typedef Tinfocc170011 TY170435[12];
typedef Ropeobj161009* TY161572[1];
typedef Ropeobj161009* Tcprocsections456026[3];
struct  Tblock456032  {
NI id;
Ropeobj161009* label;
Tcprocsections456026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
struct  Ttraversalclosure464431  {
Tcproc456034* p;
NimStringDesc* visitorfrmt;
};
typedef Ropeobj161009* TY464247[6];
typedef Ropeobj161009* TY463801[7];
typedef Ropeobj161009* TY463876[5];
typedef NimStringDesc* TY481860[20];
typedef NimStringDesc* TY480835[4];
typedef NimStringDesc* TY486401[4];
typedef NimStringDesc* TY481030[51];
typedef NimStringDesc* TY480487[12];
typedef NimStringDesc* TY486856[2];
typedef NimStringDesc* TY486039[6];
typedef NU8 TY178407[32];
struct  Tfileinfo163336  {
NimStringDesc* fullpath;
NimStringDesc* projpath;
NimStringDesc* shortname;
Ropeobj161009* quotedname;
TY163351* lines;
NimStringDesc* dirtyfile;
};
struct Tinfoos159049 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
NimStringDesc* Field3;
NimStringDesc* Field4;
NimStringDesc* Field5;
NimStringDesc* Field6;
NimStringDesc* Field7;
NimStringDesc* Field8;
NimStringDesc* Field9;
NimStringDesc* Field10;
NimStringDesc* Field11;
NU8 Field12;
};
typedef Tinfoos159049 TY159071[24];
struct Tinfocpu159479 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef Tinfocpu159479 TY159497[14];
struct  Tstrentry130024  {
  Tlistentry130022 Sup;
NimStringDesc* data;
};
struct TY119589 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
};
typedef NI TY27420[16];
struct  Tpagedesc46355  {
Tpagedesc46355* 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  Ttrunk187052  {
Ttrunk187052* next;
NI key;
TY27420 bits;
};
struct  Tscope190837  {
NI depthlevel;
Tstrtable190817 symbols;
Tnodeseq190807* usingsyms;
Tscope190837* parent;
};
struct  Tidpair190857  {
Tidobj167015* key;
TNimObject* val;
};
struct  Tnodepair190869  {
NI h;
Tnode190813* key;
NI val;
};
struct  Tiitable198274  {
NI counter;
Tiipairseq198272* data;
};
struct  Tindex233028  {
NI lastidxkey;
NI lastidxval;
Tiitable198274 tab;
NimStringDesc* r;
NI offset;
};
struct  Memfile231208  {
void* mem;
NI size;
int handle;
};
struct  Trodreader233030  {
  TNimObject Sup;
NI pos;
NCSTRING s;
NU32 options;
NU8 reason;
TY190933* moddeps;
TY190933* files;
NI dataidx;
NI convertersidx;
NI initidx;
NI interfidx;
NI compilerprocsidx;
NI methodsidx;
NimStringDesc* filename;
Tindex233028 index;
Tindex233028 imports;
NI readerindex;
NI line;
NI moduleid;
Tidtable190861 syms;
Memfile231208 memfile;
Tsymseq190815* methods;
NimStringDesc* origfile;
NIM_BOOL inviewmode;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct  Tinstantiation190833  {
Tsym190843* sym;
Ttypeseq190845* concretetypes;
TY190933* usedby;
};
struct  Tiipair198270  {
NI key;
NI val;
};
struct Ttypeseq190845 {
  TGenericSeq Sup;
  Ttype190849* data[SEQ_DECL_SIZE];
};
struct TY456155 {
  TGenericSeq Sup;
  Tcgen456038* data[SEQ_DECL_SIZE];
};
struct Tsymseq190815 {
  TGenericSeq Sup;
  Tsym190843* data[SEQ_DECL_SIZE];
};
struct Tbitset239012 {
  TGenericSeq Sup;
  NI8 data[SEQ_DECL_SIZE];
};
struct TY456106 {
  TGenericSeq Sup;
  Tblock456032 data[SEQ_DECL_SIZE];
};
struct TY122008 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY163351 {
  TGenericSeq Sup;
  Ropeobj161009* data[SEQ_DECL_SIZE];
};
struct Tnodeseq190807 {
  TGenericSeq Sup;
  Tnode190813* data[SEQ_DECL_SIZE];
};
struct TY163415 {
  TGenericSeq Sup;
  Tfileinfo163336 data[SEQ_DECL_SIZE];
};
struct Ttrunkseq187054 {
  TGenericSeq Sup;
  Ttrunk187052* data[SEQ_DECL_SIZE];
};
struct TY190944 {
  TGenericSeq Sup;
  Tinstantiation190833* data[SEQ_DECL_SIZE];
};
struct Tidpairseq190859 {
  TGenericSeq Sup;
  Tidpair190857 data[SEQ_DECL_SIZE];
};
struct Tnodepairseq190871 {
  TGenericSeq Sup;
  Tnodepair190869 data[SEQ_DECL_SIZE];
};
struct TY190933 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct Tiipairseq198272 {
  TGenericSeq Sup;
  Tiipair198270 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Ropeobj161009*, rope_161320)(NimStringDesc* s);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Tcell46347*, usrtocell_49846)(void* usr);
static N_INLINE(void, rtladdzct_51404)(Tcell46347* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46363* s, Tcell46347* c);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initintset_187927)(Intset187056* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
N_NIMCALL(Tcgen456038*, newmodule_492895)(Tsym190843* module);
N_NIMCALL(Tcgen456038*, getcgenmodule_459235)(Tsym190843* s);
N_NIMCALL(void, internalerror_165218)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_165306)(TY86345 x);
N_NIMCALL(Tcgen456038*, rawnewmodule_492882)(Tsym190843* module);
N_NIMCALL(Tcgen456038*, rawnewmodule_492505)(Tsym190843* module, NimStringDesc* filename);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, initlinkedlist_130043)(Tlinkedlist130028* list);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(void, initidtable_194057)(Tidtable190861* x);
N_NIMCALL(Tcproc456034*, newproc_456229)(Tsym190843* prc, Tcgen456038* module);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_52222)(Tcell46347* c);
static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46347* c);
static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c);
N_NOINLINE(void, incl_47065)(Tcellset46359* s, Tcell46347* cell);
static N_INLINE(void, decref_51804)(Tcell46347* c);
N_NIMCALL(NU32, initprocoptions_492471)(Tcgen456038* m);
N_NIMCALL(Tcproc456034*, newpreinitproc_492449)(Tcgen456038* m);
N_NIMCALL(Tcproc456034*, newpostinitproc_492460)(Tcgen456038* m);
N_NIMCALL(void, initnodetable_194147)(Tnodetable190873* x);
N_NIMCALL(Ropeobj161009*, gettempname_461002)(void);
N_NIMCALL(Ropeobj161009*, ropecg_459616)(Tcgen456038* m, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(void, add_161545)(Ropeobj161009** a, NimStringDesc* b);
N_NIMCALL(void, add_161534)(Ropeobj161009** a, Ropeobj161009* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_76243, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
N_NIMCALL(Ropeobj161009*, cgsym_459609)(Tcgen456038* m, NimStringDesc* name);
N_NIMCALL(Tsym190843*, getcompilerproc_238036)(NimStringDesc* name);
N_NIMCALL(void, genproc_460387)(Tcgen456038* m, Tsym190843* prc);
N_NIMCALL(NIM_BOOL, isactivated_491037)(Tsym190843* prc);
N_NIMCALL(void, fillprocloc_466807)(Tsym190843* sym);
N_NIMCALL(void, fillloc_459315)(Tloc190827* a, NU8 k, Ttype190849* typ, Ropeobj161009* r, NU8 s);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(Ropeobj161009*, manglename_460425)(Tsym190843* s);
N_NIMCALL(NIM_BOOL, iskeyword_460402)(Tident167021* w);
N_NIMCALL(NimStringDesc*, mangle_454896)(NimStringDesc* name);
N_NIMCALL(Ropeobj161009*, HEX25_162235)(NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(Ropeobj161009*, rope_161407)(NI64 i);
N_NIMCALL(void, addforwardedproc_459206)(Tcgen456038* m, Tsym190843* prc);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, genprocnoforward_490483)(Tcgen456038* m, Tsym190843* prc);
N_NIMCALL(void, useheader_459400)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(NIM_BOOL, includestr_130279)(Tlinkedlist130028* list, NimStringDesc* data);
N_NIMCALL(NimStringDesc*, getstr_195628)(Tnode190813* a);
N_NIMCALL(void, genprocprototype_466890)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(Tsym190843*, getmodule_198243)(Tsym190843* s);
N_NIMCALL(NIM_BOOL, containsorincl_187898)(Intset187056* s, NI key);
N_NIMCALL(Ropeobj161009*, gettypedesc_463073)(Tcgen456038* m, Ttype190849* typ);
N_NIMCALL(Ropeobj161009*, gettypedescaux_460897)(Tcgen456038* m, Ttype190849* typ, Intset187056* check);
N_NIMCALL(Ttype190849*, getuniquetype_454656)(Ttype190849* key);
N_NIMCALL(Ropeobj161009*, gettypepre_461376)(Tcgen456038* m, Ttype190849* typ);
N_NIMCALL(Ropeobj161009*, getsimpletypedesc_461345)(Tcgen456038* m, Ttype190849* typ);
N_NIMCALL(Ropeobj161009*, typenameorliteral_461304)(Ttype190849* t, NimStringDesc* literal);
N_NIMCALL(Ropeobj161009*, gettypename_460692)(Ttype190849* typ);
N_NIMCALL(Ropeobj161009*, HEX26_161436)(Ropeobj161009* a, Ropeobj161009* b);
N_NIMCALL(Ropeobj161009*, typename_460668)(Ttype190849* typ);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_82529, TNimType* typ);
N_NIMCALL(NI64, firstord_220004)(Ttype190849* t);
N_NIMCALL(NI64, getsize_220190)(Ttype190849* typ);
N_NIMCALL(void, internalerror_165199)(Tlineinfo163338 info, NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, nimInt64ToStr)(NI64 x);
N_NIMCALL(Ropeobj161009*, cachegettype_460994)(Tidtable190861 tab, Ttype190849* key);
N_NIMCALL(TNimObject*, idtableget_198182)(Tidtable190861 t, Tidobj167015* key);
N_NIMCALL(NIM_BOOL, isimportedcpptype_460867)(Ttype190849* t);
N_NIMCALL(NimStringDesc*, typetostring_220032)(Ttype190849* typ, NU8 prefer);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(Ttype190849*, lastson_193442)(Ttype190849* n);
N_NIMCALL(Ttype190849*, skiptypes_194167)(Ttype190849* t, NU64 kinds);
N_NIMCALL(Ttype190849*, elemtype_220522)(Ttype190849* t);
N_NIMCALL(Ropeobj161009*, HEX26_161471)(Ropeobj161009* a, NimStringDesc* b);
N_NIMCALL(Ropeobj161009*, gettypeforward_461452)(Tcgen456038* m, Ttype190849* typ);
N_NIMCALL(NIM_BOOL, isimportedtype_460837)(Ttype190849* t);
N_NIMCALL(void, addf_162635)(Ropeobj161009** c, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(NimStringDesc*, getforwardstructformat_461425)(Tcgen456038* m);
N_NIMCALL(Ropeobj161009*, structorunion_461408)(Ttype190849* t);
N_NIMCALL(void, idtableput_198196)(Tidtable190861* t, Tidobj167015* key, TNimObject* val);
N_NIMCALL(void, pushtype_461359)(Tcgen456038* m, Ttype190849* typ);
N_NIMCALL(void, genprocparams_461537)(Tcgen456038* m, Ttype190849* t, Ropeobj161009** rettype, Ropeobj161009** params, Intset187056* check, NIM_BOOL declareenvironment);
N_NIMCALL(NIM_BOOL, isinvalidreturntype_460948)(Ttype190849* rettype);
N_NIMCALL(NU8, maptype_460778)(Ttype190849* typ);
N_NIMCALL(NU8, mapsettype_460771)(Ttype190849* typ);
N_NIMCALL(NIM_BOOL, needscomplexassignment_460903)(Ttype190849* typ);
N_NIMCALL(NIM_BOOL, containsgarbagecollectedref_220154)(Ttype190849* typ);
static N_INLINE(NIM_BOOL, isobjlackingtypefield_460910)(Ttype190849* typ);
N_NIMCALL(NIM_BOOL, ispureobject_220196)(Ttype190849* typ);
N_NIMCALL(NI, sonslen_193403)(Tnode190813* n);
static N_INLINE(NIM_BOOL, iscompiletimeonly_229712)(Ttype190849* t);
N_NIMCALL(NU8, paramstorageloc_461517)(Tsym190843* param);
N_NIMCALL(NIM_BOOL, ccgintroducedptr_461018)(Tsym190843* s);
N_NIMCALL(Ropeobj161009*, gettypedescweak_461495)(Tcgen456038* m, Ttype190849* t, Intset187056* check);
N_NIMCALL(NU8, mapreturntype_460821)(Ttype190849* typ);
N_NIMCALL(Ropeobj161009*, HEX26_161482)(NimStringDesc* a, Ropeobj161009* b);
N_NIMCALL(void, appcg_459880)(Tcgen456038* m, Ropeobj161009** c, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(NI64, lengthord_220016)(Ttype190849* t);
N_NIMCALL(NIM_BOOL, scancppgenericslot_462308)(NimStringDesc* pat, NI* cursor, NI* outidx, NI* outstars);
N_NIMCALL(Ttype190849*, resolvestarsincpptype_462381)(Ttype190849* typ, NI idx, NI stars);
N_NIMCALL(NI, len_193377)(Ttype190849* n);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI start);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI first);
N_NIMCALL(Ropeobj161009*, getrecorddesc_462108)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name, Intset187056* check);
N_NIMCALL(Ropeobj161009*, getrecordfields_462098)(Tcgen456038* m, Ttype190849* typ, Intset187056* check);
N_NIMCALL(Ropeobj161009*, genrecordfieldsaux_461866)(Tcgen456038* m, Tnode190813* n, Ropeobj161009* accessexpr, Ttype190849* rectype, Intset187056* check);
N_NIMCALL(Tnode190813*, lastson_193431)(Tnode190813* n);
N_NIMCALL(Ropeobj161009*, manglerecfieldname_461803)(Tsym190843* field, Ttype190849* rectype);
N_NIMCALL(NimStringDesc*, manglefield_460418)(Tident167021* name);
N_NIMCALL(NIM_CHAR, nsuToUpperChar)(NIM_CHAR c);
N_NIMCALL(Ropeobj161009*, gettupledesc_462245)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name, Intset187056* check);
N_NIMCALL(NI, sonslen_193351)(Ttype190849* n);
N_NIMCALL(void, excl_187871)(Intset187056* s, NI key);
N_NIMCALL(Ropeobj161009*, mangledynlibproc_466426)(Tsym190843* sym);
N_NIMCALL(Ropeobj161009*, genprocheader_463301)(Tcgen456038* m, Tsym190843* prc);
N_NIMCALL(void, genclinedir_460219)(Ropeobj161009** r, Tlineinfo163338 info);
N_NIMCALL(void, genclinedir_460060)(Ropeobj161009** r, NimStringDesc* filename, NI line);
N_NIMCALL(NimStringDesc*, makesinglelinecstring_454870)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, tofullpath_164276)(NI32 fileidx);
N_NIMCALL(NI, safelinenm_460050)(Tlineinfo163338 info);
static N_INLINE(NI, tolinenumber_164439)(Tlineinfo163338 info);
static N_INLINE(NIM_BOOL, crossescppboundary_490362)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(void, genprocaux_489893)(Tcgen456038* m, Tsym190843* prc);
static N_INLINE(NI, len_191097)(Tnode190813* n);
N_NIMCALL(void, assignlocalvar_466207)(Tcproc456034* p, Tsym190843* s);
N_NIMCALL(Ropeobj161009*, localvardecl_466119)(Tcproc456034* p, Tsym190843* s);
N_NIMCALL(void, line_459975)(Tcproc456034* p, NU8 s, Ropeobj161009* r);
static N_INLINE(Ropeobj161009**, s_456184)(Tcproc456034* p, NU8 s);
N_NIMCALL(Ropeobj161009*, indentline_459925)(Tcproc456034* p, Ropeobj161009* r);
N_NIMCALL(void, prepend_162205)(Ropeobj161009** a, Ropeobj161009* b);
N_NIMCALL(void, localdebuginfo_466030)(Tcproc456034* p, Tsym190843* s);
N_NIMCALL(void, linef_459997)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(Ropeobj161009*, makecstring_163449)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(Ropeobj161009*, gentypeinfo_463368)(Tcgen456038* m, Ttype190849* t_463371);
N_NIMCALL(Tcgen456038*, bmod_456218)(Tsym190843* module);
N_NIMCALL(void, gentypeinfoauxbase_463390)(Tcgen456038* m, Ttype190849* typ, Ttype190849* origtype, Ropeobj161009* name, Ropeobj161009* base);
N_NIMCALL(NIM_BOOL, canformacycle_220166)(Ttype190849* typ);
N_NIMCALL(void, gentupleinfo_463995)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name);
N_NIMCALL(Ropeobj161009*, getnimnode_463372)(Tcgen456038* m);
N_NIMCALL(Ttype190849*, fakeclosuretype_464416)(Tsym190843* owner);
N_NIMCALL(Ttype190849*, newtype_193140)(NU8 kind, Tsym190843* owner);
N_NIMCALL(void, rawaddson_194478)(Ttype190849* father, Ttype190849* son);
N_NIMCALL(void, gentypeinfoaux_463460)(Tcgen456038* m, Ttype190849* typ, Ttype190849* origtype, Ropeobj161009* name);
N_NIMCALL(Ropeobj161009*, gentraverseproc_465035)(Tcgen456038* m, Ttype190849* typ, NU8 reason);
N_NIMCALL(Ropeobj161009*, getglobaltempname_461010)(void);
static N_INLINE(NI, backendid_189422)(void);
N_NIMCALL(void, gentraverseprocseq_464832)(Ttraversalclosure464431* c, Ropeobj161009* accessor, Ttype190849* typ);
N_NIMCALL(void, gettemp_464444)(Tcproc456034* p, Ttype190849* t, Tloc190827* result, NIM_BOOL needsinit);
N_NIMCALL(void, linefmt_460023)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(void, constructloc_465842)(Tcproc456034* p, Tloc190827 loc, NIM_BOOL istemp);
static N_INLINE(NIM_BOOL, iscomplexvaluetype_465759)(Ttype190849* t);
N_NIMCALL(Ropeobj161009*, rdloc_465593)(Tloc190827 a);
N_NIMCALL(void, usestringh_459390)(Tcgen456038* m);
N_NIMCALL(Ropeobj161009*, addrloc_465615)(Tloc190827 a);
N_NIMCALL(void, genobjectinit_465665)(Tcproc456034* p, NU8 section, Ttype190849* t, Tloc190827 a, NIM_BOOL takeaddr);
N_NIMCALL(NU8, analyseobjectwithtypefield_220216)(Ttype190849* t);
N_NIMCALL(Ttype190849*, getsystype_238030)(NU8 kind);
N_NIMCALL(void, gentraverseproc_464434)(Ttraversalclosure464431* c, Ropeobj161009* accessor, Ttype190849* typ_464439);
static N_INLINE(Ropeobj161009*, parentobj_464678)(Ropeobj161009* accessor, Tcgen456038* m);
N_NIMCALL(void, gentraverseproc_464451)(Ttraversalclosure464431* c, Ropeobj161009* accessor, Tnode190813* n);
N_NIMCALL(void, gencaserange_464440)(Tcproc456034* p, Tnode190813* branch);
static N_INLINE(Tnode190813*, HEX5BHEX5D_191244)(Tnode190813* n, NI i);
N_NIMCALL(Ropeobj161009*, genliteral_466921)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Ropeobj161009*, genliteral_478327)(Tcproc456034* p, Tnode190813* n, Ttype190849* ty);
N_NIMCALL(Ropeobj161009*, intliteral_466915)(NI64 i);
N_NIMCALL(Ropeobj161009*, int64literal_478236)(NI64 i);
N_NIMCALL(Ropeobj161009*, uint64literal_478251)(NU64 i);
N_NIMCALL(NimStringDesc*, HEX24_6401)(NU64 x);
N_NIMCALL(NI, nodetabletestorset_242698)(Tnodetable190873* t, Tnode190813* key, NI val);
N_NIMCALL(Ropeobj161009*, getstrlit_478316)(Tcgen456038* m, NimStringDesc* s);
N_NIMCALL(NimStringDesc*, tostrmaxprecision_197024)(NF f);
N_NIMCALL(Tnode190813*, copynode_194640)(Tnode190813* src);
N_NIMCALL(void, linecg_460010)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(void, genarrayinfo_464408)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name);
N_NIMCALL(void, gensetinfo_464279)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name);
N_NIMCALL(void, genenuminfo_464056)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name);
N_NIMCALL(void, genobjectinfo_463943)(Tcgen456038* m, Ttype190849* typ, Ttype190849* origtype, Ropeobj161009* name);
N_NIMCALL(void, genobjectfields_463542)(Tcgen456038* m, Ttype190849* typ, Tnode190813* n, Ropeobj161009* expr);
N_NIMCALL(Ropeobj161009*, discriminatortablename_463483)(Tcgen456038* m, Ttype190849* objtype_463486, Tsym190843* d);
N_NIMCALL(Tsym190843*, lookupinrecord_198236)(Tnode190813* n, Tident167021* field);
N_NIMCALL(NI64, getordvalue_220178)(Tnode190813* n);
N_NIMCALL(void, gendeepcopyproc_465472)(Tcgen456038* m, Tsym190843* s, Ropeobj161009* result);
N_NIMCALL(void, initlocalvar_465858)(Tcproc456034* p, Tsym190843* v, NIM_BOOL immediateasgn);
N_NIMCALL(void, fillresult_461268)(Tsym190843* param);
N_NIMCALL(void, assignparam_466613)(Tcproc456034* p, Tsym190843* s);
N_NIMCALL(void, closuresetup_489854)(Tcproc456034* p, Tsym190843* prc);
N_NIMCALL(void, genstmts_466874)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(void, expr_466881)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, putlocintodest_466897)(Tcproc456034* p, Tloc190827* d, Tloc190827 s);
N_NIMCALL(void, genassignment_466906)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags);
N_NIMCALL(void, genrefassign_465750)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags);
static N_INLINE(NIM_BOOL, usesnativegc_154184)(void);
N_NIMCALL(void, keepalive_465907)(Tcproc456034* p, Tloc190827 tokeepalive);
N_NIMCALL(void, optasgnloc_478858)(Tloc190827 a, Ttype190849* t, Ropeobj161009* field, Tloc190827* Result);
N_NIMCALL(void, genoptasgntuple_479004)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags);
N_NIMCALL(void, gengenericasgn_479198)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags);
N_NIMCALL(NI, asgncomplexity_478805)(Tnode190813* n);
N_NIMCALL(void, genoptasgnobject_479100)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags, Tnode190813* t);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_NIMCALL(void, genvarprototype_466860)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(void, genvarprototypeaux_472678)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(void, declarethreadvar_466271)(Tcgen456038* m, Tsym190843* s, NIM_BOOL isextern);
static N_INLINE(NIM_BOOL, emulatedthreadvars_460382)(void);
N_NIMCALL(NIM_BOOL, issimpleconst_459350)(Ttype190849* typ);
N_NIMCALL(void, putintodest_479562)(Tcproc456034* p, Tloc190827* d, Ttype190849* t, Ropeobj161009* r);
N_NIMCALL(void, initloc_459300)(Tloc190827* result, NU8 k, Ttype190849* typ, NU8 s);
N_NIMCALL(void, gencomplexconst_487885)(Tcproc456034* p, Tsym190843* sym, Tloc190827* d);
N_NIMCALL(void, requestconstimpl_466867)(Tcproc456034* p, Tsym190843* sym);
N_NIMCALL(Tcgen456038*, findpendingmodule_459256)(Tcgen456038* m, Tsym190843* s);
N_NIMCALL(Ropeobj161009*, genconstexpr_487301)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, tobitset_240004)(Tnode190813* s, Tbitset239012** b);
N_NIMCALL(Ropeobj161009*, genrawsetdata_478642)(Tbitset239012* cs, NI size);
N_NIMCALL(NimStringDesc*, nsuToHex)(NI64 x, NI len);
N_NIMCALL(NI64, bitsettoword_478435)(Tbitset239012* s, NI size);
N_NIMCALL(Ropeobj161009*, genconstseq_488958)(Tcproc456034* p, Tnode190813* n, Ttype190849* t);
N_NIMCALL(void, appcg_459894)(Tcgen456038* m, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(Ropeobj161009*, genconstsimplelist_488908)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Ropeobj161009*, gennamedconstexpr_488890)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, initlocexpr_466937)(Tcproc456034* p, Tnode190813* e, Tloc190827* result);
N_NIMCALL(void, accessthreadlocalvar_460375)(Tcproc456034* p, Tsym190843* s);
static N_INLINE(Ropeobj161009**, procsec_456205)(Tcproc456034* p, NU8 s);
static N_INLINE(NIM_BOOL, isemptytype_195933)(Ttype190849* t);
N_NIMCALL(void, putdataintodest_479527)(Tcproc456034* p, Tloc190827* d, Ttype190849* t, Ropeobj161009* r);
N_NIMCALL(void, genlinedir_460241)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(Ropeobj161009*, sourceline_163991)(Tlineinfo163338 i);
N_NIMCALL(NIM_BOOL, freshlineinfo_460230)(Tcproc456034* p, Tlineinfo163338 info);
N_NIMCALL(NimStringDesc*, tofilename_164266)(NI32 fileidx);
N_NIMCALL(Ropeobj161009*, quotedfilename_165354)(Tlineinfo163338 i);
N_NIMCALL(void, genmagicexpr_486836)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op);
N_NIMCALL(void, genandor_483538)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m);
N_NIMCALL(Ropeobj161009*, getlabel_466829)(Tcproc456034* p);
N_NIMCALL(void, fixlabel_466848)(Tcproc456034* p, Ropeobj161009* labl);
N_NIMCALL(void, unaryarith_481852)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op);
N_NIMCALL(void, unaryarithoverflow_480827)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m);
N_NIMCALL(void, binaryfloatarith_486366)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m);
N_NIMCALL(void, binaryarith_481022)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op);
N_NIMCALL(void, geneqproc_481417)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, binaryarithoverflow_480474)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m);
N_NIMCALL(Ropeobj161009*, binaryarithoverflowraw_480444)(Tcproc456034* p, Ttype190849* t, Tloc190827 a, Tloc190827 b, NimStringDesc* frmt);
N_NIMCALL(Ropeobj161009*, rdcharloc_465644)(Tloc190827 a);
N_NIMCALL(NI64, lastord_220010)(Ttype190849* t);
N_NIMCALL(void, genrepr_484960)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(Ropeobj161009*, lenfield_466971)(Tcproc456034* p);
N_NIMCALL(void, gcusage_483678)(Tnode190813* n);
N_NIMCALL(void, message_165188)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_212058)(Tnode190813* n, NU8 renderflags);
N_NIMCALL(void, gengettypeinfo_485007)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genswap_485244)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, unaryexpr_480412)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, binarystmt_479597)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, genstrconcat_483694)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genstrappend_483808)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genseqelemappend_484096)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genstrequals_486301)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, binaryexpr_479680)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, genisnil_481823)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, gendollar_485018)(Tcproc456034* p, Tnode190813* n, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, genof_484949)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genof_484804)(Tcproc456034* p, Tnode190813* x, Ttype190849* typ, Tloc190827* d);
N_NIMCALL(void, globalerror_165134)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(Ropeobj161009*, genofhelper_484606)(Tcproc456034* p, Ttype190849* dest, Ropeobj161009* a);
N_NIMCALL(void, gennew_484200)(Tcproc456034* p, Tnode190813* e);
N_NIMCALL(void, rawgennew_484157)(Tcproc456034* p, Tloc190827 a, Ropeobj161009* sizeexpr_484161);
N_NIMCALL(void, gennewfinalize_484573)(Tcproc456034* p, Tnode190813* e);
N_NIMCALL(void, gennewseq_484247)(Tcproc456034* p, Tnode190813* e);
N_NIMCALL(void, gennewseqaux_484216)(Tcproc456034* p, Tloc190827 dest, Ropeobj161009* length);
N_NIMCALL(void, gensomecast_486098)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(Ropeobj161009*, getclosuretype_463088)(Tcgen456038* m, Ttype190849* t, NU8 kind);
N_NIMCALL(void, genord_486089)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, unaryexprchar_480428)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, genarraylen_485044)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op);
N_NIMCALL(void, unarystmt_479626)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, gensetlengthstr_485235)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, gensetlengthseq_485132)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, gensetop_486031)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op);
N_NIMCALL(void, binarystmtinexcl_485469)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(Ropeobj161009*, rdsetelemloc_485271)(Tloc190827 a, Ttype190849* settype);
N_NIMCALL(void, binaryexprchar_480012)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(void, geninop_485612)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(NIM_BOOL, fewcmps_485406)(Tnode190813* s);
N_NIMCALL(void, geninexpraux_482488)(Tcproc456034* p, Tnode190813* e, Tloc190827* a, Tloc190827* b, Tloc190827* d);
N_NIMCALL(void, binaryexprin_485443)(Tcproc456034* p, Tnode190813* e, Tloc190827* a, Tloc190827* b, Tloc190827* d, NimStringDesc* frmt);
N_NIMCALL(NimStringDesc*, HEX24_162131)(Ropeobj161009* r);
N_NIMCALL(void, gencall_471645)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genclosurecall_468234)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d);
N_NIMCALL(Ropeobj161009*, genarg_467595)(Tcproc456034* p, Tnode190813* n_467598, Tsym190843* param, Tnode190813* call);
static N_INLINE(Ropeobj161009*, genargstringtocstring_467581)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Ropeobj161009*, openarrayloc_467471)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Tnode190813*, skipconv_229935)(Tnode190813* n);
N_NIMCALL(NU16, getmagic_219403)(Tnode190813* op);
N_NIMCALL(void, initlocexprsingleuse_466949)(Tcproc456034* p, Tnode190813* e, Tloc190827* result);
N_NIMCALL(Ropeobj161009*, genargnoparam_467749)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Ropeobj161009*, getrawproctype_468241)(Tcproc456034* p, Ttype190849* t);
N_NIMCALL(NIM_BOOL, leftappearsonrightside_467001)(Tnode190813* le, Tnode190813* ri);
N_NIMCALL(NU8, ispartof_399375)(Tnode190813* a, Tnode190813* b);
static N_INLINE(NIM_BOOL, hasnoinit_467068)(Tnode190813* call);
N_NIMCALL(void, resetloc_465798)(Tcproc456034* p, Tloc190827* loc);
N_NIMCALL(Ropeobj161009*, addcomma_468246)(Ropeobj161009* r);
N_NIMCALL(void, geninfixcall_469779)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d);
N_NIMCALL(NIM_BOOL, contains_99373)(NimStringDesc* s, TY178407 chars);
N_NIMCALL(Ropeobj161009*, genpatterncall_469508)(Tcproc456034* p, Tnode190813* ri_469511, NimStringDesc* pat, Ttype190849* typ_469513);
N_NIMCALL(Ropeobj161009*, genotherarg_466928)(Tcproc456034* p, Tnode190813* ri, NI i, Ttype190849* typ);
N_NIMCALL(void, localerror_165166)(Tlineinfo163338 info, NimStringDesc* arg);
N_NIMCALL(Ropeobj161009*, genthisarg_469271)(Tcproc456034* p, Tnode190813* ri_469274, NI i, Ttype190849* typ);
N_NIMCALL(Tnode190813*, skipaddrderef_469226)(Tnode190813* node);
N_NIMCALL(void, fixupcall_467098)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d, Ropeobj161009* callee, Ropeobj161009* params);
N_NIMCALL(void, gennamedparamcall_470629)(Tcproc456034* p, Tnode190813* ri, Tloc190827* d);
N_NIMCALL(NIM_BOOL, contains_99351)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, genprefixcall_467769)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d);
static N_INLINE(void, poststmtactions_460366)(Tcproc456034* p);
N_NIMCALL(void, genreset_484144)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, genecho_483599)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(NimStringDesc*, nsuRepeatStr)(NimStringDesc* s, NI n);
N_NIMCALL(void, genarrtoseq_484496)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
N_NIMCALL(void, genseqconstr_484441)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
N_NIMCALL(void, localerror_165155)(Tlineinfo163338 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(Tnode190813*, wrapprocforspawn_359607)(Tsym190843* owner, Tnode190813* spawnexpr, Ttype190849* rettype, Tnode190813* barrier, Tnode190813* dest);
N_NIMCALL(Tnode190813*, liftparallel_405254)(Tsym190843* owner, Tnode190813* n);
N_NIMCALL(void, gendeepcopy_479441)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src);
N_NIMCALL(NIM_BOOL, isdeepconstexpr_219459)(Tnode190813* n);
N_NIMCALL(Ropeobj161009*, gensetnode_478690)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, gensetconstr_487351)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, exprcomplexconst_488334)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genarrayconstr_487830)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(NIM_BOOL, handleconstexpr_487305)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, gentupleconstr_487496)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genobjconstr_484262)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genfieldcheck_482496)(Tcproc456034* p, Tnode190813* e, Ropeobj161009* obj, Tsym190843* field);
N_NIMCALL(Tnode190813*, newstrnode_191644)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(void, gencast_486158)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genconv_486258)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(NIM_BOOL, comparetypes_227047)(Ttype190849* x, Ttype190849* y, NU8 cmp, NU8 flags);
N_NIMCALL(void, genaddr_482201)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
static N_INLINE(NIM_BOOL, iscppref_482010)(Tcproc456034* p, Ttype190849* typ);
N_NIMCALL(void, genbracketexpr_483501)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genarrayelem_483281)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d);
N_NIMCALL(NIM_BOOL, isconstexpr_219428)(Tnode190813* n);
N_NIMCALL(void, genopenarrayelem_483387)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d);
N_NIMCALL(void, genseqelem_483426)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d);
N_NIMCALL(void, gencstringelem_483359)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d);
N_NIMCALL(void, gentupleelem_482305)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genderef_472198)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NIM_BOOL enforcederef);
N_NIMCALL(void, genrecordfield_482361)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(Ttype190849*, genrecordfieldaux_482250)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, Tloc190827* a);
N_NIMCALL(void, gencheckedrecordfield_483054)(Tcproc456034* p, Tnode190813* e, Tloc190827* d);
N_NIMCALL(void, genblock_474687)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
N_NIMCALL(NI, startblock_472258)(Tcproc456034* p, NimStringDesc* start, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, endblock_472352)(Tcproc456034* p);
N_NIMCALL(void, endblock_472324)(Tcproc456034* p, Ropeobj161009* blockend);
N_NIMCALL(Ropeobj161009*, blockbody_472311)(Tblock456032* b);
N_NIMCALL(void, genstmtlistexpr_488005)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genif_473440)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, downconv_488212)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(NI, inheritancediff_227064)(Ttype190849* a, Ttype190849* b);
N_NIMCALL(void, upconv_488047)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genrangechck_486214)(Tcproc456034* p, Tnode190813* n, Tloc190827* d, NimStringDesc* magic);
N_NIMCALL(void, convstrtocstr_486271)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, convcstrtostr_486286)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, genclosure_487651)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
static N_INLINE(NIM_BOOL, isconstclosure_487622)(Tnode190813* n);
static N_INLINE(NIM_BOOL, isroutine_195764)(Tsym190843* s);
N_NIMCALL(void, genwhilestmt_474530)(Tcproc456034* p, Tnode190813* t);
static N_INLINE(Ropeobj161009*, assignlabel_472303)(Tblock456032* b);
N_NIMCALL(NIM_BOOL, stmtscontainpragma_454123)(Tnode190813* n, NU16 w);
N_NIMCALL(void, gencomputedgoto_474227)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, genvarstmt_473269)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, gensinglevar_472703)(Tcproc456034* p, Tnode190813* a);
N_NIMCALL(void, gengotovar_472682)(Tcproc456034* p, Tnode190813* value);
N_NIMCALL(void, assignglobalvar_466432)(Tcproc456034* p, Tsym190843* s);
N_NIMCALL(void, varindynamiclib_466419)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(void, loaddynamiclib_489101)(Tcgen456038* m, Tlib190831* lib);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, libcandidates_155409)(NimStringDesc* s, TY122008** dest);
N_NIMCALL(void, msgwriteln_164536)(NimStringDesc* s);
N_NIMCALL(void, registergcroot_472007)(Tcproc456034* p, Tsym190843* v);
N_NIMCALL(Ropeobj161009*, gentraverseprocforglobal_465435)(Tcgen456038* m, Tsym190843* s);
static N_INLINE(NIM_BOOL, isassignedimmediately_472029)(Tnode190813* n);
N_NIMCALL(NIM_BOOL, containshiddenpointer_220160)(Ttype190849* typ);
static N_INLINE(void, loadinto_472205)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* a);
N_NIMCALL(void, genasgncall_471804)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d);
N_NIMCALL(void, genclosurevar_473244)(Tcproc456034* p, Tnode190813* a);
N_NIMCALL(void, genvartuple_472045)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Tnode190813*, lowertupleunpacking_357087)(Tnode190813* n, Tsym190843* owner);
N_NIMCALL(void, genconststmt_473340)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(NIM_BOOL, containscompiletimeonly_229733)(Ttype190849* t);
static N_INLINE(NIM_BOOL, emitlazily_459269)(Tsym190843* s);
N_NIMCALL(void, gencase_476520)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
N_NIMCALL(void, genstringcase_476028)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
N_NIMCALL(NI, nextpoweroftwo_149531)(NI x);
N_NIMCALL(void, gencasestringbranch_475738)(Tcproc456034* p, Tnode190813* b, Tloc190827 e, Ropeobj161009* labl, Ropeobj161009** branches, NI branchesLen0);
N_NIMCALL(NI64, hashstring_454146)(NimStringDesc* s);
N_NIMCALL(Ropeobj161009*, gencasesecondpass_475583)(Tcproc456034* p, Tnode190813* t, Tloc190827* d, NI labid, NI until);
N_NIMCALL(void, exprblock_472401)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(void, gencasegeneric_475722)(Tcproc456034* p, Tnode190813* t, Tloc190827* d, NimStringDesc* rangeformat, NimStringDesc* eqformat);
N_NIMCALL(Ropeobj161009*, genifforcaseuntil_475643)(Tcproc456034* p, Tnode190813* t, Tloc190827* d, NimStringDesc* rangeformat, NimStringDesc* eqformat, NI until, Tloc190827 a);
N_NIMCALL(void, gencasegenericbranch_475515)(Tcproc456034* p, Tnode190813* b, Tloc190827 e, NimStringDesc* rangeformat, NimStringDesc* eqformat, Ropeobj161009* labl);
N_NIMCALL(void, gengotoforcase_474133)(Tcproc456034* p, Tnode190813* casestmt);
N_NIMCALL(void, genordinalcase_476414)(Tcproc456034* p, Tnode190813* n, Tloc190827* d);
N_NIMCALL(NI, ifswitchsplitpoint_476273)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(NIM_BOOL, branchhastoobigrange_476220)(Tnode190813* b);
N_NIMCALL(void, genreturnstmt_474084)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(void, blockleaveactions_473854)(Tcproc456034* p, NI howmanytrys, NI howmanyexcepts);
static N_INLINE(Tnode190813*, pop_473918)(Tnodeseq190807** s);
N_NIMCALL(void, genbreakstmt_475047)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(void, genasgn_478047)(Tcproc456034* p, Tnode190813* e, NIM_BOOL fastasgn);
N_NIMCALL(NIM_BOOL, fielddiscriminantcheckneeded_477899)(Tcproc456034* p, Tnode190813* asgn);
N_NIMCALL(void, asgnfielddiscriminant_478012)(Tcproc456034* p, Tnode190813* e);
N_NIMCALL(void, gendiscriminantcheck_477966)(Tcproc456034* p, Tloc190827 a, Tloc190827 tmp, Ttype190849* objtype, Tsym190843* field);
N_NIMCALL(Ropeobj161009*, discriminatortabledecl_463529)(Tcgen456038* m, Ttype190849* objtype, Tsym190843* d);
N_NIMCALL(void, genasmstmt_477480)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(Ropeobj161009*, genasmoremitstmt_477326)(Tcproc456034* p, Tnode190813* t, NIM_BOOL isasmstmt);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(void, gentrycpp_476599)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
static N_INLINE(void, gensimpleblock_472390)(Tcproc456034* p, Tnode190813* stmts);
N_NIMCALL(void, gentry_476932)(Tcproc456034* p, Tnode190813* t, Tloc190827* d);
N_NIMCALL(NIM_BOOL, isdefined_168031)(NimStringDesc* symbol);
N_NIMCALL(void, line_459986)(Tcproc456034* p, NU8 s, NimStringDesc* r);
static N_INLINE(Ropeobj161009*, pop_161595)(TY163351** s);
N_NIMCALL(void, genraisestmt_475440)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(NimStringDesc*, getraisefrmt_475433)(Tcproc456034* p);
N_NIMCALL(void, gentypesection_465583)(Tcgen456038* m, Tnode190813* n);
N_NIMCALL(void, genpragma_477845)(Tcproc456034* p_477847, Tnode190813* n);
N_NIMCALL(NU16, whichpragma_219673)(Tnode190813* n);
N_NIMCALL(void, genemit_477646)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(NU8, determinesection_477622)(Tnode190813* n);
N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_NIMCALL(void, genbreakpoint_477672)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(void, genwatchpoint_477819)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Tsym190843*, skipgenericowner_195695)(Tsym190843* s);
N_NIMCALL(Tnode190813*, getbody_235648)(Tsym190843* s);
N_NIMCALL(void, genparforstmt_474811)(Tcproc456034* p, Tnode190813* t);
N_NIMCALL(void, genstate_472418)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, gengotostate_472448)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(void, genbreakstate_472650)(Tcproc456034* p, Tnode190813* n);
N_NIMCALL(Ropeobj161009*, initgcframe_466004)(Tcproc456034* p);
N_NIMCALL(Ropeobj161009*, initframe_489824)(Tcproc456034* p, Ropeobj161009* procname, Ropeobj161009* filename);
N_NIMCALL(void, appcg_459908)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0);
N_NIMCALL(Ropeobj161009*, deinitgcframe_466016)(Tcproc456034* p);
N_NIMCALL(Ropeobj161009*, deinitframe_489840)(Tcproc456034* p);
N_NIMCALL(void, symindynamiclib_489551)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(NIM_BOOL, isgetprocaddr_489057)(Tlib190831* lib);
N_NIMCALL(void, symindynamiclibpartial_489715)(Tcgen456038* m, Tsym190843* sym);
N_NIMCALL(void, rawmessage_164960)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, completecfilepath_170912)(NimStringDesc* cfile, NIM_BOOL createsubdir);
N_NIMCALL(void, readmergeinfo_457816)(NimStringDesc* cfilename, Tcgen456038* m);
N_NIMCALL(NimStringDesc*, getcfile_493072)(Tcgen456038* m);
N_NIMCALL(NimStringDesc*, withpackagename_154944)(NimStringDesc* path);
static N_INLINE(NIM_BOOL, skipcodegen_241083)(Tnode190813* n);
N_NIMCALL(void, registermoduletomain_492061)(Tsym190843* m);
N_NIMCALL(Ropeobj161009*, getinitname_492041)(Tsym190843* m);
N_NIMCALL(Ropeobj161009*, getsomeinitname_491747)(Tsym190843* m, NimStringDesc* suffix);
N_NIMCALL(Ropeobj161009*, getdatinitname_492051)(Tsym190843* m);
N_NIMCALL(Tnode190813*, generatemethoddispatchers_356208)(void);
N_NIMCALL(void, genmainproc_491575)(Tcgen456038* m);
N_NIMCALL(Ropeobj161009*, genfilenames_491518)(Tcgen456038* m);
N_NIMCALL(void, finishmodule_493232)(Tcgen456038* m);
N_NIMCALL(void, updatecachedmodule_493619)(Tcgen456038* m);
N_NIMCALL(NIM_BOOL, mergerequired_458106)(Tcgen456038* m);
N_NIMCALL(void, mergefiles_458474)(NimStringDesc* cfilename, Tcgen456038* m);
N_NIMCALL(void, geninitcode_492110)(Tcgen456038* m);
N_NIMCALL(Ropeobj161009*, gensectionstart_457106)(NU8 ps);
N_NIMCALL(Ropeobj161009*, gensectionend_457147)(NU8 ps);
N_NIMCALL(Ropeobj161009*, gensectionstart_457028)(NU8 fs);
N_NIMCALL(Ropeobj161009*, gensectionend_457069)(NU8 fs);
N_NIMCALL(void, finishtypedescriptions_463267)(Tcgen456038* m);
N_NIMCALL(Ropeobj161009*, genmodule_492310)(Tcgen456038* m, NimStringDesc* cfile);
N_NIMCALL(Ropeobj161009*, getfileheader_491507)(NimStringDesc* cfile);
N_NIMCALL(Ropeobj161009*, getcopyright_491483)(NimStringDesc* cfile);
N_NIMCALL(NimStringDesc*, getcompilecfilecmd_171336)(NimStringDesc* cfilename, NIM_BOOL isexternal);
static N_INLINE(void, addinttypes_491471)(Ropeobj161009** result);
N_NIMCALL(Ropeobj161009*, genmergeinfo_457285)(Tcgen456038* m);
N_NIMCALL(void, generateheaders_489753)(Tcgen456038* m);
N_NIMCALL(void, generatethreadlocalstorage_466315)(Tcgen456038* m);
N_NIMCALL(void, writerope_162105)(Ropeobj161009* head, NimStringDesc* filename, NIM_BOOL usewarning);
N_NIMCALL(void, addfiletocompile_170933)(NimStringDesc* filename);
N_NIMCALL(void, addfiletolink_170954)(NimStringDesc* filename);
N_NIMCALL(void, writemodule_493455)(Tcgen456038* m, NIM_BOOL pending);
N_NIMCALL(void, generatethreadvarssize_466372)(Tcgen456038* m);
N_NIMCALL(NIM_BOOL, shouldrecompile_493433)(Ropeobj161009* code, NimStringDesc* cfile);
N_NIMCALL(NimStringDesc*, toobjfile_170923)(NimStringDesc* filename);
N_NIMCALL(NIM_BOOL, writeropeifnotequal_162930)(Ropeobj161009* r, NimStringDesc* filename);
N_NIMCALL(NIM_BOOL, nosexistsFile)(NimStringDesc* filename);
N_NIMCALL(NIM_BOOL, nosfileNewer)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, writemapping_171867)(Ropeobj161009* gsymbolmapping);
N_NIMCALL(void, writeheader_493004)(Tcgen456038* m);
N_NIMCALL(void, nossplitFile)(NimStringDesc* path, TY119589* Result);
N_NIMCALL(void, resetmodule_492602)(Tcgen456038* m);
N_NIMCALL(void, nullify_492652)(Ropeobj161009** arr);
N_NIMCALL(void, nullify_492689)(Ropeobj161009** arr);
STRING_LITERAL(TMP1060, "\011", 1);
STRING_LITERAL(TMP3487, "cgen.nim", 8);
NIM_CONST TY86345 TMP3486 = {((NimStringDesc*) &TMP3487),
((NI) 1154)}
;
STRING_LITERAL(TMP3488, "$", 1);
STRING_LITERAL(TMP3489, "ropes: invalid format string $", 30);
STRING_LITERAL(TMP3497, "_", 1);
STRING_LITERAL(TMP3498, "extern $1 $2;$n", 15);
STRING_LITERAL(TMP3500, "getTypeDescAux: t == nil", 24);
STRING_LITERAL(TMP3501, "void", 4);
STRING_LITERAL(TMP3502, "TY", 2);
STRING_LITERAL(TMP3503, "getTypeName: ", 13);
STRING_LITERAL(TMP3504, "void*", 5);
STRING_LITERAL(TMP3505, "NI32", 4);
STRING_LITERAL(TMP3506, "NU8", 3);
STRING_LITERAL(TMP3507, "NU16", 4);
STRING_LITERAL(TMP3508, "NI64", 4);
STRING_LITERAL(TMP3509, "getSimpleTypeDesc: ", 19);
STRING_LITERAL(TMP3510, "NimStringDesc", 13);
STRING_LITERAL(TMP3511, "NimStringDesc*", 14);
STRING_LITERAL(TMP3512, "NCSTRING", 8);
STRING_LITERAL(TMP3513, "NIM_BOOL", 8);
STRING_LITERAL(TMP3514, "NIM_CHAR", 8);
STRING_LITERAL(TMP3515, "0", 1);
STRING_LITERAL(TMP3516, "NI", 2);
STRING_LITERAL(TMP3517, "NI8", 3);
STRING_LITERAL(TMP3518, "NI16", 4);
STRING_LITERAL(TMP3519, "NF", 2);
STRING_LITERAL(TMP3520, "NF32", 4);
STRING_LITERAL(TMP3521, "NF64", 4);
STRING_LITERAL(TMP3522, "NF128", 5);
STRING_LITERAL(TMP3523, "NU", 2);
STRING_LITERAL(TMP3524, "NU32", 4);
STRING_LITERAL(TMP3525, "NU64", 4);
NIM_CONST TY461351 Numericaltypetostr_461350 = {((NimStringDesc*) &TMP3516),
((NimStringDesc*) &TMP3517),
((NimStringDesc*) &TMP3518),
((NimStringDesc*) &TMP3505),
((NimStringDesc*) &TMP3508),
((NimStringDesc*) &TMP3519),
((NimStringDesc*) &TMP3520),
((NimStringDesc*) &TMP3521),
((NimStringDesc*) &TMP3522),
((NimStringDesc*) &TMP3523),
((NimStringDesc*) &TMP3506),
((NimStringDesc*) &TMP3507),
((NimStringDesc*) &TMP3524),
((NimStringDesc*) &TMP3525)}
;
STRING_LITERAL(TMP3526, "cannot generate C type for: ", 28);
STRING_LITERAL(TMP3527, "&", 1);
STRING_LITERAL(TMP3528, "*", 1);
STRING_LITERAL(TMP3529, "$1 $2;$n", 8);
STRING_LITERAL(TMP3530, "typedef $1 $2 $2;$n", 19);
STRING_LITERAL(TMP3531, "union", 5);
STRING_LITERAL(TMP3532, "struct", 6);
STRING_LITERAL(TMP3533, "getTypeForward(", 15);
STRING_LITERAL(TMP3534, "mapType", 7);
STRING_LITERAL(TMP3535, "genProcParams", 13);
STRING_LITERAL(TMP3536, ", ", 2);
STRING_LITERAL(TMP3537, " ", 1);
STRING_LITERAL(TMP3538, ", NI $1Len$2", 12);
STRING_LITERAL(TMP3539, " Result", 7);
STRING_LITERAL(TMP3540, "void* ClEnv", 11);
STRING_LITERAL(TMP3541, "...", 3);
STRING_LITERAL(TMP3542, "void)", 5);
STRING_LITERAL(TMP3543, ")", 1);
STRING_LITERAL(TMP3544, "(", 1);
STRING_LITERAL(TMP3545, "typedef $1_PTR($2, $3) $4;$n", 28);
STRING_LITERAL(TMP3546, "N_NIMCALL", 9);
STRING_LITERAL(TMP3547, "N_STDCALL", 9);
STRING_LITERAL(TMP3548, "N_CDECL", 7);
STRING_LITERAL(TMP3549, "N_SAFECALL", 10);
STRING_LITERAL(TMP3550, "N_SYSCALL", 9);
STRING_LITERAL(TMP3551, "N_INLINE", 8);
STRING_LITERAL(TMP3552, "N_NOINLINE", 10);
STRING_LITERAL(TMP3553, "N_FASTCALL", 10);
STRING_LITERAL(TMP3554, "N_CLOSURE", 9);
STRING_LITERAL(TMP3555, "N_NOCONV", 8);
NIM_CONST TY190020 Callingconvtostr_460988 = {((NimStringDesc*) &TMP3546),
((NimStringDesc*) &TMP3547),
((NimStringDesc*) &TMP3548),
((NimStringDesc*) &TMP3549),
((NimStringDesc*) &TMP3550),
((NimStringDesc*) &TMP3551),
((NimStringDesc*) &TMP3552),
((NimStringDesc*) &TMP3553),
((NimStringDesc*) &TMP3554),
((NimStringDesc*) &TMP3555)}
;
STRING_LITERAL(TMP3556, "typedef struct {$nN_NIMCALL_PTR($2, ClPrc) $3;$nvoid* ClEnv;$n}"
" $1;$n", 69);
STRING_LITERAL(TMP3557, "struct $2 : #TGenericSeq {$n", 28);
STRING_LITERAL(TMP3558, "struct $2 {$n  #TGenericSeq Sup;$n", 34);
STRING_LITERAL(TMP3559, "  $1 data[SEQ_DECL_SIZE];$n};$n", 31);
STRING_LITERAL(TMP3560, "TGenericSeq", 11);
STRING_LITERAL(TMP3561, "typedef $1 $2[$3];$n", 20);
STRING_LITERAL(TMP3562, "invalid apostrophe type parameter index", 39);
STRING_LITERAL(TMP3563, "<", 1);
STRING_LITERAL(TMP3564, "> ", 2);
extern NIM_CONST TY170435 Cc_170434;
STRING_LITERAL(TMP3565, " {$n", 4);
STRING_LITERAL(TMP3566, " {$n#TNimType* m_type;$n", 24);
STRING_LITERAL(TMP3567, " : public $1 {$n", 16);
STRING_LITERAL(TMP3568, " {$n  $1 Sup;$n", 15);
STRING_LITERAL(TMP3569, "genRecordFieldsAux", 18);
STRING_LITERAL(TMP3570, "$1.$2", 5);
STRING_LITERAL(TMP3571, "S", 1);
STRING_LITERAL(TMP3572, "struct {", 8);
STRING_LITERAL(TMP3573, "} $1;$n", 7);
STRING_LITERAL(TMP3574, "genRecordFieldsAux(record case branch)", 38);
STRING_LITERAL(TMP3575, "union{$n$1} $2;$n", 17);
STRING_LITERAL(TMP3576, "mangleRecFieldName", 18);
STRING_LITERAL(TMP3577, "$1 $2[SEQ_DECL_SIZE];$n", 23);
STRING_LITERAL(TMP3578, "genRecordFieldsAux()", 20);
STRING_LITERAL(TMP3579, "char dummy;$n", 13);
STRING_LITERAL(TMP3580, "};", 2);
STRING_LITERAL(TMP3581, "$1 $2 {$n", 9);
STRING_LITERAL(TMP3582, "$1 Field$2;$n", 13);
STRING_LITERAL(TMP3583, "char dummy;", 11);
STRING_LITERAL(TMP3584, "typedef NU8 $1[$2];$n", 21);
STRING_LITERAL(TMP3585, "getTypeDescAux(", 15);
STRING_LITERAL(TMP3586, "Dl_$1", 5);
STRING_LITERAL(TMP3587, "$N#line $2 $1$N", 15);
STRING_LITERAL(TMP3589, "N_LIB_IMPORT ", 13);
STRING_LITERAL(TMP3590, "N_LIB_EXPORT ", 13);
STRING_LITERAL(TMP3591, "static ", 7);
STRING_LITERAL(TMP3592, "$1($2, $3)$4", 12);
STRING_LITERAL(TMP3593, "extern \"C\" ", 11);
STRING_LITERAL(TMP3594, " __attribute__((naked))", 23);
STRING_LITERAL(TMP3595, "$1;$n", 5);
STRING_LITERAL(TMP3596, "proc has no result symbol", 25);
STRING_LITERAL(TMP3597, " register", 9);
STRING_LITERAL(TMP3598, " volatile", 9);
STRING_LITERAL(TMP3599, ";", 1);
STRING_LITERAL(TMP3600, "F.s[$1].address = (void*)$3; F.s[$1].typ = $4; F.s[$1].name = $"
"2;$n", 67);
STRING_LITERAL(TMP3601, "NTI$1", 5);
STRING_LITERAL(TMP3602, "(&", 2);
STRING_LITERAL(TMP3603, "TNimType", 8);
STRING_LITERAL(TMP3604, "TNimNode", 8);
STRING_LITERAL(TMP3605, "extern TNimType $1; /* $2 */$n", 30);
STRING_LITERAL(TMP3606, "0", 1);
STRING_LITERAL(TMP3607, "void*", 5);
STRING_LITERAL(TMP3608, "$1.size = sizeof($2);$n$1.kind = $3;$n$1.base = $4;$n", 53);
STRING_LITERAL(TMP3609, "$1.flags = $2;$n", 16);
STRING_LITERAL(TMP3610, "TNimType $1; /* $2 */$n", 23);
STRING_LITERAL(TMP3611, "$1[$2]", 6);
STRING_LITERAL(TMP3612, "static TNimNode* $1[$2];$n", 26);
STRING_LITERAL(TMP3613, "$1[$2] = &$3;$n", 15);
STRING_LITERAL(TMP3614, "$1.kind = 1;$n$1.offset = offsetof($2, Field$3);$n$1.typ = $4;$"
"n$1.name = \"Field$3\";$n", 86);
STRING_LITERAL(TMP3615, "$1.len = $2; $1.kind = 2; $1.sons = &$3[0];$n", 45);
STRING_LITERAL(TMP3616, "$1.len = $2; $1.kind = 2;$n", 27);
STRING_LITERAL(TMP3617, "$1.node = &$2;$n", 16);
STRING_LITERAL(TMP3618, "TMP$1", 5);
STRING_LITERAL(TMP3619, "#nimGCvisit((void*)$1, op);$n", 29);
STRING_LITERAL(TMP3620, "N_NIMCALL(void, $1)(void* p, NI op)", 35);
STRING_LITERAL(TMP3621, "$1 a;$n", 7);
STRING_LITERAL(TMP3622, "a = ($1)p;$n", 12);
STRING_LITERAL(TMP3623, "LOC", 3);
STRING_LITERAL(TMP3624, "$1 = 0;$n", 9);
STRING_LITERAL(TMP3625, "(*$1)", 5);
STRING_LITERAL(TMP3626, "<string.h>", 10);
STRING_LITERAL(TMP3627, "memset((void*)$1, 0, sizeof($2));$n", 35);
STRING_LITERAL(TMP3628, ".Sup", 4);
STRING_LITERAL(TMP3629, "$1.m_type = $2;$n", 17);
STRING_LITERAL(TMP3630, "#objectInit($1, $2);$n", 22);
STRING_LITERAL(TMP3631, "for ($1 = 0; $1 < $2->$3; $1++) {$n", 35);
STRING_LITERAL(TMP3632, "len", 3);
STRING_LITERAL(TMP3633, "Sup.len", 7);
STRING_LITERAL(TMP3634, "for ($1 = 0; $1 < $2; $1++) {$n", 31);
STRING_LITERAL(TMP3635, "}$n", 3);
STRING_LITERAL(TMP3636, "$1.Sup", 6);
STRING_LITERAL(TMP3637, "genTraverseProc", 15);
STRING_LITERAL(TMP3638, "switch ($1.$2) {$n", 18);
STRING_LITERAL(TMP3639, "case $1 ... $2:$n", 17);
STRING_LITERAL(TMP3640, "genLiteral: ty is nil", 21);
STRING_LITERAL(TMP3641, "(-2147483647 -1)", 16);
STRING_LITERAL(TMP3642, "IL64($1)", 8);
STRING_LITERAL(TMP3643, "(IL64(-9223372036854775807) - IL64(1))", 38);
STRING_LITERAL(TMP3644, "NIM_TRUE", 8);
STRING_LITERAL(TMP3645, "NIM_FALSE", 9);
STRING_LITERAL(TMP3646, "ULL", 3);
STRING_LITERAL(TMP3647, "(($1) $2)", 9);
STRING_LITERAL(TMP3648, "TMP", 3);
STRING_LITERAL(TMP3649, "static NIM_CONST $1 $2 = {NIM_NIL,NIM_NIL};$n", 45);
STRING_LITERAL(TMP3650, "NIM_NIL", 7);
STRING_LITERAL(TMP3651, "((#NimStringDesc*) NIM_NIL)", 27);
STRING_LITERAL(TMP3652, "((#NimStringDesc*) &$1)", 23);
STRING_LITERAL(TMP3653, "STRING_LITERAL($1, $2, $3);$n", 29);
STRING_LITERAL(TMP3654, "((#NimStringDesc*) &TMP$1)", 26);
STRING_LITERAL(TMP3659, "genLiteral(", 11);
STRING_LITERAL(TMP3660, "case $1:$n", 10);
STRING_LITERAL(TMP3661, "default:$n", 10);
STRING_LITERAL(TMP3662, "break;$n", 8);
STRING_LITERAL(TMP3663, "} $n", 4);
STRING_LITERAL(TMP3664, "genTraverseProc()", 17);
STRING_LITERAL(TMP3665, "$1.Field$2", 10);
STRING_LITERAL(TMP3666, "$1.ClEnv", 8);
STRING_LITERAL(TMP3667, "$1->data[$2]", 12);
STRING_LITERAL(TMP3668, "a", 1);
STRING_LITERAL(TMP3669, "(*a)", 4);
STRING_LITERAL(TMP3670, "$1 {$n$2$3$4}$n", 15);
STRING_LITERAL(TMP3671, "$1.marker = $2;$n", 17);
STRING_LITERAL(TMP3672, "$1.len = $2; $1.kind = 0;$n$3.node = &$1;$n", 43);
STRING_LITERAL(TMP3673, "$1.offset = $2;$n", 17);
STRING_LITERAL(TMP3674, "NI $1;$n", 8);
STRING_LITERAL(TMP3675, "static char* NIM_CONST $1[$2] = {$n$3};$n", 41);
STRING_LITERAL(TMP3676, "for ($1 = 0; $1 < $2; $1++) {$n$3[$1+$4].kind = 1;$n$3[$1+$4].o"
"ffset = $1;$n$3[$1+$4].name = $5[$1];$n$6[$1] = &$3[$1+$4];$n}$n", 127);
STRING_LITERAL(TMP3677, "$1.len = $2; $1.kind = 2; $1.sons = &$3[0];$n$4.node = &$1;$n", 61);
STRING_LITERAL(TMP3678, "$1.flags = 1<<2;$n", 18);
STRING_LITERAL(TMP3679, "anonymous obj with discriminator", 32);
STRING_LITERAL(TMP3680, "NimDT_$1_$2", 11);
STRING_LITERAL(TMP3681, "$1.kind = 3;$n$1.offset = offsetof($2, $3);$n$1.typ = $4;$n$1.n"
"ame = $5;$n$1.sons = &$6[0];$n$1.len = $7;$n", 107);
STRING_LITERAL(TMP3682, "TNimNode* $1[$2];$n", 19);
STRING_LITERAL(TMP3683, "genObjectFields; nkOfBranch broken", 34);
STRING_LITERAL(TMP3684, "genObjectFields(nkRecCase)", 26);
STRING_LITERAL(TMP3685, "$1.kind = 1;$n$1.offset = offsetof($2, $3);$n$1.typ = $4;$n$1.n"
"ame = $5;$n", 74);
STRING_LITERAL(TMP3686, "genObjectFields", 15);
STRING_LITERAL(TMP3687, "genTypeInfo(", 12);
STRING_LITERAL(TMP3688, "$1.deepcopy =(void* (N_RAW_NIMCALL*)(void*))$2;$n", 49);
STRING_LITERAL(TMP3689, "\011return $1;$n", 13);
STRING_LITERAL(TMP3690, "Result", 6);
STRING_LITERAL(TMP3691, "closure generation failed", 25);
STRING_LITERAL(TMP3692, "$1 = ($2) ClEnv;$n", 18);
STRING_LITERAL(TMP3693, "$1 = $2;$n", 10);
STRING_LITERAL(TMP3694, "#asgnRef((void**) $1, $2);$n", 28);
STRING_LITERAL(TMP3695, "#asgnRefNoCycle((void**) $1, $2);$n", 35);
STRING_LITERAL(TMP3696, "#unsureAsgnRef((void**) $1, $2);$n", 34);
STRING_LITERAL(TMP3697, "#genericSeqAssign($1, $2, $3);$n", 32);
STRING_LITERAL(TMP3698, "$1 = #copyString($2);$n", 23);
STRING_LITERAL(TMP3699, "$3 = $1; $1 = #copyStringRC1($2);$n", 35);
STRING_LITERAL(TMP3700, "if ($1) #nimGCunrefNoCycle($1);$n", 33);
STRING_LITERAL(TMP3701, "#unsureAsgnRef((void**) $1, #copyString($2));$n", 47);
STRING_LITERAL(TMP3702, ".", 1);
STRING_LITERAL(TMP3703, "ClEnv", 5);
STRING_LITERAL(TMP3704, "$1.ClPrc = $2.ClPrc;$n", 22);
STRING_LITERAL(TMP3705, "Field$1", 7);
STRING_LITERAL(TMP3706, "memcpy((void*)$1, (NIM_CONST void*)$2, sizeof($3));$n", 53);
STRING_LITERAL(TMP3707, "#genericShallowAssign((void*)$1, (void*)$2, $3);$n", 50);
STRING_LITERAL(TMP3708, "#genericAssign((void*)$1, (void*)$2, $3);$n", 43);
STRING_LITERAL(TMP3710, "ccgexprs.nim", 12);
NIM_CONST TY86345 TMP3709 = {((NimStringDesc*) &TMP3710),
((NI) 338)}
;
STRING_LITERAL(TMP3711, "memcpy((void*)$1, (NIM_CONST void*)$2, sizeof($1));$n", 53);
STRING_LITERAL(TMP3712, "#genericAssignOpenArray((void*)$1, (void*)$2, $1Len0, $3);$n", 60);
STRING_LITERAL(TMP3713, "memcpy((void*)$1, (NIM_CONST void*)$2, sizeof($1[0])*$1Len0);$n", 63);
STRING_LITERAL(TMP3714, "memcpy((void*)$1, (NIM_CONST void*)$2, $3);$n", 45);
STRING_LITERAL(TMP3715, "genAssignment: ", 15);
STRING_LITERAL(TMP3716, "expr: proc not init ", 20);
STRING_LITERAL(TMP3717, "extern ", 7);
STRING_LITERAL(TMP3718, "NIM_THREADVAR ", 14);
STRING_LITERAL(TMP3719, " $1;$n", 6);
STRING_LITERAL(TMP3720, "NIM_CONST $1 $2 = $3;$n", 23);
STRING_LITERAL(TMP3721, "{$n", 3);
STRING_LITERAL(TMP3722, "0x$1,$n", 7);
STRING_LITERAL(TMP3723, "0x$1, ", 6);
STRING_LITERAL(TMP3724, "0x$1}$n", 7);
STRING_LITERAL(TMP3725, "{{$1, $1}", 9);
STRING_LITERAL(TMP3726, ", {", 3);
STRING_LITERAL(TMP3727, ",$n", 3);
STRING_LITERAL(TMP3728, "}", 1);
STRING_LITERAL(TMP3729, "CNSTSEQ", 7);
STRING_LITERAL(TMP3730, "NIM_CONST struct {$n  #TGenericSeq Sup;$n  $1 data[$2];$n} $3 ="
" $4;$n", 69);
STRING_LITERAL(TMP3731, "(($1)&$2)", 9);
STRING_LITERAL(TMP3732, "{", 1);
STRING_LITERAL(TMP3733, "$1,$n", 5);
STRING_LITERAL(TMP3734, "extern NIM_CONST $1 $2;$n", 25);
STRING_LITERAL(TMP3735, "expr: var not init ", 19);
STRING_LITERAL(TMP3736, "\011NimThreadVars* NimTV;$n", 24);
STRING_LITERAL(TMP3737, "\011NimTV = (NimThreadVars*) #GetThreadLocalVars();$n", 50);
STRING_LITERAL(TMP3738, "NimTV->", 7);
STRING_LITERAL(TMP3739, "expr: temp not init ", 20);
STRING_LITERAL(TMP3740, "expr: param not init ", 21);
STRING_LITERAL(TMP3741, "expr(", 5);
STRING_LITERAL(TMP3742, "); unknown symbol", 17);
STRING_LITERAL(TMP3743, "//", 2);
STRING_LITERAL(TMP3744, "#endb($1, $2);$n", 16);
STRING_LITERAL(TMP3745, "nimln($1, $2);$n", 16);
STRING_LITERAL(TMP3747, "LA", 2);
STRING_LITERAL(TMP3748, "if ($1) goto $2;$n", 18);
STRING_LITERAL(TMP3749, "if (!($1)) goto $2;$n", 21);
STRING_LITERAL(TMP3750, "$1: ;$n", 7);
STRING_LITERAL(TMP3751, "!($1)", 5);
STRING_LITERAL(TMP3752, "$1", 2);
STRING_LITERAL(TMP3753, "($3)((NU$2) ~($1))", 18);
STRING_LITERAL(TMP3754, "-($1)", 5);
STRING_LITERAL(TMP3755, "($1 > 0? ($1) : -($1))", 22);
STRING_LITERAL(TMP3756, "(($3)(NU)(NU8)($1))", 19);
STRING_LITERAL(TMP3757, "(($3)(NU64)(NU8)($1))", 21);
STRING_LITERAL(TMP3758, "(($3)(NU)(NU16)($1))", 20);
STRING_LITERAL(TMP3759, "(($3)(NU64)(NU16)($1))", 22);
STRING_LITERAL(TMP3760, "(($3)(NU64)(NU32)($1))", 22);
STRING_LITERAL(TMP3761, "(($3)(NU64)(NU)($1))", 20);
STRING_LITERAL(TMP3762, "(($3)(NU8)(NU)($1))", 19);
STRING_LITERAL(TMP3763, "(($3)(NU16)(NU)($1))", 20);
STRING_LITERAL(TMP3764, "(($3)(NU32)(NU64)($1))", 22);
STRING_LITERAL(TMP3765, "((double) ($1))", 15);
STRING_LITERAL(TMP3766, "float64ToInt32($1)", 18);
STRING_LITERAL(TMP3767, "float64ToInt64($1)", 18);
NIM_CONST TY481860 unarithtab_481859 = {((NimStringDesc*) &TMP3751),
((NimStringDesc*) &TMP3752),
((NimStringDesc*) &TMP3753),
((NimStringDesc*) &TMP3753),
((NimStringDesc*) &TMP3752),
((NimStringDesc*) &TMP3754),
((NimStringDesc*) &TMP3755),
((NimStringDesc*) &TMP3756),
((NimStringDesc*) &TMP3757),
((NimStringDesc*) &TMP3758),
((NimStringDesc*) &TMP3759),
((NimStringDesc*) &TMP3760),
((NimStringDesc*) &TMP3761),
((NimStringDesc*) &TMP3762),
((NimStringDesc*) &TMP3763),
((NimStringDesc*) &TMP3764),
((NimStringDesc*) &TMP3765),
((NimStringDesc*) &TMP3765),
((NimStringDesc*) &TMP3766),
((NimStringDesc*) &TMP3767)}
;
STRING_LITERAL(TMP3768, "if ($1 == $2) #raiseOverflow();$n", 33);
STRING_LITERAL(TMP3769, "((NI$2)-($1))", 13);
NIM_CONST TY480835 opr_480834 = {((NimStringDesc*) &TMP3769),
((NimStringDesc*) &TMP3754),
((NimStringDesc*) &TMP3755),
((NimStringDesc*) &TMP3755)}
;
STRING_LITERAL(TMP3770, "(($4)($2) $1 ($4)($3))", 22);
STRING_LITERAL(TMP3771, "+", 1);
STRING_LITERAL(TMP3772, "-", 1);
STRING_LITERAL(TMP3773, "/", 1);
NIM_CONST TY486401 opr_486400 = {((NimStringDesc*) &TMP3771),
((NimStringDesc*) &TMP3772),
((NimStringDesc*) &TMP3528),
((NimStringDesc*) &TMP3773)}
;
STRING_LITERAL(TMP3774, "#nanCheck($1);$n", 16);
STRING_LITERAL(TMP3775, "#infCheck($1);$n", 16);
STRING_LITERAL(TMP3776, "(($4)($1) + ($4)($2))", 21);
STRING_LITERAL(TMP3777, "(($4)($1) - ($4)($2))", 21);
STRING_LITERAL(TMP3778, "(($4)($1) * ($4)($2))", 21);
STRING_LITERAL(TMP3779, "(($4)($1) / ($4)($2))", 21);
STRING_LITERAL(TMP3780, "($4)((NU$3)($1) >> (NU$3)($2))", 30);
STRING_LITERAL(TMP3781, "($4)((NU$3)($1) << (NU$3)($2))", 30);
STRING_LITERAL(TMP3782, "($4)($1 & $2)", 13);
STRING_LITERAL(TMP3783, "($4)($1 | $2)", 13);
STRING_LITERAL(TMP3784, "($4)($1 ^ $2)", 13);
STRING_LITERAL(TMP3785, "(($1 <= $2) ? $1 : $2)", 22);
STRING_LITERAL(TMP3786, "(($1 >= $2) ? $1 : $2)", 22);
STRING_LITERAL(TMP3787, "($4)((NU64)($1) >> (NU64)($2))", 30);
STRING_LITERAL(TMP3788, "($4)((NU64)($1) << (NU64)($2))", 30);
STRING_LITERAL(TMP3789, "($4)((NU$3)($1) + (NU$3)($2))", 29);
STRING_LITERAL(TMP3790, "($4)((NU$3)($1) - (NU$3)($2))", 29);
STRING_LITERAL(TMP3791, "($4)((NU$3)($1) * (NU$3)($2))", 29);
STRING_LITERAL(TMP3792, "($4)((NU$3)($1) / (NU$3)($2))", 29);
STRING_LITERAL(TMP3793, "($4)((NU$3)($1) % (NU$3)($2))", 29);
STRING_LITERAL(TMP3794, "($1 == $2)", 10);
STRING_LITERAL(TMP3795, "($1 <= $2)", 10);
STRING_LITERAL(TMP3796, "($1 < $2)", 9);
STRING_LITERAL(TMP3797, "((NU$3)($1) <= (NU$3)($2))", 26);
STRING_LITERAL(TMP3798, "((NU$3)($1) < (NU$3)($2))", 25);
STRING_LITERAL(TMP3799, "((NU64)($1) <= (NU64)($2))", 26);
STRING_LITERAL(TMP3800, "((NU64)($1) < (NU64)($2))", 25);
STRING_LITERAL(TMP3801, "((NU8)($1) == (NU8)($2))", 24);
STRING_LITERAL(TMP3802, "((NU8)($1) <= (NU8)($2))", 24);
STRING_LITERAL(TMP3803, "((NU8)($1) < (NU8)($2))", 23);
STRING_LITERAL(TMP3804, "($1 != $2)", 10);
NIM_CONST TY481030 binarithtab_481029 = {((NimStringDesc*) &TMP3776),
((NimStringDesc*) &TMP3777),
((NimStringDesc*) &TMP3778),
((NimStringDesc*) &TMP3779),
((NimStringDesc*) &TMP3780),
((NimStringDesc*) &TMP3781),
((NimStringDesc*) &TMP3782),
((NimStringDesc*) &TMP3783),
((NimStringDesc*) &TMP3784),
((NimStringDesc*) &TMP3785),
((NimStringDesc*) &TMP3786),
((NimStringDesc*) &TMP3787),
((NimStringDesc*) &TMP3788),
((NimStringDesc*) &TMP3782),
((NimStringDesc*) &TMP3783),
((NimStringDesc*) &TMP3784),
((NimStringDesc*) &TMP3785),
((NimStringDesc*) &TMP3786),
((NimStringDesc*) &TMP3789),
((NimStringDesc*) &TMP3790),
((NimStringDesc*) &TMP3791),
((NimStringDesc*) &TMP3792),
((NimStringDesc*) &TMP3793),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3795),
((NimStringDesc*) &TMP3796),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3795),
((NimStringDesc*) &TMP3796),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3795),
((NimStringDesc*) &TMP3796),
((NimStringDesc*) &TMP3797),
((NimStringDesc*) &TMP3798),
((NimStringDesc*) &TMP3799),
((NimStringDesc*) &TMP3800),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3795),
((NimStringDesc*) &TMP3796),
((NimStringDesc*) &TMP3801),
((NimStringDesc*) &TMP3802),
((NimStringDesc*) &TMP3803),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3795),
((NimStringDesc*) &TMP3796),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3795),
((NimStringDesc*) &TMP3796),
((NimStringDesc*) &TMP3794),
((NimStringDesc*) &TMP3804)}
;
STRING_LITERAL(TMP3805, "($1.ClPrc == $2.ClPrc && $1.ClEnv == $2.ClEnv)", 46);
STRING_LITERAL(TMP3806, "($#)($# + $#)", 13);
STRING_LITERAL(TMP3807, "($#)($# - $#)", 13);
STRING_LITERAL(TMP3808, "($#)($# * $#)", 13);
STRING_LITERAL(TMP3809, "($#)($# / $#)", 13);
STRING_LITERAL(TMP3810, "($#)($# % $#)", 13);
NIM_CONST TY480487 opr_480486 = {((NimStringDesc*) &TMP3806),
((NimStringDesc*) &TMP3807),
((NimStringDesc*) &TMP3808),
((NimStringDesc*) &TMP3809),
((NimStringDesc*) &TMP3810),
((NimStringDesc*) &TMP3806),
((NimStringDesc*) &TMP3807),
((NimStringDesc*) &TMP3808),
((NimStringDesc*) &TMP3809),
((NimStringDesc*) &TMP3810),
((NimStringDesc*) &TMP3806),
((NimStringDesc*) &TMP3807)}
;
STRING_LITERAL(TMP3811, "((NU8)($1))", 11);
STRING_LITERAL(TMP3812, "if ($1 < $2 || $1 > $3) #raiseOverflow();$n", 43);
STRING_LITERAL(TMP3813, "$# = #addInt($#, $#);$n", 23);
STRING_LITERAL(TMP3814, "$# = #subInt($#, $#);$n", 23);
STRING_LITERAL(TMP3815, "$# = #mulInt($#, $#);$n", 23);
STRING_LITERAL(TMP3816, "$# = #divInt($#, $#);$n", 23);
STRING_LITERAL(TMP3817, "$# = #modInt($#, $#);$n", 23);
STRING_LITERAL(TMP3818, "$# = #addInt64($#, $#);$n", 25);
STRING_LITERAL(TMP3819, "$# = #subInt64($#, $#);$n", 25);
STRING_LITERAL(TMP3820, "$# = #mulInt64($#, $#);$n", 25);
STRING_LITERAL(TMP3821, "$# = #divInt64($#, $#);$n", 25);
STRING_LITERAL(TMP3822, "$# = #modInt64($#, $#);$n", 25);
NIM_CONST TY480487 prc_480481 = {((NimStringDesc*) &TMP3813),
((NimStringDesc*) &TMP3814),
((NimStringDesc*) &TMP3815),
((NimStringDesc*) &TMP3816),
((NimStringDesc*) &TMP3817),
((NimStringDesc*) &TMP3818),
((NimStringDesc*) &TMP3819),
((NimStringDesc*) &TMP3820),
((NimStringDesc*) &TMP3821),
((NimStringDesc*) &TMP3822),
((NimStringDesc*) &TMP3813),
((NimStringDesc*) &TMP3814)}
;
STRING_LITERAL(TMP3823, "($#)($#)", 8);
STRING_LITERAL(TMP3824, "#reprInt((NI64)$1)", 18);
STRING_LITERAL(TMP3825, "#reprFloat($1)", 14);
STRING_LITERAL(TMP3826, "#reprBool($1)", 13);
STRING_LITERAL(TMP3827, "#reprChar($1)", 13);
STRING_LITERAL(TMP3828, "#reprEnum($1, $2)", 17);
STRING_LITERAL(TMP3829, "#reprStr($1)", 12);
STRING_LITERAL(TMP3830, "#reprSet($1, $2)", 16);
STRING_LITERAL(TMP3831, "$1, $1Len0", 10);
STRING_LITERAL(TMP3832, "$1->data, $1->$2", 16);
STRING_LITERAL(TMP3833, "$1, $2", 6);
STRING_LITERAL(TMP3834, "genRepr()", 9);
STRING_LITERAL(TMP3835, "#reprOpenArray($1, $2)", 22);
STRING_LITERAL(TMP3836, "#reprAny($1, $2)", 16);
STRING_LITERAL(TMP3837, "($1 - 1)", 8);
STRING_LITERAL(TMP3838, "#subInt($1, 1)", 14);
STRING_LITERAL(TMP3839, "binaryStmt", 10);
STRING_LITERAL(TMP3840, "$1 += $2;$n", 11);
STRING_LITERAL(TMP3841, "$1 -= $2;$n", 11);
NIM_CONST TY486856 opr_486855 = {((NimStringDesc*) &TMP3840),
((NimStringDesc*) &TMP3841)}
;
NIM_CONST TY486856 fun64_486860 = {((NimStringDesc*) &TMP3818),
((NimStringDesc*) &TMP3819)}
;
NIM_CONST TY486856 fun_486865 = {((NimStringDesc*) &TMP3813),
((NimStringDesc*) &TMP3814)}
;
STRING_LITERAL(TMP3842, "#appendChar($1, $2);$n", 22);
STRING_LITERAL(TMP3843, "$1->$2 + ", 9);
STRING_LITERAL(TMP3844, "#appendString($1, $2);$n", 24);
STRING_LITERAL(TMP3845, "$1 = #rawNewString($2$3);$n", 27);
STRING_LITERAL(TMP3846, "$1 = #addChar($1, $2);$n", 24);
STRING_LITERAL(TMP3847, "$1 = #resizeString($1, $2$3);$n", 31);
STRING_LITERAL(TMP3848, "$1 = ($2) #incrSeq(&($1)->Sup, sizeof($3));$n", 45);
STRING_LITERAL(TMP3849, "$1 = ($2) #incrSeq($1, sizeof($3));$n", 37);
STRING_LITERAL(TMP3850, "$1->data[$1->$2-1]", 18);
STRING_LITERAL(TMP3851, "(($1) && ($1)->$2 == 0)", 23);
STRING_LITERAL(TMP3852, "#eqStrings($1, $2)", 18);
STRING_LITERAL(TMP3853, "(#cmpStrings($1, $2) <= 0)", 26);
STRING_LITERAL(TMP3854, "(#cmpStrings($1, $2) < 0)", 25);
STRING_LITERAL(TMP3855, "$1.ClPrc == 0", 13);
STRING_LITERAL(TMP3856, "$1 == 0", 7);
STRING_LITERAL(TMP3857, "#nimIntToStr($1)", 16);
STRING_LITERAL(TMP3858, "#nimInt64ToStr($1)", 18);
STRING_LITERAL(TMP3859, "#nimBoolToStr($1)", 17);
STRING_LITERAL(TMP3860, "#nimCharToStr($1)", 17);
STRING_LITERAL(TMP3861, "#nimFloatToStr($1)", 18);
STRING_LITERAL(TMP3862, "#cstrToNimstr($1)", 17);
STRING_LITERAL(TMP3863, "no \'of\' operator available for pure objects", 43);
STRING_LITERAL(TMP3864, "(($1) && ($2))", 14);
STRING_LITERAL(TMP3865, "$1.m_type == $2", 15);
STRING_LITERAL(TMP3866, "Nim_OfCheck_CACHE", 17);
STRING_LITERAL(TMP3867, "static TNimType* $#[2];$n", 25);
STRING_LITERAL(TMP3868, "#isObjWithCache($#.m_type, $#, $#)", 34);
STRING_LITERAL(TMP3869, "($1)", 4);
STRING_LITERAL(TMP3870, "sizeof($1)", 10);
STRING_LITERAL(TMP3871, "if ($1) #nimGCunref($1);$n", 26);
STRING_LITERAL(TMP3872, "($1) #newObjRC1($2, $3)", 23);
STRING_LITERAL(TMP3873, "($1) #newObj($2, $3)", 20);
STRING_LITERAL(TMP3874, "$1->finalizer = (void*)$2;$n", 28);
STRING_LITERAL(TMP3875, "($1) #newObj($2, sizeof($3))", 28);
STRING_LITERAL(TMP3876, "($1) #newSeqRC1($2, $3)", 23);
STRING_LITERAL(TMP3877, "($1) #newSeq($2, $3)", 20);
STRING_LITERAL(TMP3878, "((NI)sizeof($1))", 16);
STRING_LITERAL(TMP3879, "(*($1*) ($2))", 13);
STRING_LITERAL(TMP3880, "(($1) ($2))", 11);
STRING_LITERAL(TMP3881, "($1Len0-1)", 10);
STRING_LITERAL(TMP3882, "$1Len0", 6);
STRING_LITERAL(TMP3883, "($1 ? (strlen($1)-1) : -1)", 26);
STRING_LITERAL(TMP3884, "($1 ? strlen($1) : 0)", 21);
STRING_LITERAL(TMP3885, "($1 ? ($1->Sup.len-1) : -1)", 27);
STRING_LITERAL(TMP3886, "($1 ? $1->Sup.len : 0)", 22);
STRING_LITERAL(TMP3887, "($1 ? ($1->len-1) : -1)", 23);
STRING_LITERAL(TMP3888, "($1 ? $1->len : 0)", 18);
STRING_LITERAL(TMP3889, "genArrayLen()", 13);
STRING_LITERAL(TMP3890, "($1->Sup.len-1)", 15);
STRING_LITERAL(TMP3891, "$1->len", 7);
STRING_LITERAL(TMP3892, "unaryStmt", 9);
STRING_LITERAL(TMP3893, "#nimGCref($1);$n", 16);
STRING_LITERAL(TMP3894, "#nimGCunref($1);$n", 18);
STRING_LITERAL(TMP3895, "$1 = #setLengthStr($1, $2);$n", 29);
STRING_LITERAL(TMP3896, "$1 = ($3) #setLengthSeq(&($1)->Sup, sizeof($4), $2);$n", 54);
STRING_LITERAL(TMP3897, "$1 = ($3) #setLengthSeq($1, sizeof($4), $2);$n", 46);
STRING_LITERAL(TMP3898, "($1- $2)", 8);
STRING_LITERAL(TMP3899, "$1 |= ((", 8);
STRING_LITERAL(TMP3900, ")1)<<(($2)%(sizeof(", 19);
STRING_LITERAL(TMP3901, ")*8));$n", 8);
STRING_LITERAL(TMP3902, "$1 &= ~(((", 10);
STRING_LITERAL(TMP3903, ")1) << (($2) % (sizeof(", 23);
STRING_LITERAL(TMP3904, ")*8)));$n", 9);
STRING_LITERAL(TMP3905, "#countBits32($1)", 16);
STRING_LITERAL(TMP3906, "#countBits64($1)", 16);
STRING_LITERAL(TMP3907, "(($1 & ~ $2 ==0)&&($1 != $2))", 29);
STRING_LITERAL(TMP3908, "(($1 & ~ $2)==0)", 16);
STRING_LITERAL(TMP3909, "($1 & $2)", 9);
STRING_LITERAL(TMP3910, "($1 | $2)", 9);
STRING_LITERAL(TMP3911, "($1 & ~ $2)", 11);
STRING_LITERAL(TMP3912, "($1 ^ $2)", 9);
STRING_LITERAL(TMP3913, "fewCmps", 7);
STRING_LITERAL(TMP3914, "$1 >= $2 && $1 <= $3", 20);
STRING_LITERAL(TMP3915, "$1 == $2", 8);
STRING_LITERAL(TMP3916, " || ", 4);
STRING_LITERAL(TMP3917, "(($1 &(1<<(($2)&7)))!=0)", 24);
STRING_LITERAL(TMP3918, "(($1 &(1<<(($2)&15)))!=0)", 25);
STRING_LITERAL(TMP3919, "(($1 &(1<<(($2)&31)))!=0)", 25);
STRING_LITERAL(TMP3920, "(($1 &(IL64(1)<<(($2)&IL64(63))))!=0)", 37);
STRING_LITERAL(TMP3921, "(($1[$2/8] &(1<<($2%8)))!=0)", 28);
STRING_LITERAL(TMP3922, "genSetOp()", 10);
STRING_LITERAL(TMP3923, "$1[$2/8] |=(1<<($2%8));$n", 25);
STRING_LITERAL(TMP3924, "$1[$2/8] &= ~(1<<($2%8));$n", 27);
STRING_LITERAL(TMP3925, "#cardSet($1, ", 13);
STRING_LITERAL(TMP3926, "for ($1 = 0; $1 < $2; $1++) { $n  $3 = (($4[$1] & ~ $5[$1]) == "
"0);$n  if (!$3) break;}$n", 88);
STRING_LITERAL(TMP3927, "for ($1 = 0; $1 < $2; $1++) { $n  $3 = (($4[$1] & ~ $5[$1]) == "
"0);$n  if (!$3) break;}$nif ($3) $3 = (memcmp($4, $5, $2) != 0);"
"$n", 129);
STRING_LITERAL(TMP3928, "|", 1);
STRING_LITERAL(TMP3929, "& ~", 3);
STRING_LITERAL(TMP3930, "^", 1);
NIM_CONST TY486039 lookupopr_486038 = {((NimStringDesc*) &TMP3926),
((NimStringDesc*) &TMP3927),
((NimStringDesc*) &TMP3527),
((NimStringDesc*) &TMP3928),
((NimStringDesc*) &TMP3929),
((NimStringDesc*) &TMP3930)}
;
STRING_LITERAL(TMP3931, "(memcmp($1, $2, ", 16);
STRING_LITERAL(TMP3932, ")==0)", 5);
STRING_LITERAL(TMP3933, "for ($1 = 0; $1 < $2; $1++) $n  $3[$1] = $4[$1] $6 $5[$1];$n", 60);
STRING_LITERAL(TMP3934, "genSetOp", 8);
STRING_LITERAL(TMP3935, "$1->data", 8);
STRING_LITERAL(TMP3936, "($1)+($2), ($3)-($2)+1", 22);
STRING_LITERAL(TMP3937, "(*$1)->data+($2), ($3)-($2)+1", 29);
STRING_LITERAL(TMP3938, "$1->data+($2), ($3)-($2)+1", 26);
STRING_LITERAL(TMP3939, "openArrayLoc: ", 14);
STRING_LITERAL(TMP3940, "", 0);
STRING_LITERAL(TMP3941, "(*$1)->data, (*$1)->$2", 22);
STRING_LITERAL(TMP3942, "$1.ClPrc($3$1.ClEnv)", 20);
STRING_LITERAL(TMP3943, "$1.ClEnv? $1.ClPrc($3$1.ClEnv):(($4)($1.ClPrc))($2)", 51);
STRING_LITERAL(TMP3944, "#chckNil((void*)$1);$n", 22);
STRING_LITERAL(TMP3945, "#genericReset((void*)$1, $2);$n", 31);
STRING_LITERAL(TMP3946, ";$n", 3);
STRING_LITERAL(TMP3948, "ccgcalls.nim", 12);
NIM_CONST TY86345 TMP3947 = {((NimStringDesc*) &TMP3948),
((NI) 411)}
;
static NIM_CONST TY178407 TMP3949 = {
0x00, 0x00, 0x00, 0x00, 0x88, 0x01, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TMP3950, "call expression expected for C++ pattern", 40);
NIM_CONST TY86345 TMP3951 = {((NimStringDesc*) &TMP3948),
((NI) 316)}
;
STRING_LITERAL(TMP3952, "->", 2);
STRING_LITERAL(TMP3953, ");$n", 4);
STRING_LITERAL(TMP3954, "[", 1);
NIM_CONST TY86345 TMP3955 = {((NimStringDesc*) &TMP3948),
((NI) 460)}
;
STRING_LITERAL(TMP3956, ": ", 2);
STRING_LITERAL(TMP3957, "varargs for objective C method?", 31);
STRING_LITERAL(TMP3958, "Result: ", 8);
STRING_LITERAL(TMP3959, "];$n", 4);
STRING_LITERAL(TMP3960, "]", 1);
NIM_CONST TY86345 TMP3961 = {((NimStringDesc*) &TMP3710),
((NI) 962)}
;
STRING_LITERAL(TMP3962, "<stdio.h>", 9);
STRING_LITERAL(TMP3963, ", \"nil\"", 7);
STRING_LITERAL(TMP3964, ", $1? ($1)->data:\"nil\"", 22);
STRING_LITERAL(TMP3965, "printf($1$2);$n", 15);
STRING_LITERAL(TMP3966, "%s", 2);
STRING_LITERAL(TMP4028, "#genericDeepCopy((void*)$1, (void*)$2, $3);$n", 45);
STRING_LITERAL(TMP4029, "#genericSeqDeepCopy($1, $2, $3);$n", 34);
STRING_LITERAL(TMP4030, "#genericDeepCopyOpenArray((void*)$1, (void*)$2, $1Len0, $3);$n", 62);
STRING_LITERAL(TMP4031, "genDeepCopy: ", 13);
STRING_LITERAL(TMP4032, "genMagicExpr: ", 14);
STRING_LITERAL(TMP4033, "static NIM_CONST $1 $2 = $3;$n", 30);
STRING_LITERAL(TMP4034, "memset($1, 0, sizeof($1));$n", 28);
STRING_LITERAL(TMP4035, "for ($1 = $3; $1 <= $4; $1++) $n$2[$1/8] |=(1<<($1%8));$n", 57);
STRING_LITERAL(TMP4036, "for ($1 = $3; $1 <= $4; $1++) $n$2 |=(1<<((", 43);
STRING_LITERAL(TMP4037, ")($1)%(sizeof(", 14);
STRING_LITERAL(TMP4038, "$1 |=(1<<((", 11);
STRING_LITERAL(TMP4039, ")($2)%(sizeof(", 14);
STRING_LITERAL(TMP4040, "genObjConstr", 12);
STRING_LITERAL(TMP4041, "if ($1) #raiseFieldError(((#NimStringDesc*) &$2));$n", 52);
STRING_LITERAL(TMP4042, "if (!($1)) #raiseFieldError(((#NimStringDesc*) &$2));$n", 55);
STRING_LITERAL(TMP4043, "LOC$1.source", 12);
STRING_LITERAL(TMP4044, "union { $1 source; $2 dest; } LOC$3;$n", 38);
STRING_LITERAL(TMP4045, "LOC$#.dest", 10);
STRING_LITERAL(TMP4046, "if ((NU)($1) > (NU)($2)) #raiseIndexError();$n", 46);
STRING_LITERAL(TMP4047, "if ($1 < $2 || $1 > $3) #raiseIndexError();$n", 45);
STRING_LITERAL(TMP4048, "$1[($2)- $3]", 12);
STRING_LITERAL(TMP4049, "if ((NU)($1) >= (NU)($2Len0)) #raiseIndexError();$n", 51);
STRING_LITERAL(TMP4050, "if ((NU)($1) > (NU)($2->$3)) #raiseIndexError();$n", 50);
STRING_LITERAL(TMP4051, "if ((NU)($1) >= (NU)($2->$3)) #raiseIndexError();$n", 51);
STRING_LITERAL(TMP4052, "genTupleElem", 12);
STRING_LITERAL(TMP4053, ".Field$1", 8);
STRING_LITERAL(TMP4054, "expr(nkBracketExpr, ", 20);
STRING_LITERAL(TMP4055, "genDeref ", 9);
STRING_LITERAL(TMP4056, "genRecordFieldAux", 17);
STRING_LITERAL(TMP4057, "genRecordField", 14);
STRING_LITERAL(TMP4058, "genRecordField 2 ", 17);
STRING_LITERAL(TMP4059, "genRecordField 3", 16);
STRING_LITERAL(TMP4060, ".$1", 3);
STRING_LITERAL(TMP4061, "genCheckedRecordField", 21);
STRING_LITERAL(TMP4062, "} $1: ;$n", 9);
STRING_LITERAL(TMP4063, "F.len-=$1;$n", 12);
STRING_LITERAL(TMP4064, "F.len+=$1;$n", 12);
STRING_LITERAL(TMP4065, "if (!$1) goto $2;$n", 19);
STRING_LITERAL(TMP4066, "goto $1;$n", 10);
STRING_LITERAL(TMP4067, "genIf()", 7);
STRING_LITERAL(TMP4068, "->Sup", 5);
STRING_LITERAL(TMP4069, "$1 = &$2;$n", 11);
STRING_LITERAL(TMP4070, "if ($1) #chckObj($2.m_type, $3);$n", 34);
STRING_LITERAL(TMP4071, "#chckObj($1.m_type, $2);$n", 26);
STRING_LITERAL(TMP4072, "(($1)#$5($2, $3, $4))", 21);
STRING_LITERAL(TMP4073, "chckRangeF", 10);
STRING_LITERAL(TMP4074, "chckRange64", 11);
STRING_LITERAL(TMP4075, "chckRange", 9);
STRING_LITERAL(TMP4076, "$1.ClPrc = $2; $1.ClEnv = $3;$n", 31);
STRING_LITERAL(TMP4077, "while (1) {$n", 13);
STRING_LITERAL(TMP4078, "case statement must be exhaustive for computed goto", 51);
STRING_LITERAL(TMP4079, "case statement has too many cases for computed goto", 51);
STRING_LITERAL(TMP4080, "case statement has to start at 0 for computed goto", 50);
STRING_LITERAL(TMP4081, "no case statement found for computed goto", 41);
STRING_LITERAL(TMP4082, "static void* $#[$#] = {", 23);
STRING_LITERAL(TMP4083, "&&TMP$#, ", 9);
STRING_LITERAL(TMP4084, "&&TMP$#};$n", 11);
STRING_LITERAL(TMP4085, "goto *$#[$#];$n", 15);
STRING_LITERAL(TMP4086, "range notation not available for computed goto", 46);
STRING_LITERAL(TMP4087, "TMP$#:$n", 8);
STRING_LITERAL(TMP4088, "#nimProfile();$n", 16);
STRING_LITERAL(TMP4089, "\'goto\' target must be a literal value", 37);
STRING_LITERAL(TMP4090, "goto NIMSTATE_$#;$n", 19);
STRING_LITERAL(TMP4091, "static void* $1;$n", 18);
STRING_LITERAL(TMP4092, "Dependency: ", 12);
STRING_LITERAL(TMP4093, "||", 2);
STRING_LITERAL(TMP4094, "($1 = #nimLoadLibrary((#NimStringDesc*) &$2))$n", 47);
STRING_LITERAL(TMP4095, "if (!($1)) #nimLoadLibraryError((#NimStringDesc*) &$2);$n", 57);
STRING_LITERAL(TMP4096, "if (!($1 = #nimLoadLibrary($2))) #nimLoadLibraryError($2);$n", 60);
STRING_LITERAL(TMP4097, "loadDynamicLib", 14);
STRING_LITERAL(TMP4098, "$1 = ($2*) #nimGetProcAddr($3, $4);$n", 37);
STRING_LITERAL(TMP4099, "$2* $1;$n", 9);
STRING_LITERAL(TMP4100, "#dbgRegisterGlobal($1, &$2, $3);$n", 34);
STRING_LITERAL(TMP4101, "#nimGCvisit((void*)$1, 0);$n", 28);
STRING_LITERAL(TMP4102, "N_NIMCALL(void, $1)()", 21);
STRING_LITERAL(TMP4103, "#nimRegisterGlobalMarker($1);$n", 31);
STRING_LITERAL(TMP4104, "$#($#);$n", 9);
STRING_LITERAL(TMP4105, "$# = $#;$n", 10);
STRING_LITERAL(TMP4106, "genVarTuple", 11);
STRING_LITERAL(TMP4107, "genConstStmt", 12);
STRING_LITERAL(TMP4108, "for statement not eliminated", 28);
STRING_LITERAL(TMP4109, "if (#eqStrings($1, $2)) goto $3;$n", 34);
STRING_LITERAL(TMP4110, "switch (#hashString($1) & $2) {$n", 33);
STRING_LITERAL(TMP4111, "case $1: $n$2break;$n", 21);
STRING_LITERAL(TMP4112, "goto LA$1;$n", 12);
STRING_LITERAL(TMP4113, "LA$1: ;$n", 9);
STRING_LITERAL(TMP4114, "if ($1 >= $2 && $1 <= $3) goto $4;$n", 36);
STRING_LITERAL(TMP4115, "if ($1 == $2) goto $3;$n", 24);
STRING_LITERAL(TMP4116, "NIMSTATE_$#:$n", 14);
STRING_LITERAL(TMP4117, "switch ($1) {$n", 15);
STRING_LITERAL(TMP4118, "default: __assume(0);$n", 23);
STRING_LITERAL(TMP4119, "#popSafePoint();$n", 18);
STRING_LITERAL(TMP4120, "#popCurrentException();$n", 25);
STRING_LITERAL(TMP4121, "if ($1.status != 0) #popCurrentException();$n", 45);
STRING_LITERAL(TMP4122, "goto BeforeRet;$n", 17);
STRING_LITERAL(TMP4123, "no loop to break", 16);
STRING_LITERAL(TMP4124, "extern $1", 9);
STRING_LITERAL(TMP4125, "#FieldDiscriminantCheck((NI)(NU)($1), (NI)(NU)($2), $3, $4);$n", 62);
STRING_LITERAL(TMP4126, "genAsmOrEmitStmt()", 18);
STRING_LITERAL(TMP4127, "\"", 1);
STRING_LITERAL(TMP4128, "\\n\"\012", 4);
STRING_LITERAL(TMP4129, "Exception", 9);
STRING_LITERAL(TMP4130, "E_Base", 6);
STRING_LITERAL(TMP4131, "try {$n", 7);
STRING_LITERAL(TMP4132, "} catch (NimException& $1) {$n", 30);
STRING_LITERAL(TMP4133, "#setFrame((TFrame*)&FR);$n", 26);
STRING_LITERAL(TMP4134, "else ", 5);
STRING_LITERAL(TMP4135, "#isObj($1.exp->m_type, $2)", 26);
STRING_LITERAL(TMP4136, "if ($1) ", 8);
STRING_LITERAL(TMP4137, "throw;$n", 8);
STRING_LITERAL(TMP4138, "<setjmp.h>", 10);
STRING_LITERAL(TMP4139, "#TSafePoint $1;$n", 17);
STRING_LITERAL(TMP4140, "#pushSafePoint(&$1);$n", 22);
STRING_LITERAL(TMP4141, "nimStdSetjmp", 12);
STRING_LITERAL(TMP4142, "$1.status = setjmp($1.context);$n", 33);
STRING_LITERAL(TMP4143, "nimSigSetjmp", 12);
STRING_LITERAL(TMP4144, "$1.status = sigsetjmp($1.context, 0);$n", 39);
STRING_LITERAL(TMP4145, "nimRawSetjmp", 12);
STRING_LITERAL(TMP4146, "$1.status = _setjmp($1.context);$n", 34);
STRING_LITERAL(TMP4147, "if ($1.status == 0) {$n", 23);
STRING_LITERAL(TMP4148, "else {$n", 8);
STRING_LITERAL(TMP4149, "else", 4);
STRING_LITERAL(TMP4150, "$1.status = 0;$n", 16);
STRING_LITERAL(TMP4151, "#isObj(#getCurrentException()->Sup.m_type, $1)", 46);
STRING_LITERAL(TMP4152, "if ($1) {$n", 11);
STRING_LITERAL(TMP4153, "if ($1.status != 0) #reraiseException();$n", 42);
STRING_LITERAL(TMP4154, "#raiseException((#Exception*)$1, $2);$n", 39);
STRING_LITERAL(TMP4155, "#reraiseException();$n", 22);
STRING_LITERAL(TMP4156, "/*TYPESECTION*/", 15);
STRING_LITERAL(TMP4157, "/*VARSECTION*/", 14);
STRING_LITERAL(TMP4158, "bp", 2);
STRING_LITERAL(TMP4159, "#dbgRegisterBreakpoint($1, (NCSTRING)$2, (NCSTRING)$3);$n", 57);
STRING_LITERAL(TMP4160, "#dbgRegisterWatchpoint($1, (NCSTRING)$2, $3);$n", 47);
STRING_LITERAL(TMP4161, "#pragma omp parallel for $4$nfor ($1 = $2; $1 <= $3; ++$1)", 58);
STRING_LITERAL(TMP4163, "ccgstmts.nim", 12);
NIM_CONST TY86345 TMP4162 = {((NimStringDesc*) &TMP4163),
((NI) 145)}
;
STRING_LITERAL(TMP4164, "STATE$1: ;$n", 12);
STRING_LITERAL(TMP4165, "case -1: goto BeforeRet;$n", 26);
STRING_LITERAL(TMP4166, "case $1: goto STATE$1;$n", 24);
STRING_LITERAL(TMP4167, "if (((NI*) $1)[0] < 0) break;$n", 31);
STRING_LITERAL(TMP4168, "if ((((NI*) $1.ClEnv)[0]) < 0) break;$n", 39);
STRING_LITERAL(TMP4169, "); unknown node kind", 20);
NIM_CONST TY86345 TMP4170 = {((NimStringDesc*) &TMP4163),
((NI) 1112)}
;
STRING_LITERAL(TMP4171, "__declspec(naked) ", 18);
STRING_LITERAL(TMP4172, "$N$1 {$n$2$3$4}$N$N", 19);
STRING_LITERAL(TMP4173, "$N$1 {$N", 8);
STRING_LITERAL(TMP4174, "struct {$1} GCFRAME;$n", 22);
STRING_LITERAL(TMP4175, "nimFrame", 8);
STRING_LITERAL(TMP4176, "TVarSlot", 8);
STRING_LITERAL(TMP4177, "\011nimfrs($1, $2, $3, $4)$N", 25);
STRING_LITERAL(TMP4178, "\011nimfr($1, $2)$N", 16);
STRING_LITERAL(TMP4179, "\011#nimProfile();$n", 17);
STRING_LITERAL(TMP4180, "\011}BeforeRet: ;$n", 16);
STRING_LITERAL(TMP4181, "if (((NU)&GCFRAME) < 4096) #nimGCFrame(&GCFRAME);$n", 51);
STRING_LITERAL(TMP4182, "\011#popFrame();$n", 15);
STRING_LITERAL(TMP4183, "}$N", 3);
STRING_LITERAL(TMP4184, "\011$1 = ($2) ($3$4));$n", 21);
NIM_CONST TY86345 TMP4185 = {((NimStringDesc*) &TMP3487),
((NI) 563)}
;
STRING_LITERAL(TMP4186, "wrong index: ", 13);
STRING_LITERAL(TMP4187, "\011$1 = ($2) #nimGetProcAddr($3, $4);$n", 37);
STRING_LITERAL(TMP4188, "$2 $1;$n", 8);
STRING_LITERAL(TMP4189, "cgsym: ", 7);
STRING_LITERAL(TMP4190, "added pending module twice: ", 28);
STRING_LITERAL(TMP4191, ".h", 2);
STRING_LITERAL(TMP4201, ".cpp", 4);
STRING_LITERAL(TMP4202, ".m", 2);
STRING_LITERAL(TMP4203, ".c", 2);
STRING_LITERAL(TMP4204, "Init", 4);
STRING_LITERAL(TMP4205, "DatInit", 7);
STRING_LITERAL(TMP4206, "NIM_EXTERNC N_NOINLINE(void, $1)(void);$N", 41);
STRING_LITERAL(TMP4207, "\011$1();$N", 8);
STRING_LITERAL(TMP4210, "N_CDECL(void, NimMainInner)(void) {$N$1}$N$NN_CDECL(void, NimMa"
"in)(void) {$N\011void (*volatile inner)();$N\011PreMain();$N\011inner = N"
"imMainInner;$N$2\011(*inner)();$N}$N$N", 162);
STRING_LITERAL(TMP4211, "N_STDCALL(int, WinMain)(HINSTANCE hCurInstance, $N             "
"           HINSTANCE hPrevInstance, $N                        LP"
"STR lpCmdLine, int nCmdShow) {$N\011NimMain();$N\011return nim_program"
"_result;$N}$N$N", 206);
STRING_LITERAL(TMP4212, "N_LIB_EXPORT N_CDECL(void, NimMainInner)(void) {$N$1}$N$NN_CDEC"
"L(void, NimMain)(void) {$N\011void (*volatile inner)();$N\011PreMain()"
";$N\011inner = NimMainInner;$N$2\011(*inner)();$N}$N$N", 175);
STRING_LITERAL(TMP4213, "BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, $N    "
"                LPVOID lpvReserved) {$N\011if(fwdreason == DLL_PROC"
"ESS_ATTACH) {$N\011NimMain();$N}$N\011return 1;$N}$N$N", 175);
STRING_LITERAL(TMP4214, "<windows.h>", 11);
STRING_LITERAL(TMP4215, "void NIM_POSIX_INIT NimMainInit(void) {$N\011NimMain();$N}$N$N", 59);
STRING_LITERAL(TMP4216, "int cmdCount;$Nchar** cmdLine;$Nchar** gEnv;$NN_CDECL(void, Nim"
"MainInner)(void) {$N$1}$N$NN_CDECL(void, NimMain)(void) {$N\011void"
" (*volatile inner)();$N\011PreMain();$N\011inner = NimMainInner;$N$2\011("
"*inner)();$N}$N$N", 208);
STRING_LITERAL(TMP4217, "int main(void) {$N\011NimMain();$N\011return 0;$N}$N$N", 48);
STRING_LITERAL(TMP4218, "int main(int argc, char** args, char** env) {$N\011cmdLine = args;"
"$N\011cmdCount = argc;$N\011gEnv = env;$N\011NimMain();$N\011return nim_prog"
"ram_result;$N}$N$N", 145);
STRING_LITERAL(TMP4219, "dbgRegisterBreakpoint", 21);
STRING_LITERAL(TMP4220, "dbgRegisterFilename", 19);
STRING_LITERAL(TMP4221, "dbgRegisterFilename($1);$N", 26);
STRING_LITERAL(TMP4222, "\011#initStackBottomWith((void *)&inner);$N", 40);
STRING_LITERAL(TMP4223, "void PreMainInner() {$N\011systemInit();$N$1$2$3}$N$Nvoid PreMain("
") {$N\011void (*volatile inner)();$N\011systemDatInit();$N\011inner = Pre"
"MainInner;$N$4$5\011(*inner)();$N}$N$N", 162);
STRING_LITERAL(TMP4224, "\011#initThreadVarsEmulation();$N", 30);
STRING_LITERAL(TMP4268, "still forwarded: ", 17);
STRING_LITERAL(TMP4294, "NIM_EXTERNC N_NOINLINE(void, $1)(void) {$N", 42);
STRING_LITERAL(TMP4295, "static #TNimNode $1[$2];$n", 26);
STRING_LITERAL(TMP4296, "static #TNimType $1[$2];$n", 26);
STRING_LITERAL(TMP4299, "\011TFrame F; F.len = 0;$N", 23);
STRING_LITERAL(TMP4300, "}$N$N", 5);
STRING_LITERAL(TMP4301, "N_NIMCALL(void, nimLoadProcs$1)(void) {$2}$N$N", 46);
STRING_LITERAL(TMP4302, "/* Generated by Nim Compiler v$1 */$N/*   (c) 2015 Andreas Rump"
"f */$N/* The generated code is subject to the original license. "
"*/$N", 131);
STRING_LITERAL(TMP4303, "0.11.2", 6);
STRING_LITERAL(TMP4304, "/* Generated by Nim Compiler v$1 */$N/*   (c) 2015 Andreas Rump"
"f */$N/* The generated code is subject to the original license. "
"*/$N/* Compiled for: $2, $3, $4 */$N/* Command for C compiler:$n"
"   $5 */$N", 201);
extern NIM_CONST TY159071 Os_159070;
extern NIM_CONST TY159497 Cpu_159496;
STRING_LITERAL(TMP4305, "#define NIM_INTBITS $1", 22);
STRING_LITERAL(TMP4313, "#include \"nimbase.h\"", 20);
STRING_LITERAL(TMP4314, "$N#include \"$1\"$N", 17);
STRING_LITERAL(TMP4315, "$N#include $1$N", 15);
STRING_LITERAL(TMP4316, "typedef struct {$1} NimThreadVars;$n", 36);
STRING_LITERAL(TMP4318, "extern \"C\"", 10);
STRING_LITERAL(TMP4319, "$#NI NimThreadVarsSize(){return (NI)sizeof(NimThreadVars);}$n", 61);
STRING_LITERAL(TMP4330, "__$1__", 6);
STRING_LITERAL(TMP4331, "#ifndef $1$n#define $1$n", 24);
STRING_LITERAL(TMP4332, "N_CDECL(void, NimMain)(void);$n", 31);
STRING_LITERAL(TMP4333, "#endif /* $1 */$n", 17);
Tcgen456038* generatedheader_459201;
Ropeobj161009* indent_459921;
extern Tgcheap48216 gch_48244;
Ropeobj161009* nimtv_466251;
Ttypeseq190845* nimtvdeps_466269;
extern TNimType NTI190845; /* TTypeSeq */
Intset187056 nimtvdeclared_466270;
extern TNimType NTI187056; /* IntSet */
NI breakpointid_477670;
Ropeobj161009* gbreakpoints_477671;
extern TY456155* gmodules_456172;
extern TNimType NTI456028; /* BModule */
extern TNimType NTI456038; /* TCGen */
extern NU32 goptions_154126;
extern TNimType NTI190815; /* TSymSeq */
extern Ropeobj161009* rnl_162227;
extern NI gforwardedprocscounter_456173;
extern TNimType NTI190260; /* TTypeKind */
extern NU8 gcmd_154130;
extern NI floatsize_159624;
extern NU8 ccompiler_170455;
extern NimStringDesc* tnl_159626;
extern NU8 gselectedgc_154131;
extern NI gbackendid_189013;
extern TNimType NTI190029; /* TNodeKind */
extern TNimType NTI190827; /* TLoc */
extern NU32 gglobaloptions_154128;
extern TNimType NTI190441; /* TSymKind */
extern NI intsize_159623;
extern TNimType NTI190529; /* TMagic */
extern TNimType NTI122008; /* seq[string] */
extern NI gverbosity_154137;
extern TNimType NTI163351; /* seq[Rope] */
extern TNimType NTI190807; /* TNodeSeq */
extern NimStringDesc* headerfile_154136;
extern NimStringDesc* gprojectfull_154236;
extern NI gerrorcounter_164015;
extern Ropeobj161009* mainmodprocs_456150;
extern Ropeobj161009* maindatinit_456153;
extern Ropeobj161009* mainmodinit_456151;
extern Ropeobj161009* othermodsinit_456152;
extern NU8 targetos_159602;
extern TY163415* fileinfos_163432;
extern NU8 targetcpu_159600;
extern Ropeobj161009* gmapping_456154;

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

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

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

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

N_NIMCALL(Tcgen456038*, getcgenmodule_459235)(Tsym190843* s) {
	Tcgen456038* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (((NI) 0) <= (*s).position);
		if (!(LOC3)) goto LA4;
		LOC3 = ((*s).position < (gmodules_456172 ? gmodules_456172->Sup.len : 0));
		LA4: ;
		if (!LOC3) goto LA5;
		result = gmodules_456172->data[(*s).position];
	}
	goto LA1;
	LA5: ;
	{
		result = NIM_NIL;
	}
	LA1: ;
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* 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)(Tcell46347* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((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)(Tcell46347* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((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) {
	{
		Tcell46347* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_49846(src);
		incref_52222(LOC5);
	}
	LA3: ;
	{
		Tcell46347* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_49846((*dest));
		decref_51804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(NU32, initprocoptions_492471)(Tcgen456038* m) {
	NU32 result;
	memset((void*)(&result), 0, sizeof(result));
	{
		if (!(((*(*m).module).flags &(1<<((((NU8) 13))&31)))!=0)) goto LA3;
		result = (goptions_154126 & ~ 32768);
	}
	goto LA1;
	LA3: ;
	{
		result = goptions_154126;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tcproc456034*, newpreinitproc_492449)(Tcgen456038* m) {
	Tcproc456034* result;
	result = 0;
	result = newproc_456229(NIM_NIL, m);
	(*result).labels = ((NI) 100000);
	return result;
}

N_NIMCALL(Tcproc456034*, newpostinitproc_492460)(Tcgen456038* m) {
	Tcproc456034* result;
	result = 0;
	result = newproc_456229(NIM_NIL, m);
	(*result).labels = ((NI) 200000);
	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;
}

static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[((*dest).Sup.len)- 0] = c;
	(*dest).data[((NI)((*dest).Sup.len + ((NI) 1)))- 0] = 0;
	(*dest).Sup.len += ((NI) 1);
}

N_NIMCALL(NIM_BOOL, isactivated_491037)(Tsym190843* prc) {
	NIM_BOOL result;
	result = 0;
	result = !(((*prc).typ == NIM_NIL));
	return result;
}

N_NIMCALL(void, fillloc_459315)(Tloc190827* a, NU8 k, Ttype190849* typ, Ropeobj161009* r, NU8 s) {
	{
		if (!((*a).k == ((NU8) 0))) goto LA3;
		(*a).k = k;
		unsureAsgnRef((void**) (&(*a).t), typ);
		(*a).s = s;
		{
			if (!((*a).r == NIM_NIL)) goto LA7;
			unsureAsgnRef((void**) (&(*a).r), r);
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, iskeyword_460402)(Tident167021* w) {
	NIM_BOOL result;
{	result = 0;
	switch ((*w).Sup.id) {
	case ((NI) 194) ... ((NI) 256):
	case ((NI) 4) ... ((NI) 70):
	case ((NI) 134):
	{
		result = NIM_TRUE;
		goto BeforeRet;
	}
	break;
	default:
	{
		result = NIM_FALSE;
		goto BeforeRet;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, manglename_460425)(Tsym190843* s) {
	Ropeobj161009* result;
	result = 0;
	result = (*s).loc.r;
	{
		NIM_BOOL keeporigname;
		NIM_BOOL LOC5;
		NIM_BOOL LOC6;
		NIM_BOOL LOC9;
		if (!(result == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = ((2824 &(1<<(((*s).kind)&31)))!=0);
		if (!(LOC6)) goto LA7;
		LOC6 = ((IL64(2149580812) & (*s).flags) == 0);
		LA7: ;
		LOC5 = LOC6;
		if (!(LOC5)) goto LA8;
		LOC9 = 0;
		LOC9 = iskeyword_460402((*s).name);
		LOC5 = !(LOC9);
		LA8: ;
		keeporigname = LOC5;
		{
			NimStringDesc* LOC14;
			if (!keeporigname) goto LA12;
			LOC14 = 0;
			LOC14 = mangle_454896((*(*s).name).s);
			result = rope_161320(LOC14);
		}
		goto LA10;
		LA12: ;
		{
			NimStringDesc* LOC16;
			Ropeobj161009* LOC17;
			TY460664 LOC18;
			Ropeobj161009* LOC19;
			Ropeobj161009* LOC20;
			LOC16 = 0;
			LOC16 = mangle_454896((*(*s).name).s);
			LOC17 = 0;
			LOC17 = rope_161320(LOC16);
			add_161534(&result, LOC17);
			memset((void*)LOC18, 0, sizeof(LOC18));
			LOC19 = 0;
			LOC19 = HEX25_162235(((NimStringDesc*) &TMP3497), LOC18, 0);
			add_161534(&result, LOC19);
			LOC20 = 0;
			LOC20 = rope_161407(((NI64) ((*s).Sup.id)));
			add_161534(&result, LOC20);
		}
		LA10: ;
		asgnRefNoCycle((void**) (&(*s).loc.r), result);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, fillprocloc_466807)(Tsym190843* sym) {
	{
		Ropeobj161009* LOC5;
		if (!((*sym).loc.k == ((NU8) 0))) goto LA3;
		LOC5 = 0;
		LOC5 = manglename_460425(sym);
		fillloc_459315((&(*sym).loc), ((NU8) 7), (*sym).typ, LOC5, ((NU8) 1));
	}
	LA3: ;
}

N_NIMCALL(void, addforwardedproc_459206)(Tcgen456038* m, Tsym190843* prc) {
	(*m).forwardedprocs = (Tsymseq190815*) incrSeq(&((*m).forwardedprocs)->Sup, sizeof(Tsym190843*));
	asgnRefNoCycle((void**) (&(*m).forwardedprocs->data[(*m).forwardedprocs->Sup.len-1]), prc);
	gforwardedprocscounter_456173 += ((NI) 1);
}

N_NIMCALL(void, useheader_459400)(Tcgen456038* m, Tsym190843* sym) {
	{
		NimStringDesc* LOC5;
		NIM_BOOL LOC6;
		if (!(((*sym).loc.flags &(1<<((((NU8) 6))&15)))!=0)) goto LA3;
		LOC5 = 0;
		LOC5 = getstr_195628((*(*sym).annex).path);
		LOC6 = 0;
		LOC6 = includestr_130279((&(*m).headerfiles), LOC5);
	}
	LA3: ;
}

N_NIMCALL(Ropeobj161009*, typename_460668)(Ttype190849* typ) {
	Ropeobj161009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((*typ).sym == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = mangle_454896((*(*(*typ).sym).name).s);
		result = rope_161320(LOC5);
	}
	goto LA1;
	LA3: ;
	{
		TY460664 LOC7;
		memset((void*)LOC7, 0, sizeof(LOC7));
		result = HEX25_162235(((NimStringDesc*) &TMP3502), LOC7, 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, gettypename_460692)(Ttype190849* typ) {
	Ropeobj161009* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*typ).sym == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((96 & (*(*typ).sym).flags) == 0));
		LA4: ;
		if (!LOC3) goto LA5;
		result = (*(*typ).sym).loc.r;
	}
	goto LA1;
	LA5: ;
	{
		{
			Ropeobj161009* LOC12;
			Ropeobj161009* LOC13;
			if (!((*typ).loc.r == NIM_NIL)) goto LA10;
			LOC12 = 0;
			LOC12 = typename_460668(typ);
			LOC13 = 0;
			LOC13 = rope_161407(((NI64) ((*typ).Sup.id)));
			asgnRefNoCycle((void**) (&(*typ).loc.r), HEX26_161436(LOC12, LOC13));
		}
		LA10: ;
		result = (*typ).loc.r;
	}
	LA1: ;
	{
		NimStringDesc* LOC18;
		if (!(result == NIM_NIL)) goto LA16;
		LOC18 = 0;
		LOC18 = rawNewString(reprEnum((*typ).kind, (&NTI190260))->Sup.len + 13);
appendString(LOC18, ((NimStringDesc*) &TMP3503));
appendString(LOC18, reprEnum((*typ).kind, (&NTI190260)));
		internalerror_165218(LOC18);
	}
	LA16: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, typenameorliteral_461304)(Ttype190849* t, NimStringDesc* literal) {
	Ropeobj161009* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = !(((*t).sym == NIM_NIL));
		if (!(LOC4)) goto LA5;
		LOC4 = (((*(*t).sym).flags &(1<<((((NU8) 5))&31)))!=0);
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC3 = ((*(*t).sym).magic == ((NU16) 0));
		LA6: ;
		if (!LOC3) goto LA7;
		result = gettypename_460692(t);
	}
	goto LA1;
	LA7: ;
	{
		result = rope_161320(literal);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, getsimpletypedesc_461345)(Tcgen456038* m, Ttype190849* typ) {
	Ropeobj161009* result;
	result = 0;
	switch ((*typ).kind) {
	case ((NU8) 26):
	{
		result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3504));
	}
	break;
	case ((NU8) 14):
	{
		{
			NI64 LOC5;
			LOC5 = 0;
			LOC5 = firstord_220004(typ);
			if (!(LOC5 < IL64(0))) goto LA6;
			result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3505));
		}
		goto LA3;
		LA6: ;
		{
			NI64 LOC9;
			LOC9 = 0;
			LOC9 = getsize_220190(typ);
			switch (((NI) (LOC9))) {
			case ((NI) 1):
			{
				result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3506));
			}
			break;
			case ((NI) 2):
			{
				result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3507));
			}
			break;
			case ((NI) 4):
			{
				result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3505));
			}
			break;
			case ((NI) 8):
			{
				result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3508));
			}
			break;
			default:
			{
				NimStringDesc* LOC15;
				NI64 LOC16;
				NimStringDesc* LOC17;
				LOC15 = 0;
				LOC16 = 0;
				LOC16 = getsize_220190(typ);
				LOC17 = 0;
				LOC17 = nimInt64ToStr(LOC16);
				LOC15 = rawNewString(LOC17->Sup.len + 19);
appendString(LOC15, ((NimStringDesc*) &TMP3509));
appendString(LOC15, LOC17);
				internalerror_165199((*(*typ).sym).info, LOC15);
				result = NIM_NIL;
			}
			break;
			}
		}
		LA3: ;
	}
	break;
	case ((NU8) 28):
	{
		Ropeobj161009* LOC19;
		LOC19 = 0;
		LOC19 = cgsym_459609(m, ((NimStringDesc*) &TMP3510));
		result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3511));
	}
	break;
	case ((NU8) 29):
	{
		result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3512));
	}
	break;
	case ((NU8) 1):
	{
		result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3513));
	}
	break;
	case ((NU8) 2):
	{
		result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3514));
	}
	break;
	case ((NU8) 5):
	{
		result = typenameorliteral_461304(typ, ((NimStringDesc*) &TMP3515));
	}
	break;
	case ((NU8) 31) ... ((NU8) 44):
	{
		result = typenameorliteral_461304(typ, Numericaltypetostr_461350[((*typ).kind)- 31]);
	}
	break;
	case ((NU8) 13):
	case ((NU8) 20):
	case ((NU8) 15):
	{
		result = getsimpletypedesc_461345(m, (*typ).sons->data[((NI) 0)]);
	}
	break;
	default:
	{
		result = NIM_NIL;
	}
	break;
	}
	return result;
}

N_NIMCALL(Ropeobj161009*, cachegettype_460994)(Tidtable190861 tab, Ttype190849* key) {
	Ropeobj161009* result;
	Tidobj167015* LOC1;
	TNimObject* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = &key->Sup;
	LOC2 = 0;
	LOC2 = idtableget_198182(tab, LOC1);
	result = ((Ropeobj161009*) (LOC2));
	return result;
}

N_NIMCALL(Ropeobj161009*, gettypepre_461376)(Tcgen456038* m, Ttype190849* typ) {
	Ropeobj161009* result;
	result = 0;
	{
		if (!(typ == NIM_NIL)) goto LA3;
		result = rope_161320(((NimStringDesc*) &TMP3501));
	}
	goto LA1;
	LA3: ;
	{
		result = getsimpletypedesc_461345(m, typ);
		{
			if (!(result == NIM_NIL)) goto LA8;
			result = cachegettype_460994((*m).typecache, typ);
		}
		LA8: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, isimportedcpptype_460867)(Ttype190849* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = !(((*t).sym == NIM_NIL));
	if (!(LOC1)) goto LA2;
	LOC1 = (((*(*t).sym).flags &(1<<((((NU8) 27))&31)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NIM_BOOL, isimportedtype_460837)(Ttype190849* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = !(((*t).sym == NIM_NIL));
	if (!(LOC1)) goto LA2;
	LOC1 = (((*(*t).sym).flags &(1<<((((NU8) 5))&31)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NimStringDesc*, getforwardstructformat_461425)(Tcgen456038* m) {
	NimStringDesc* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_154130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		result = copyString(((NimStringDesc*) &TMP3529));
	}
	goto LA1;
	LA5: ;
	{
		result = copyString(((NimStringDesc*) &TMP3530));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, structorunion_461408)(Ttype190849* t) {
	Ropeobj161009* result;
	result = 0;
	{
		if (!(((*t).flags &(1<<((((NU8) 1))&31)))!=0)) goto LA3;
		result = rope_161320(((NimStringDesc*) &TMP3531));
	}
	goto LA1;
	LA3: ;
	{
		result = rope_161320(((NimStringDesc*) &TMP3532));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, gettypeforward_461452)(Tcgen456038* m, Ttype190849* typ) {
	Ropeobj161009* result;
{	result = 0;
	result = cachegettype_460994((*m).forwtypecache, typ);
	{
		if (!!((result == NIM_NIL))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	result = gettypepre_461376(m, typ);
	{
		if (!!((result == NIM_NIL))) goto LA7;
		goto BeforeRet;
	}
	LA7: ;
	switch ((*typ).kind) {
	case ((NU8) 24):
	case ((NU8) 18):
	case ((NU8) 17):
	{
		Tidobj167015* LOC17;
		TNimObject* LOC18;
		result = gettypename_460692(typ);
		{
			NIM_BOOL LOC12;
			NimStringDesc* LOC15;
			TY490436 LOC16;
			LOC12 = 0;
			LOC12 = isimportedtype_460837(typ);
			if (!!(LOC12)) goto LA13;
			LOC15 = 0;
			LOC15 = getforwardstructformat_461425(m);
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC16[0] = structorunion_461408(typ);
			LOC16[1] = result;
			addf_162635(&(*m).s[(((NU8) 2))- 0], LOC15, LOC16, 2);
		}
		LA13: ;
		LOC17 = 0;
		LOC17 = &typ->Sup;
		LOC18 = 0;
		LOC18 = &result->Sup;
		idtableput_198196((&(*m).forwtypecache), LOC17, LOC18);
	}
	break;
	default:
	{
		NimStringDesc* LOC20;
		LOC20 = 0;
		LOC20 = rawNewString(reprEnum((*typ).kind, (&NTI190260))->Sup.len + 16);
appendString(LOC20, ((NimStringDesc*) &TMP3533));
appendString(LOC20, reprEnum((*typ).kind, (&NTI190260)));
appendChar(LOC20, 41);
		internalerror_165218(LOC20);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pushtype_461359)(Tcgen456038* m, Ttype190849* typ) {
	(*m).typestack = (Ttypeseq190845*) incrSeq(&((*m).typestack)->Sup, sizeof(Ttype190849*));
	asgnRefNoCycle((void**) (&(*m).typestack->data[(*m).typestack->Sup.len-1]), typ);
}

N_NIMCALL(NU8, mapsettype_460771)(Ttype190849* typ) {
	NU8 result;
	NI64 LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getsize_220190(typ);
	switch (((NI) (LOC1))) {
	case ((NI) 1):
	{
		result = ((NU8) 4);
	}
	break;
	case ((NI) 2):
	{
		result = ((NU8) 5);
	}
	break;
	case ((NI) 4):
	{
		result = ((NU8) 6);
	}
	break;
	case ((NI) 8):
	{
		result = ((NU8) 7);
	}
	break;
	default:
	{
		result = ((NU8) 17);
	}
	break;
	}
	return result;
}

N_NIMCALL(NU8, maptype_460778)(Ttype190849* typ) {
	NU8 result;
	result = 0;
	switch ((*typ).kind) {
	case ((NU8) 0):
	case ((NU8) 7):
	{
		result = ((NU8) 0);
	}
	break;
	case ((NU8) 1):
	{
		result = ((NU8) 2);
	}
	break;
	case ((NU8) 2):
	{
		result = ((NU8) 1);
	}
	break;
	case ((NU8) 19):
	{
		result = mapsettype_460771(typ);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 4):
	case ((NU8) 16):
	case ((NU8) 48):
	{
		result = ((NU8) 17);
	}
	break;
	case ((NU8) 17):
	case ((NU8) 18):
	{
		result = ((NU8) 19);
	}
	break;
	case ((NU8) 10):
	case ((NU8) 11):
	case ((NU8) 12):
	case ((NU8) 13):
	case ((NU8) 15):
	case ((NU8) 46):
	case ((NU8) 47):
	case ((NU8) 49):
	case ((NU8) 8):
	{
		Ttype190849* LOC8;
		LOC8 = 0;
		LOC8 = lastson_193442(typ);
		result = maptype_460778(LOC8);
	}
	break;
	case ((NU8) 14):
	{
		{
			NI64 LOC12;
			LOC12 = 0;
			LOC12 = firstord_220004(typ);
			if (!(LOC12 < IL64(0))) goto LA13;
			result = ((NU8) 6);
		}
		goto LA10;
		LA13: ;
		{
			NI64 LOC16;
			LOC16 = 0;
			LOC16 = getsize_220190(typ);
			switch (((NI) (LOC16))) {
			case ((NI) 1):
			{
				result = ((NU8) 13);
			}
			break;
			case ((NI) 2):
			{
				result = ((NU8) 14);
			}
			break;
			case ((NI) 4):
			{
				result = ((NU8) 6);
			}
			break;
			case ((NI) 8):
			{
				result = ((NU8) 7);
			}
			break;
			default:
			{
				internalerror_165218(((NimStringDesc*) &TMP3534));
			}
			break;
			}
		}
		LA10: ;
	}
	break;
	case ((NU8) 20):
	{
		result = maptype_460778((*typ).sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 21):
	case ((NU8) 23):
	case ((NU8) 22):
	{
		Ttype190849* base;
		Ttype190849* LOC24;
		LOC24 = 0;
		LOC24 = lastson_193442(typ);
		base = skiptypes_194167(LOC24, IL64(211106232576256));
		switch ((*base).kind) {
		case ((NU8) 27):
		case ((NU8) 4):
		case ((NU8) 16):
		case ((NU8) 48):
		{
			result = ((NU8) 18);
		}
		break;
		default:
		{
			result = ((NU8) 20);
		}
		break;
		}
	}
	break;
	case ((NU8) 26):
	{
		result = ((NU8) 20);
	}
	break;
	case ((NU8) 24):
	{
		result = ((NU8) 22);
	}
	break;
	case ((NU8) 25):
	{
		{
			if (!!(((*typ).callconv == ((NU8) 8)))) goto LA32;
			result = ((NU8) 23);
		}
		goto LA30;
		LA32: ;
		{
			result = ((NU8) 19);
		}
		LA30: ;
	}
	break;
	case ((NU8) 28):
	{
		result = ((NU8) 21);
	}
	break;
	case ((NU8) 29):
	{
		result = ((NU8) 24);
	}
	break;
	case ((NU8) 31) ... ((NU8) 44):
	{
		result = ((NU8) ((NI)(((NI) ((NI)(((NI) ((*typ).kind)) - ((NI) 31)))) + ((NI) 3))));
	}
	break;
	default:
	{
		internalerror_165218(((NimStringDesc*) &TMP3534));
	}
	break;
	}
	return result;
}

N_NIMCALL(NIM_BOOL, needscomplexassignment_460903)(Ttype190849* typ) {
	NIM_BOOL result;
	result = 0;
	result = containsgarbagecollectedref_220154(typ);
	return result;
}

static N_INLINE(NIM_BOOL, isobjlackingtypefield_460910)(Ttype190849* typ) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	NIM_BOOL LOC4;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*typ).kind == ((NU8) 17));
	if (!(LOC1)) goto LA2;
	LOC3 = 0;
	LOC4 = 0;
	LOC4 = (((*typ).flags &(1<<((((NU8) 2))&31)))!=0);
	if (!(LOC4)) goto LA5;
	LOC4 = ((*typ).sons->data[((NI) 0)] == NIM_NIL);
	LA5: ;
	LOC3 = LOC4;
	if (LOC3) goto LA6;
	LOC3 = ispureobject_220196(typ);
	LA6: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NIM_BOOL, isinvalidreturntype_460948)(Ttype190849* rettype) {
	NIM_BOOL result;
{	result = 0;
	{
		if (!(rettype == NIM_NIL)) goto LA3;
		result = NIM_TRUE;
	}
	goto LA1;
	LA3: ;
	{
		NU8 LOC6;
		LOC6 = 0;
		LOC6 = maptype_460778(rettype);
		switch (LOC6) {
		case ((NU8) 17):
		{
			Ttype190849* LOC8;
			LOC8 = 0;
			LOC8 = skiptypes_194167(rettype, IL64(211106232576256));
			result = !(((*LOC8).kind == ((NU8) 23) || (*LOC8).kind == ((NU8) 22) || (*LOC8).kind == ((NU8) 21)));
		}
		break;
		case ((NU8) 19):
		{
			Ttype190849* t;
			NIM_BOOL LOC16;
			NIM_BOOL LOC18;
			NIM_BOOL LOC20;
			t = skiptypes_194167(rettype, IL64(211106232576256));
			{
				NIM_BOOL LOC12;
				LOC12 = 0;
				LOC12 = isimportedcpptype_460867(rettype);
				if (LOC12) goto LA13;
				LOC12 = isimportedcpptype_460867(t);
				LA13: ;
				if (!LOC12) goto LA14;
				result = NIM_FALSE;
				goto BeforeRet;
			}
			LA14: ;
			LOC16 = 0;
			LOC16 = needscomplexassignment_460903(t);
			if (LOC16) goto LA17;
			LOC18 = 0;
			LOC18 = ((*t).kind == ((NU8) 17));
			if (!(LOC18)) goto LA19;
			LOC20 = 0;
			LOC20 = isobjlackingtypefield_460910(t);
			LOC18 = !(LOC20);
			LA19: ;
			LOC16 = LOC18;
			LA17: ;
			result = LOC16;
		}
		break;
		default:
		{
			result = NIM_FALSE;
		}
		break;
		}
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, iscompiletimeonly_229712)(Ttype190849* t) {
	NIM_BOOL result;
	result = 0;
	result = ((*t).kind == ((NU8) 8) || (*t).kind == ((NU8) 59));
	return result;
}

N_NIMCALL(NU8, paramstorageloc_461517)(Tsym190843* param) {
	NU8 result;
	result = 0;
	{
		Ttype190849* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_194167((*param).typ, 8388864);
		if (!!(((*LOC3).kind == ((NU8) 16) || (*LOC3).kind == ((NU8) 27)))) goto LA4;
		result = ((NU8) 1);
	}
	goto LA1;
	LA4: ;
	{
		result = ((NU8) 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(NIM_BOOL, ccgintroducedptr_461018)(Tsym190843* s) {
	NIM_BOOL result;
	Ttype190849* pt;
{	result = 0;
	pt = skiptypes_194167((*s).typ, IL64(211106232576256));
	{
		if (!(((*pt).flags &(1<<((((NU8) 13))&31)))!=0)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	goto LA1;
	LA3: ;
	{
		if (!(((*pt).flags &(1<<((((NU8) 12))&31)))!=0)) goto LA6;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	goto LA1;
	LA6: ;
	LA1: ;
	switch ((*pt).kind) {
	case ((NU8) 17):
	{
		{
			NIM_BOOL LOC11;
			NI64 LOC13;
			LOC11 = 0;
			LOC11 = (((*s).options &(1<<((((NU8) 18))&31)))!=0);
			if (LOC11) goto LA12;
			LOC13 = 0;
			LOC13 = getsize_220190(pt);
			LOC11 = (((NI64) ((NI)(floatsize_159624 * ((NI) 2)))) < LOC13);
			LA12: ;
			if (!LOC11) goto LA14;
			result = NIM_TRUE;
		}
		goto LA9;
		LA14: ;
		{
			NIM_BOOL LOC17;
			LOC17 = 0;
			LOC17 = (((*pt).flags &(1<<((((NU8) 2))&31)))!=0);
			if (!(LOC17)) goto LA18;
			LOC17 = ((*pt).sons->data[((NI) 0)] == NIM_NIL);
			LA18: ;
			if (!LOC17) goto LA19;
			result = NIM_FALSE;
		}
		goto LA9;
		LA19: ;
		{
			result = NIM_TRUE;
		}
		LA9: ;
	}
	break;
	case ((NU8) 18):
	{
		NIM_BOOL LOC23;
		NI64 LOC24;
		LOC23 = 0;
		LOC24 = 0;
		LOC24 = getsize_220190(pt);
		LOC23 = (((NI64) ((NI)(floatsize_159624 * ((NI) 2)))) < LOC24);
		if (LOC23) goto LA25;
		LOC23 = (((*s).options &(1<<((((NU8) 18))&31)))!=0);
		LA25: ;
		result = LOC23;
	}
	break;
	default:
	{
		result = NIM_FALSE;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, gettypedescweak_461495)(Tcgen456038* m, Ttype190849* t, Intset187056* check) {
	Ropeobj161009* result;
	Ttype190849* etb;
	result = 0;
	etb = skiptypes_194167(t, IL64(211106232576256));
	switch ((*etb).kind) {
	case ((NU8) 17):
	case ((NU8) 18):
	{
		{
			NIM_BOOL LOC4;
			LOC4 = 0;
			LOC4 = isimportedcpptype_460867(etb);
			if (!(LOC4)) goto LA5;
			LOC4 = ((*t).kind == ((NU8) 11));
			LA5: ;
			if (!LOC4) goto LA6;
			result = gettypedescaux_460897(m, t, check);
		}
		goto LA2;
		LA6: ;
		{
			Ttype190849* x;
			x = getuniquetype_454656(etb);
			result = gettypeforward_461452(m, x);
			pushtype_461359(m, x);
		}
		LA2: ;
	}
	break;
	case ((NU8) 24):
	{
		Ttype190849* x;
		Ropeobj161009* LOC10;
		x = getuniquetype_454656(etb);
		LOC10 = 0;
		LOC10 = gettypeforward_461452(m, x);
		result = HEX26_161471(LOC10, ((NimStringDesc*) &TMP3528));
		pushtype_461359(m, x);
	}
	break;
	default:
	{
		result = gettypedescaux_460897(m, t, check);
	}
	break;
	}
	return result;
}

N_NIMCALL(NU8, mapreturntype_460821)(Ttype190849* typ) {
	NU8 result;
	result = 0;
	{
		Ttype190849* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_194167(typ, IL64(211106232576256));
		if (!((*LOC3).kind == ((NU8) 16))) goto LA4;
		result = ((NU8) 20);
	}
	goto LA1;
	LA4: ;
	{
		result = maptype_460778(typ);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, genprocparams_461537)(Tcgen456038* m, Ttype190849* t, Ropeobj161009** rettype, Ropeobj161009** params, Intset187056* check, NIM_BOOL declareenvironment) {
	unsureAsgnRef((void**) (&(*params)), NIM_NIL);
	{
		NIM_BOOL LOC3;
		TY460664 LOC7;
		LOC3 = 0;
		LOC3 = ((*t).sons->data[((NI) 0)] == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = isinvalidreturntype_460948((*t).sons->data[((NI) 0)]);
		LA4: ;
		if (!LOC3) goto LA5;
		memset((void*)LOC7, 0, sizeof(LOC7));
		unsureAsgnRef((void**) (&(*rettype)), HEX25_162235(((NimStringDesc*) &TMP3501), LOC7, 0));
	}
	goto LA1;
	LA5: ;
	{
		unsureAsgnRef((void**) (&(*rettype)), gettypedescaux_460897(m, (*t).sons->data[((NI) 0)], check));
	}
	LA1: ;
	{
		NI i_461574;
		NI HEX3Atmp_461774;
		NI LOC10;
		NI res_461777;
		i_461574 = 0;
		HEX3Atmp_461774 = 0;
		LOC10 = 0;
		LOC10 = sonslen_193403((*t).n);
		HEX3Atmp_461774 = (NI)(LOC10 - ((NI) 1));
		res_461777 = ((NI) 1);
		{
			while (1) {
				if (!(res_461777 <= HEX3Atmp_461774)) goto LA12;
				i_461574 = res_461777;
				{
					Tsym190843* param;
					Ropeobj161009* LOC29;
					NU8 LOC30;
					TY460664 LOC41;
					Ropeobj161009* LOC42;
					Ttype190849* arr;
					NI j;
					{
						if (!!(((*(*(*t).n).kindU.S6.sons->data[i_461574]).kind == ((NU8) 3)))) goto LA16;
						internalerror_165199((*(*t).n).info, ((NimStringDesc*) &TMP3535));
					}
					LA16: ;
					param = (*(*(*t).n).kindU.S6.sons->data[i_461574]).kindU.S4.sym;
					{
						NIM_BOOL LOC20;
						LOC20 = 0;
						LOC20 = iscompiletimeonly_229712((*param).typ);
						if (!LOC20) goto LA21;
						goto LA13;
					}
					LA21: ;
					{
						TY460664 LOC27;
						Ropeobj161009* LOC28;
						if (!!(((*params) == NIM_NIL))) goto LA25;
						memset((void*)LOC27, 0, sizeof(LOC27));
						LOC28 = 0;
						LOC28 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC27, 0);
						add_161534(params, LOC28);
					}
					LA25: ;
					LOC29 = 0;
					LOC29 = manglename_460425(param);
					LOC30 = 0;
					LOC30 = paramstorageloc_461517(param);
					fillloc_459315((&(*param).loc), ((NU8) 4), (*param).typ, LOC29, LOC30);
					{
						NIM_BOOL LOC33;
						Ropeobj161009* LOC36;
						TY460664 LOC37;
						Ropeobj161009* LOC38;
						LOC33 = 0;
						LOC33 = ccgintroducedptr_461018(param);
						if (!LOC33) goto LA34;
						LOC36 = 0;
						LOC36 = gettypedescweak_461495(m, (*param).typ, check);
						add_161534(params, LOC36);
						memset((void*)LOC37, 0, sizeof(LOC37));
						LOC38 = 0;
						LOC38 = HEX25_162235(((NimStringDesc*) &TMP3528), LOC37, 0);
						add_161534(params, LOC38);
						(*param).loc.flags |= ((NI16)1)<<((((NU8) 0))%(sizeof(NI16)*8));
						(*param).loc.s = ((NU8) 0);
					}
					goto LA31;
					LA34: ;
					{
						Ropeobj161009* LOC40;
						LOC40 = 0;
						LOC40 = gettypedescaux_460897(m, (*param).typ, check);
						add_161534(params, LOC40);
					}
					LA31: ;
					memset((void*)LOC41, 0, sizeof(LOC41));
					LOC42 = 0;
					LOC42 = HEX25_162235(((NimStringDesc*) &TMP3537), LOC41, 0);
					add_161534(params, LOC42);
					add_161534(params, (*param).loc.r);
					arr = (*param).typ;
					{
						if (!((*arr).kind == ((NU8) 23))) goto LA45;
						arr = (*arr).sons->data[((NI) 0)];
					}
					LA45: ;
					j = ((NI) 0);
					{
						while (1) {
							TY490436 LOC53;
							if (!((*arr).kind == ((NU8) 27) || (*arr).kind == ((NU8) 48))) goto LA48;
							{
								if (!((*(*param).typ).kind == ((NU8) 23))) goto LA51;
								(*param).loc.s = ((NU8) 0);
							}
							LA51: ;
							memset((void*)LOC53, 0, sizeof(LOC53));
							LOC53[0] = (*param).loc.r;
							LOC53[1] = rope_161407(((NI64) (j)));
							addf_162635(params, ((NimStringDesc*) &TMP3538), LOC53, 2);
							j += ((NI) 1);
							arr = (*arr).sons->data[((NI) 0)];
						} LA48: ;
					}
				} LA13: ;
				res_461777 += ((NI) 1);
			} LA12: ;
		}
	}
	{
		NIM_BOOL LOC56;
		Ttype190849* arr;
		TY460664 LOC72;
		LOC56 = 0;
		LOC56 = !(((*t).sons->data[((NI) 0)] == NIM_NIL));
		if (!(LOC56)) goto LA57;
		LOC56 = isinvalidreturntype_460948((*t).sons->data[((NI) 0)]);
		LA57: ;
		if (!LOC56) goto LA58;
		arr = (*t).sons->data[((NI) 0)];
		{
			if (!!(((*params) == NIM_NIL))) goto LA62;
			add_161545(params, ((NimStringDesc*) &TMP3536));
		}
		LA62: ;
		{
			NU8 LOC66;
			Ropeobj161009* LOC69;
			LOC66 = 0;
			LOC66 = mapreturntype_460821((*t).sons->data[((NI) 0)]);
			if (!!((LOC66 == ((NU8) 17)))) goto LA67;
			LOC69 = 0;
			LOC69 = gettypedescweak_461495(m, arr, check);
			add_161534(params, LOC69);
			add_161545(params, ((NimStringDesc*) &TMP3528));
		}
		goto LA64;
		LA67: ;
		{
			Ropeobj161009* LOC71;
			LOC71 = 0;
			LOC71 = gettypedescaux_460897(m, arr, check);
			add_161534(params, LOC71);
		}
		LA64: ;
		memset((void*)LOC72, 0, sizeof(LOC72));
		addf_162635(params, ((NimStringDesc*) &TMP3539), LOC72, 0);
	}
	LA58: ;
	{
		NIM_BOOL LOC75;
		LOC75 = 0;
		LOC75 = ((*t).callconv == ((NU8) 8));
		if (!(LOC75)) goto LA76;
		LOC75 = declareenvironment;
		LA76: ;
		if (!LOC75) goto LA77;
		{
			if (!!(((*params) == NIM_NIL))) goto LA81;
			add_161545(params, ((NimStringDesc*) &TMP3536));
		}
		LA81: ;
		add_161545(params, ((NimStringDesc*) &TMP3540));
	}
	LA77: ;
	{
		if (!(((*t).flags &(1<<((((NU8) 0))&31)))!=0)) goto LA85;
		{
			if (!!(((*params) == NIM_NIL))) goto LA89;
			add_161545(params, ((NimStringDesc*) &TMP3536));
		}
		LA89: ;
		add_161545(params, ((NimStringDesc*) &TMP3541));
	}
	LA85: ;
	{
		if (!((*params) == NIM_NIL)) goto LA93;
		add_161545(params, ((NimStringDesc*) &TMP3542));
	}
	goto LA91;
	LA93: ;
	{
		add_161545(params, ((NimStringDesc*) &TMP3543));
	}
	LA91: ;
	unsureAsgnRef((void**) (&(*params)), HEX26_161482(((NimStringDesc*) &TMP3544), (*params)));
}

N_NIMCALL(void, appcg_459880)(Tcgen456038* m, Ropeobj161009** c, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009* LOC1;
	LOC1 = 0;
	LOC1 = ropecg_459616(m, frmt, args, argsLen0);
	add_161534(c, LOC1);
}

N_NIMCALL(NIM_BOOL, scancppgenericslot_462308)(NimStringDesc* pat, NI* cursor, NI* outidx, NI* outstars) {
	NIM_BOOL result;
	NI begin;
{	result = 0;
	(*cursor) += ((NI) 1);
	begin = (*cursor);
	{
		while (1) {
			if (!((NU8)(pat->data[(*cursor)]) == (NU8)(42))) goto LA2;
			(*cursor) += ((NI) 1);
		} LA2: ;
	}
	{
		if (!(((NU8)(pat->data[(*cursor)])) >= ((NU8)(48)) && ((NU8)(pat->data[(*cursor)])) <= ((NU8)(57)))) goto LA5;
		(*outidx) = ((NI) ((NI)(((NI) (((NU8)(pat->data[(*cursor)])))) - ((NI) 48))));
		(*outstars) = (NI)((*cursor) - begin);
		(*cursor) += ((NI) 1);
		result = NIM_TRUE;
		goto BeforeRet;
	}
	goto LA3;
	LA5: ;
	{
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA3: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ttype190849*, resolvestarsincpptype_462381)(Ttype190849* typ, NI idx, NI stars) {
	Ttype190849* result;
	result = 0;
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_193377(typ);
		if (!(LOC3 <= idx)) goto LA4;
		internalerror_165218(((NimStringDesc*) &TMP3562));
	}
	LA4: ;
	result = (*typ).sons->data[idx];
	{
		NI i_462397;
		NI res_462422;
		i_462397 = 0;
		res_462422 = ((NI) 1);
		{
			while (1) {
				if (!(res_462422 <= stars)) goto LA8;
				i_462397 = res_462422;
				{
					NIM_BOOL LOC11;
					NI LOC13;
					LOC11 = 0;
					LOC11 = !((result == NIM_NIL));
					if (!(LOC11)) goto LA12;
					LOC13 = 0;
					LOC13 = len_193377(result);
					LOC11 = (((NI) 0) < LOC13);
					LA12: ;
					if (!LOC11) goto LA14;
					{
						if (!((*result).kind == ((NU8) 11))) goto LA18;
						result = (*result).sons->data[((NI) 1)];
					}
					goto LA16;
					LA18: ;
					{
						result = elemtype_220522(result);
					}
					LA16: ;
				}
				LA14: ;
				res_462422 += ((NI) 1);
			} LA8: ;
		}
	}
	return result;
}

N_NIMCALL(NimStringDesc*, manglefield_460418)(Tident167021* name) {
	NimStringDesc* result;
	result = 0;
	result = mangle_454896((*name).s);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = iskeyword_460402(name);
		if (!LOC3) goto LA4;
		result->data[((NI) 0)] = nsuToUpperChar(result->data[((NI) 0)]);
	}
	LA4: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, manglerecfieldname_461803)(Tsym190843* field, Ttype190849* rectype) {
	Ropeobj161009* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*rectype).sym == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((96 & (*(*rectype).sym).flags) == 0));
		LA4: ;
		if (!LOC3) goto LA5;
		result = (*field).loc.r;
	}
	goto LA1;
	LA5: ;
	{
		NimStringDesc* LOC8;
		LOC8 = 0;
		LOC8 = manglefield_460418((*field).name);
		result = rope_161320(LOC8);
	}
	LA1: ;
	{
		if (!(result == NIM_NIL)) goto LA11;
		internalerror_165199((*field).info, ((NimStringDesc*) &TMP3576));
	}
	LA11: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, genrecordfieldsaux_461866)(Tcgen456038* m, Tnode190813* n, Ropeobj161009* accessexpr, Ttype190849* rectype, Intset187056* check) {
	Ropeobj161009* result;
	Ropeobj161009* ae;
	Ropeobj161009* uname;
	Ropeobj161009* sname;
	Ropeobj161009* a;
	Tnode190813* k;
	Tsym190843* field;
{	result = 0;
	ae = 0;
	uname = 0;
	sname = 0;
	a = 0;
	k = 0;
	field = 0;
	result = NIM_NIL;
	switch ((*n).kind) {
	case ((NU8) 138):
	{
		{
			NI i_461893;
			NI HEX3Atmp_462061;
			NI LOC3;
			NI res_462064;
			i_461893 = 0;
			HEX3Atmp_462061 = 0;
			LOC3 = 0;
			LOC3 = sonslen_193403(n);
			HEX3Atmp_462061 = (NI)(LOC3 - ((NI) 1));
			res_462064 = ((NI) 0);
			{
				while (1) {
					Ropeobj161009* LOC6;
					if (!(res_462064 <= HEX3Atmp_462061)) goto LA5;
					i_461893 = res_462064;
					LOC6 = 0;
					LOC6 = genrecordfieldsaux_461866(m, (*n).kindU.S6.sons->data[i_461893], accessexpr, rectype, check);
					add_161534(&result, LOC6);
					res_462064 += ((NI) 1);
				} LA5: ;
			}
		}
	}
	break;
	case ((NU8) 139):
	{
		Ropeobj161009* LOC12;
		NimStringDesc* LOC13;
		NimStringDesc* LOC14;
		Ropeobj161009* unionbody;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA10;
			internalerror_165199((*n).info, ((NimStringDesc*) &TMP3569));
		}
		LA10: ;
		LOC12 = 0;
		LOC12 = genrecordfieldsaux_461866(m, (*n).kindU.S6.sons->data[((NI) 0)], accessexpr, rectype, check);
		add_161534(&result, LOC12);
		LOC13 = 0;
		LOC14 = 0;
		LOC14 = mangle_454896((*(*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).name).s);
		LOC13 = rawNewString(LOC14->Sup.len + 1);
appendString(LOC13, LOC14);
appendChar(LOC13, 85);
		uname = rope_161320(LOC13);
		{
			TY490436 LOC19;
			if (!!((accessexpr == NIM_NIL))) goto LA17;
			memset((void*)LOC19, 0, sizeof(LOC19));
			LOC19[0] = accessexpr;
			LOC19[1] = uname;
			ae = HEX25_162235(((NimStringDesc*) &TMP3570), LOC19, 2);
		}
		goto LA15;
		LA17: ;
		{
			ae = uname;
		}
		LA15: ;
		unionbody = NIM_NIL;
		{
			NI i_461938;
			NI HEX3Atmp_462070;
			NI LOC22;
			NI res_462073;
			i_461938 = 0;
			HEX3Atmp_462070 = 0;
			LOC22 = 0;
			LOC22 = sonslen_193403(n);
			HEX3Atmp_462070 = (NI)(LOC22 - ((NI) 1));
			res_462073 = ((NI) 1);
			{
				while (1) {
					if (!(res_462073 <= HEX3Atmp_462070)) goto LA24;
					i_461938 = res_462073;
					switch ((*(*n).kindU.S6.sons->data[i_461938]).kind) {
					case ((NU8) 85):
					case ((NU8) 88):
					{
						k = lastson_193431((*n).kindU.S6.sons->data[i_461938]);
						{
							Ropeobj161009* LOC30;
							TY490436 LOC31;
							Ropeobj161009* LOC32;
							if (!!(((*k).kind == ((NU8) 3)))) goto LA28;
							LOC30 = 0;
							LOC30 = rope_161407(((NI64) (i_461938)));
							sname = HEX26_161482(((NimStringDesc*) &TMP3571), LOC30);
							memset((void*)LOC31, 0, sizeof(LOC31));
							LOC31[0] = ae;
							LOC31[1] = sname;
							LOC32 = 0;
							LOC32 = HEX25_162235(((NimStringDesc*) &TMP3570), LOC31, 2);
							a = genrecordfieldsaux_461866(m, k, LOC32, rectype, check);
							{
								TY161572 LOC37;
								if (!!((a == NIM_NIL))) goto LA35;
								add_161545(&unionbody, ((NimStringDesc*) &TMP3572));
								add_161534(&unionbody, a);
								memset((void*)LOC37, 0, sizeof(LOC37));
								LOC37[0] = sname;
								addf_162635(&unionbody, ((NimStringDesc*) &TMP3573), LOC37, 1);
							}
							LA35: ;
						}
						goto LA26;
						LA28: ;
						{
							Ropeobj161009* LOC39;
							LOC39 = 0;
							LOC39 = genrecordfieldsaux_461866(m, k, ae, rectype, check);
							add_161534(&unionbody, LOC39);
						}
						LA26: ;
					}
					break;
					default:
					{
						internalerror_165218(((NimStringDesc*) &TMP3574));
					}
					break;
					}
					res_462073 += ((NI) 1);
				} LA24: ;
			}
		}
		{
			TY490436 LOC45;
			if (!!((unionbody == NIM_NIL))) goto LA43;
			memset((void*)LOC45, 0, sizeof(LOC45));
			LOC45[0] = unionbody;
			LOC45[1] = uname;
			addf_162635(&result, ((NimStringDesc*) &TMP3575), LOC45, 2);
		}
		LA43: ;
	}
	break;
	case ((NU8) 3):
	{
		field = (*n).kindU.S4.sym;
		{
			if (!((*(*field).typ).kind == ((NU8) 3))) goto LA49;
			goto BeforeRet;
		}
		LA49: ;
		sname = manglerecfieldname_461803(field, rectype);
		{
			TY490436 LOC55;
			if (!!((accessexpr == NIM_NIL))) goto LA53;
			memset((void*)LOC55, 0, sizeof(LOC55));
			LOC55[0] = accessexpr;
			LOC55[1] = sname;
			ae = HEX25_162235(((NimStringDesc*) &TMP3570), LOC55, 2);
		}
		goto LA51;
		LA53: ;
		{
			ae = sname;
		}
		LA51: ;
		fillloc_459315((&(*field).loc), ((NU8) 5), (*field).typ, ae, ((NU8) 0));
		{
			NIM_BOOL LOC59;
			Ttype190849* fieldtype;
			LOC59 = 0;
			LOC59 = isimportedcpptype_460867(rectype);
			if (!!(LOC59)) goto LA60;
			fieldtype = skiptypes_194167((*field).loc.t, IL64(211106232576256));
			{
				NIM_BOOL LOC64;
				TY490436 LOC68;
				Ttype190849* LOC69;
				LOC64 = 0;
				LOC64 = ((*fieldtype).kind == ((NU8) 16));
				if (!(LOC64)) goto LA65;
				LOC64 = (((*fieldtype).flags &(1<<((((NU8) 0))&31)))!=0);
				LA65: ;
				if (!LOC64) goto LA66;
				memset((void*)LOC68, 0, sizeof(LOC68));
				LOC69 = 0;
				LOC69 = elemtype_220522(fieldtype);
				LOC68[0] = gettypedescaux_460897(m, LOC69, check);
				LOC68[1] = sname;
				addf_162635(&result, ((NimStringDesc*) &TMP3577), LOC68, 2);
			}
			goto LA62;
			LA66: ;
			{
				TY490436 LOC73;
				if (!((*fieldtype).kind == ((NU8) 24))) goto LA71;
				memset((void*)LOC73, 0, sizeof(LOC73));
				LOC73[0] = gettypedescweak_461495(m, (*field).loc.t, check);
				LOC73[1] = sname;
				addf_162635(&result, ((NimStringDesc*) &TMP3529), LOC73, 2);
			}
			goto LA62;
			LA71: ;
			{
				TY490436 LOC75;
				memset((void*)LOC75, 0, sizeof(LOC75));
				LOC75[0] = gettypedescaux_460897(m, (*field).loc.t, check);
				LOC75[1] = sname;
				addf_162635(&result, ((NimStringDesc*) &TMP3529), LOC75, 2);
			}
			LA62: ;
		}
		LA60: ;
	}
	break;
	default:
	{
		internalerror_165199((*n).info, ((NimStringDesc*) &TMP3578));
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, getrecordfields_462098)(Tcgen456038* m, Ttype190849* typ, Intset187056* check) {
	Ropeobj161009* result;
	result = 0;
	result = genrecordfieldsaux_461866(m, (*typ).n, NIM_NIL, typ, check);
	return result;
}

N_NIMCALL(Ropeobj161009*, getrecorddesc_462108)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name, Intset187056* check) {
	Ropeobj161009* result;
	NIM_BOOL hasfield;
	Ropeobj161009* attribute;
	TY462569 LOC6;
	Ropeobj161009* desc;
	NimStringDesc* LOC44;
	result = 0;
	hasfield = NIM_FALSE;
	{
		if (!(((*typ).flags &(1<<((((NU8) 21))&31)))!=0)) goto LA3;
		attribute = rope_161320(Cc_170434[(ccompiler_170455)- 1].Field19);
	}
	goto LA1;
	LA3: ;
	{
		attribute = NIM_NIL;
	}
	LA1: ;
	memset((void*)LOC6, 0, sizeof(LOC6));
	LOC6[0] = structorunion_461408(typ);
	LOC6[1] = name;
	LOC6[2] = attribute;
	result = ropecg_459616(m, Cc_170434[(ccompiler_170455)- 1].Field18, LOC6, 3);
	{
		if (!((*typ).kind == ((NU8) 17))) goto LA9;
		{
			if (!((*typ).sons->data[((NI) 0)] == NIM_NIL)) goto LA13;
			{
				NIM_BOOL LOC17;
				NIM_BOOL LOC18;
				TY460664 LOC23;
				LOC17 = 0;
				LOC18 = 0;
				LOC18 = !(((*typ).sym == NIM_NIL));
				if (!(LOC18)) goto LA19;
				LOC18 = (((*(*typ).sym).flags &(1<<((((NU8) 9))&31)))!=0);
				LA19: ;
				LOC17 = LOC18;
				if (LOC17) goto LA20;
				LOC17 = (((*typ).flags &(1<<((((NU8) 2))&31)))!=0);
				LA20: ;
				if (!LOC17) goto LA21;
				memset((void*)LOC23, 0, sizeof(LOC23));
				appcg_459880(m, &result, ((NimStringDesc*) &TMP3565), LOC23, 0);
			}
			goto LA15;
			LA21: ;
			{
				TY490436 LOC25;
				memset((void*)LOC25, 0, sizeof(LOC25));
				LOC25[0] = name;
				LOC25[1] = attribute;
				appcg_459880(m, &result, ((NimStringDesc*) &TMP3566), LOC25, 2);
				hasfield = NIM_TRUE;
			}
			LA15: ;
		}
		goto LA11;
		LA13: ;
		{
			NIM_BOOL LOC27;
			TY161572 LOC31;
			LOC27 = 0;
			LOC27 = (gcmd_154130 == ((NU8) 2));
			if (LOC27) goto LA28;
			LOC27 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA28: ;
			if (!LOC27) goto LA29;
			memset((void*)LOC31, 0, sizeof(LOC31));
			LOC31[0] = gettypedescaux_460897(m, (*typ).sons->data[((NI) 0)], check);
			appcg_459880(m, &result, ((NimStringDesc*) &TMP3567), LOC31, 1);
			hasfield = NIM_TRUE;
		}
		goto LA11;
		LA29: ;
		{
			TY161572 LOC33;
			memset((void*)LOC33, 0, sizeof(LOC33));
			LOC33[0] = gettypedescaux_460897(m, (*typ).sons->data[((NI) 0)], check);
			appcg_459880(m, &result, ((NimStringDesc*) &TMP3568), LOC33, 1);
			hasfield = NIM_TRUE;
		}
		LA11: ;
	}
	goto LA7;
	LA9: ;
	{
		TY161572 LOC35;
		memset((void*)LOC35, 0, sizeof(LOC35));
		LOC35[0] = name;
		addf_162635(&result, ((NimStringDesc*) &TMP3565), LOC35, 1);
	}
	LA7: ;
	desc = getrecordfields_462098(m, typ, check);
	{
		NIM_BOOL LOC38;
		TY460664 LOC42;
		LOC38 = 0;
		LOC38 = (desc == NIM_NIL);
		if (!(LOC38)) goto LA39;
		LOC38 = !(hasfield);
		LA39: ;
		if (!LOC38) goto LA40;
		memset((void*)LOC42, 0, sizeof(LOC42));
		addf_162635(&result, ((NimStringDesc*) &TMP3579), LOC42, 0);
	}
	goto LA36;
	LA40: ;
	{
		add_161534(&result, desc);
	}
	LA36: ;
	LOC44 = 0;
	LOC44 = rawNewString(tnl_159626->Sup.len + 2);
appendString(LOC44, ((NimStringDesc*) &TMP3580));
appendString(LOC44, tnl_159626);
	add_161545(&result, LOC44);
	return result;
}

N_NIMCALL(Ropeobj161009*, gettupledesc_462245)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name, Intset187056* check) {
	Ropeobj161009* result;
	TY490436 LOC1;
	Ropeobj161009* desc;
	NimStringDesc* LOC13;
	result = 0;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = structorunion_461408(typ);
	LOC1[1] = name;
	result = HEX25_162235(((NimStringDesc*) &TMP3581), LOC1, 2);
	desc = NIM_NIL;
	{
		NI i_462268;
		NI HEX3Atmp_462289;
		NI LOC3;
		NI res_462292;
		i_462268 = 0;
		HEX3Atmp_462289 = 0;
		LOC3 = 0;
		LOC3 = sonslen_193351(typ);
		HEX3Atmp_462289 = (NI)(LOC3 - ((NI) 1));
		res_462292 = ((NI) 0);
		{
			while (1) {
				TY490436 LOC6;
				if (!(res_462292 <= HEX3Atmp_462289)) goto LA5;
				i_462268 = res_462292;
				memset((void*)LOC6, 0, sizeof(LOC6));
				LOC6[0] = gettypedescaux_460897(m, (*typ).sons->data[i_462268], check);
				LOC6[1] = rope_161407(((NI64) (i_462268)));
				addf_162635(&desc, ((NimStringDesc*) &TMP3582), LOC6, 2);
				res_462292 += ((NI) 1);
			} LA5: ;
		}
	}
	{
		NimStringDesc* LOC11;
		if (!(desc == NIM_NIL)) goto LA9;
		LOC11 = 0;
		LOC11 = rawNewString(tnl_159626->Sup.len + 11);
appendString(LOC11, ((NimStringDesc*) &TMP3583));
appendString(LOC11, tnl_159626);
		add_161545(&result, LOC11);
	}
	goto LA7;
	LA9: ;
	{
		add_161534(&result, desc);
	}
	LA7: ;
	LOC13 = 0;
	LOC13 = rawNewString(tnl_159626->Sup.len + 2);
appendString(LOC13, ((NimStringDesc*) &TMP3580));
appendString(LOC13, tnl_159626);
	add_161545(&result, LOC13);
	return result;
}

N_NIMCALL(Ropeobj161009*, gettypedescaux_460897)(Tcgen456038* m, Ttype190849* typ, Intset187056* check) {
	Ropeobj161009* result;
	Ttype190849* t;
{	result = 0;
	t = getuniquetype_454656(typ);
	{
		if (!(t == NIM_NIL)) goto LA3;
		internalerror_165218(((NimStringDesc*) &TMP3500));
	}
	LA3: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA7;
		useheader_459400(m, (*t).sym);
	}
	LA7: ;
	result = gettypepre_461376(m, t);
	{
		if (!!((result == NIM_NIL))) goto LA11;
		goto BeforeRet;
	}
	LA11: ;
	{
		NIM_BOOL LOC15;
		NimStringDesc* LOC24;
		NimStringDesc* LOC25;
		LOC15 = 0;
		LOC15 = containsorincl_187898(check, (*t).Sup.id);
		if (!LOC15) goto LA16;
		{
			NIM_BOOL LOC20;
			LOC20 = 0;
			LOC20 = isimportedcpptype_460867(typ);
			if (LOC20) goto LA21;
			LOC20 = isimportedcpptype_460867(t);
			LA21: ;
			if (!LOC20) goto LA22;
			goto BeforeRet;
		}
		LA22: ;
		LOC24 = 0;
		LOC25 = 0;
		LOC25 = typetostring_220032(typ, ((NU8) 0));
		LOC24 = rawNewString(LOC25->Sup.len + 28);
appendString(LOC24, ((NimStringDesc*) &TMP3526));
appendString(LOC24, LOC25);
		internalerror_165218(LOC24);
	}
	LA16: ;
	switch ((*t).kind) {
	case ((NU8) 22):
	case ((NU8) 21):
	case ((NU8) 23):
	{
		NimStringDesc* star;
		Ttype190849* et;
		Ttype190849* etb;
		{
			NIM_BOOL LOC29;
			NIM_BOOL LOC30;
			NIM_BOOL LOC33;
			LOC29 = 0;
			LOC30 = 0;
			LOC30 = ((*t).kind == ((NU8) 23));
			if (!(LOC30)) goto LA31;
			LOC30 = !((((*typ).flags &(1<<((((NU8) 18))&31)))!=0));
			LA31: ;
			LOC29 = LOC30;
			if (!(LOC29)) goto LA32;
			LOC33 = 0;
			LOC33 = (gcmd_154130 == ((NU8) 2));
			if (LOC33) goto LA34;
			LOC33 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA34: ;
			LOC29 = LOC33;
			LA32: ;
			if (!LOC29) goto LA35;
			star = copyString(((NimStringDesc*) &TMP3527));
		}
		goto LA27;
		LA35: ;
		{
			star = copyString(((NimStringDesc*) &TMP3528));
		}
		LA27: ;
		et = lastson_193442(t);
		etb = skiptypes_194167(et, IL64(211106232576256));
		{
			if (!((*etb).kind == ((NU8) 4) || (*etb).kind == ((NU8) 16) || (*etb).kind == ((NU8) 27) || (*etb).kind == ((NU8) 48))) goto LA40;
			et = elemtype_220522(etb);
			etb = skiptypes_194167(et, IL64(211106232576256));
			star->data[((NI) 0)] = 42;
		}
		LA40: ;
		switch ((*etb).kind) {
		case ((NU8) 17):
		case ((NU8) 18):
		{
			{
				NIM_BOOL LOC45;
				Ropeobj161009* LOC49;
				LOC45 = 0;
				LOC45 = isimportedcpptype_460867(etb);
				if (!(LOC45)) goto LA46;
				LOC45 = ((*et).kind == ((NU8) 11));
				LA46: ;
				if (!LOC45) goto LA47;
				LOC49 = 0;
				LOC49 = gettypedescaux_460897(m, et, check);
				result = HEX26_161471(LOC49, star);
			}
			goto LA43;
			LA47: ;
			{
				Ttype190849* x;
				Ropeobj161009* name;
				Tidobj167015* LOC51;
				TNimObject* LOC52;
				x = getuniquetype_454656(etb);
				name = gettypeforward_461452(m, x);
				result = HEX26_161471(name, star);
				LOC51 = 0;
				LOC51 = &t->Sup;
				LOC52 = 0;
				LOC52 = &result->Sup;
				idtableput_198196((&(*m).typecache), LOC51, LOC52);
				pushtype_461359(m, x);
			}
			LA43: ;
		}
		break;
		case ((NU8) 24):
		{
			Ttype190849* x;
			Ropeobj161009* name;
			Ropeobj161009* LOC54;
			Tidobj167015* LOC55;
			TNimObject* LOC56;
			x = getuniquetype_454656(etb);
			name = gettypeforward_461452(m, x);
			LOC54 = 0;
			LOC54 = HEX26_161471(name, ((NimStringDesc*) &TMP3528));
			result = HEX26_161471(LOC54, star);
			LOC55 = 0;
			LOC55 = &t->Sup;
			LOC56 = 0;
			LOC56 = &result->Sup;
			idtableput_198196((&(*m).typecache), LOC55, LOC56);
			pushtype_461359(m, x);
		}
		break;
		default:
		{
			Ropeobj161009* LOC58;
			Tidobj167015* LOC59;
			TNimObject* LOC60;
			LOC58 = 0;
			LOC58 = gettypedescaux_460897(m, et, check);
			result = HEX26_161471(LOC58, star);
			LOC59 = 0;
			LOC59 = &t->Sup;
			LOC60 = 0;
			LOC60 = &result->Sup;
			idtableput_198196((&(*m).typecache), LOC59, LOC60);
		}
		break;
		}
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		Ropeobj161009* LOC62;
		Tidobj167015* LOC63;
		TNimObject* LOC64;
		LOC62 = 0;
		LOC62 = gettypedescaux_460897(m, (*t).sons->data[((NI) 0)], check);
		result = HEX26_161471(LOC62, ((NimStringDesc*) &TMP3528));
		LOC63 = 0;
		LOC63 = &t->Sup;
		LOC64 = 0;
		LOC64 = &result->Sup;
		idtableput_198196((&(*m).typecache), LOC63, LOC64);
	}
	break;
	case ((NU8) 25):
	{
		Tidobj167015* LOC66;
		TNimObject* LOC67;
		Ropeobj161009* rettype;
		Ropeobj161009* desc;
		result = gettypename_460692(t);
		LOC66 = 0;
		LOC66 = &t->Sup;
		LOC67 = 0;
		LOC67 = &result->Sup;
		idtableput_198196((&(*m).typecache), LOC66, LOC67);
		rettype = 0;
		desc = 0;
		genprocparams_461537(m, t, &rettype, &desc, check, NIM_TRUE);
		{
			NIM_BOOL LOC70;
			LOC70 = 0;
			LOC70 = isimportedtype_460837(t);
			if (!!(LOC70)) goto LA71;
			{
				TY462566 LOC77;
				if (!!(((*t).callconv == ((NU8) 8)))) goto LA75;
				memset((void*)LOC77, 0, sizeof(LOC77));
				LOC77[0] = rope_161320(Callingconvtostr_460988[((*t).callconv)- 0]);
				LOC77[1] = rettype;
				LOC77[2] = result;
				LOC77[3] = desc;
				addf_162635(&(*m).s[(((NU8) 3))- 0], ((NimStringDesc*) &TMP3545), LOC77, 4);
			}
			goto LA73;
			LA75: ;
			{
				TY462569 LOC79;
				memset((void*)LOC79, 0, sizeof(LOC79));
				LOC79[0] = result;
				LOC79[1] = rettype;
				LOC79[2] = desc;
				addf_162635(&(*m).s[(((NU8) 3))- 0], ((NimStringDesc*) &TMP3556), LOC79, 3);
			}
			LA73: ;
		}
		LA71: ;
	}
	break;
	case ((NU8) 24):
	{
		Tidobj167015* LOC94;
		Ropeobj161009* LOC95;
		TNimObject* LOC96;
		result = cachegettype_460994((*m).forwtypecache, t);
		{
			Tidobj167015* LOC92;
			TNimObject* LOC93;
			if (!(result == NIM_NIL)) goto LA83;
			result = gettypename_460692(t);
			{
				NIM_BOOL LOC87;
				NimStringDesc* LOC90;
				TY490436 LOC91;
				LOC87 = 0;
				LOC87 = isimportedtype_460837(t);
				if (!!(LOC87)) goto LA88;
				LOC90 = 0;
				LOC90 = getforwardstructformat_461425(m);
				memset((void*)LOC91, 0, sizeof(LOC91));
				LOC91[0] = structorunion_461408(t);
				LOC91[1] = result;
				addf_162635(&(*m).s[(((NU8) 2))- 0], LOC90, LOC91, 2);
			}
			LA88: ;
			LOC92 = 0;
			LOC92 = &t->Sup;
			LOC93 = 0;
			LOC93 = &result->Sup;
			idtableput_198196((&(*m).forwtypecache), LOC92, LOC93);
		}
		LA83: ;
		LOC94 = 0;
		LOC94 = &t->Sup;
		LOC95 = 0;
		LOC95 = HEX26_161471(result, ((NimStringDesc*) &TMP3528));
		LOC96 = 0;
		LOC96 = &LOC95->Sup;
		idtableput_198196((&(*m).typecache), LOC94, LOC96);
		{
			NIM_BOOL LOC99;
			LOC99 = 0;
			LOC99 = isimportedtype_460837(t);
			if (!!(LOC99)) goto LA100;
			{
				Ttype190849* LOC104;
				NimStringDesc* LOC107;
				NimStringDesc* LOC108;
				TY490436 LOC116;
				LOC104 = 0;
				LOC104 = skiptypes_194167((*t).sons->data[((NI) 0)], IL64(211106232576256));
				if (!!(((*LOC104).kind == ((NU8) 3)))) goto LA105;
				LOC107 = 0;
				LOC108 = 0;
				{
					NIM_BOOL LOC111;
					LOC111 = 0;
					LOC111 = (gcmd_154130 == ((NU8) 2));
					if (LOC111) goto LA112;
					LOC111 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
					LA112: ;
					if (!LOC111) goto LA113;
					LOC108 = copyString(((NimStringDesc*) &TMP3557));
				}
				goto LA109;
				LA113: ;
				{
					LOC108 = copyString(((NimStringDesc*) &TMP3558));
				}
				LA109: ;
				LOC107 = rawNewString(LOC108->Sup.len + 31);
appendString(LOC107, LOC108);
appendString(LOC107, ((NimStringDesc*) &TMP3559));
				memset((void*)LOC116, 0, sizeof(LOC116));
				LOC116[0] = gettypedescaux_460897(m, (*t).sons->data[((NI) 0)], check);
				LOC116[1] = result;
				appcg_459880(m, &(*m).s[(((NU8) 4))- 0], LOC107, LOC116, 2);
			}
			goto LA102;
			LA105: ;
			{
				result = rope_161320(((NimStringDesc*) &TMP3560));
			}
			LA102: ;
		}
		LA100: ;
		add_161545(&result, ((NimStringDesc*) &TMP3528));
	}
	break;
	case ((NU8) 4):
	case ((NU8) 16):
	{
		NI64 n;
		Tidobj167015* LOC123;
		TNimObject* LOC124;
		n = lengthord_220016(t);
		{
			if (!(n <= IL64(0))) goto LA121;
			n = IL64(1);
		}
		LA121: ;
		result = gettypename_460692(t);
		LOC123 = 0;
		LOC123 = &t->Sup;
		LOC124 = 0;
		LOC124 = &result->Sup;
		idtableput_198196((&(*m).typecache), LOC123, LOC124);
		{
			NIM_BOOL LOC127;
			Ropeobj161009* foo;
			TY462569 LOC130;
			LOC127 = 0;
			LOC127 = isimportedtype_460837(t);
			if (!!(LOC127)) goto LA128;
			foo = gettypedescaux_460897(m, (*t).sons->data[((NI) 1)], check);
			memset((void*)LOC130, 0, sizeof(LOC130));
			LOC130[0] = foo;
			LOC130[1] = result;
			LOC130[2] = rope_161407(n);
			addf_162635(&(*m).s[(((NU8) 3))- 0], ((NimStringDesc*) &TMP3561), LOC130, 3);
		}
		LA128: ;
	}
	break;
	case ((NU8) 17):
	case ((NU8) 18):
	{
		{
			NIM_BOOL LOC134;
			Ropeobj161009* cppname;
			NI i;
			NI chunkstart;
			Ropeobj161009* LOC176;
			LOC134 = 0;
			LOC134 = isimportedcpptype_460867(t);
			if (!(LOC134)) goto LA135;
			LOC134 = ((*typ).kind == ((NU8) 11));
			LA135: ;
			if (!LOC134) goto LA136;
			cppname = gettypename_460692(t);
			i = ((NI) 0);
			chunkstart = ((NI) 0);
			{
				while (1) {
					if (!(i < ((*cppname).data ? (*cppname).data->Sup.len : 0))) goto LA139;
					{
						NI chunkend;
						NI idx;
						NI stars;
						if (!((NU8)((*cppname).data->data[i]) == (NU8)(39))) goto LA142;
						chunkend = (i - 1);
						idx = 0;
						stars = 0;
						{
							NIM_BOOL LOC146;
							NimStringDesc* LOC149;
							Ttype190849* typeinslot;
							LOC146 = 0;
							LOC146 = scancppgenericslot_462308((*cppname).data, (&i), (&idx), (&stars));
							if (!LOC146) goto LA147;
							LOC149 = 0;
							LOC149 = copyStrLast((*cppname).data, chunkstart, chunkend);
							add_161545(&result, LOC149);
							chunkstart = i;
							typeinslot = resolvestarsincpptype_462381(typ, (NI)(idx + ((NI) 1)), stars);
							{
								NIM_BOOL LOC152;
								TY460664 LOC156;
								Ropeobj161009* LOC157;
								LOC152 = 0;
								LOC152 = (typeinslot == NIM_NIL);
								if (LOC152) goto LA153;
								LOC152 = ((*typeinslot).kind == ((NU8) 3));
								LA153: ;
								if (!LOC152) goto LA154;
								memset((void*)LOC156, 0, sizeof(LOC156));
								LOC157 = 0;
								LOC157 = HEX25_162235(((NimStringDesc*) &TMP3501), LOC156, 0);
								add_161534(&result, LOC157);
							}
							goto LA150;
							LA154: ;
							{
								Ropeobj161009* LOC159;
								LOC159 = 0;
								LOC159 = gettypedescaux_460897(m, typeinslot, check);
								add_161534(&result, LOC159);
							}
							LA150: ;
						}
						LA147: ;
					}
					goto LA140;
					LA142: ;
					{
						i += ((NI) 1);
					}
					LA140: ;
				} LA139: ;
			}
			{
				NimStringDesc* LOC165;
				if (!!((chunkstart == ((NI) 0)))) goto LA163;
				LOC165 = 0;
				LOC165 = copyStr((*cppname).data, chunkstart);
				add_161545(&result, LOC165);
			}
			goto LA161;
			LA163: ;
			{
				result = HEX26_161471(cppname, ((NimStringDesc*) &TMP3563));
				{
					NI i_462917;
					NI HEX3Atmp_463048;
					NI LOC168;
					NI res_463051;
					i_462917 = 0;
					HEX3Atmp_463048 = 0;
					LOC168 = 0;
					LOC168 = len_193377(typ);
					HEX3Atmp_463048 = (NI)(LOC168 - ((NI) 2));
					res_463051 = ((NI) 1);
					{
						while (1) {
							Ropeobj161009* LOC175;
							if (!(res_463051 <= HEX3Atmp_463048)) goto LA170;
							i_462917 = res_463051;
							{
								if (!(((NI) 1) < i_462917)) goto LA173;
								add_161545(&result, ((NimStringDesc*) &TMP3536));
							}
							LA173: ;
							LOC175 = 0;
							LOC175 = gettypedescaux_460897(m, (*typ).sons->data[i_462917], check);
							add_161534(&result, LOC175);
							res_463051 += ((NI) 1);
						} LA170: ;
					}
				}
				add_161545(&result, ((NimStringDesc*) &TMP3564));
			}
			LA161: ;
			LOC176 = 0;
			LOC176 = getrecorddesc_462108(m, t, result, check);
		}
		goto LA132;
		LA136: ;
		{
			Tidobj167015* LOC191;
			TNimObject* LOC192;
			Ropeobj161009* recdesc;
			result = cachegettype_460994((*m).forwtypecache, t);
			{
				Tidobj167015* LOC189;
				TNimObject* LOC190;
				if (!(result == NIM_NIL)) goto LA180;
				result = gettypename_460692(t);
				{
					NIM_BOOL LOC184;
					NimStringDesc* LOC187;
					TY490436 LOC188;
					LOC184 = 0;
					LOC184 = isimportedtype_460837(t);
					if (!!(LOC184)) goto LA185;
					LOC187 = 0;
					LOC187 = getforwardstructformat_461425(m);
					memset((void*)LOC188, 0, sizeof(LOC188));
					LOC188[0] = structorunion_461408(t);
					LOC188[1] = result;
					addf_162635(&(*m).s[(((NU8) 2))- 0], LOC187, LOC188, 2);
				}
				LA185: ;
				LOC189 = 0;
				LOC189 = &t->Sup;
				LOC190 = 0;
				LOC190 = &result->Sup;
				idtableput_198196((&(*m).forwtypecache), LOC189, LOC190);
			}
			LA180: ;
			LOC191 = 0;
			LOC191 = &t->Sup;
			LOC192 = 0;
			LOC192 = &result->Sup;
			idtableput_198196((&(*m).typecache), LOC191, LOC192);
			{
				if (!!(((*t).kind == ((NU8) 18)))) goto LA195;
				recdesc = getrecorddesc_462108(m, t, result, check);
			}
			goto LA193;
			LA195: ;
			{
				recdesc = gettupledesc_462245(m, t, result, check);
			}
			LA193: ;
			{
				NIM_BOOL LOC200;
				LOC200 = 0;
				LOC200 = isimportedtype_460837(t);
				if (!!(LOC200)) goto LA201;
				add_161534(&(*m).s[(((NU8) 3))- 0], recdesc);
			}
			LA201: ;
		}
		LA132: ;
	}
	break;
	case ((NU8) 19):
	{
		NI64 LOC204;
		LOC204 = 0;
		LOC204 = getsize_220190(t);
		switch (((NI) (LOC204))) {
		case ((NI) 1):
		{
			result = rope_161320(((NimStringDesc*) &TMP3506));
		}
		break;
		case ((NI) 2):
		{
			result = rope_161320(((NimStringDesc*) &TMP3507));
		}
		break;
		case ((NI) 4):
		{
			result = rope_161320(((NimStringDesc*) &TMP3524));
		}
		break;
		case ((NI) 8):
		{
			result = rope_161320(((NimStringDesc*) &TMP3525));
		}
		break;
		default:
		{
			Tidobj167015* LOC210;
			TNimObject* LOC211;
			result = gettypename_460692(t);
			LOC210 = 0;
			LOC210 = &t->Sup;
			LOC211 = 0;
			LOC211 = &result->Sup;
			idtableput_198196((&(*m).typecache), LOC210, LOC211);
			{
				NIM_BOOL LOC214;
				TY490436 LOC217;
				NI64 LOC218;
				LOC214 = 0;
				LOC214 = isimportedtype_460837(t);
				if (!!(LOC214)) goto LA215;
				memset((void*)LOC217, 0, sizeof(LOC217));
				LOC217[0] = result;
				LOC218 = 0;
				LOC218 = getsize_220190(t);
				LOC217[1] = rope_161407(LOC218);
				addf_162635(&(*m).s[(((NU8) 3))- 0], ((NimStringDesc*) &TMP3584), LOC217, 2);
			}
			LA215: ;
		}
		break;
		}
	}
	break;
	case ((NU8) 11):
	case ((NU8) 13):
	case ((NU8) 15):
	case ((NU8) 46):
	case ((NU8) 47):
	case ((NU8) 49):
	case ((NU8) 8):
	{
		Ttype190849* LOC220;
		LOC220 = 0;
		LOC220 = lastson_193442(t);
		result = gettypedescaux_460897(m, LOC220, check);
	}
	break;
	default:
	{
		NimStringDesc* LOC222;
		LOC222 = 0;
		LOC222 = rawNewString(reprEnum((*t).kind, (&NTI190260))->Sup.len + 16);
appendString(LOC222, ((NimStringDesc*) &TMP3585));
appendString(LOC222, reprEnum((*t).kind, (&NTI190260)));
appendChar(LOC222, 41);
		internalerror_165218(LOC222);
		result = NIM_NIL;
	}
	break;
	}
	excl_187871(check, (*t).Sup.id);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, gettypedesc_463073)(Tcgen456038* m, Ttype190849* typ) {
	Ropeobj161009* result;
	Intset187056 check;
	result = 0;
	memset((void*)(&check), 0, sizeof(check));
	chckNil((void*)(&check));
	memset((void*)(&check), 0, sizeof(check));
	initintset_187927((&check));
	result = gettypedescaux_460897(m, typ, (&check));
	return result;
}

N_NIMCALL(Ropeobj161009*, mangledynlibproc_466426)(Tsym190843* sym) {
	Ropeobj161009* result;
	result = 0;
	{
		if (!(((*sym).flags &(1<<((((NU8) 16))&31)))!=0)) goto LA3;
		result = rope_161320((*(*sym).name).s);
	}
	goto LA1;
	LA3: ;
	{
		TY161572 LOC6;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = rope_161407(((NI64) ((*sym).Sup.id)));
		result = HEX25_162235(((NimStringDesc*) &TMP3586), LOC6, 1);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, genclinedir_460060)(Ropeobj161009** r, NimStringDesc* filename, NI line) {
	{
		TY490436 LOC5;
		NimStringDesc* LOC6;
		if (!((goptions_154126 &(1<<((((NU8) 10))&31)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC6 = 0;
		LOC6 = makesinglelinecstring_454870(filename);
		LOC5[0] = rope_161320(LOC6);
		LOC5[1] = rope_161407(((NI64) (line)));
		addf_162635(r, ((NimStringDesc*) &TMP3587), LOC5, 2);
	}
	LA3: ;
}

static N_INLINE(NI, tolinenumber_164439)(Tlineinfo163338 info) {
	NI result;
	result = 0;
	result = ((NI) (info.line));
	return result;
}

N_NIMCALL(NI, safelinenm_460050)(Tlineinfo163338 info) {
	NI result;
	result = 0;
	result = tolinenumber_164439(info);
	{
		if (!(result < ((NI) 0))) goto LA3;
		result = ((NI) 0);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, genclinedir_460219)(Ropeobj161009** r, Tlineinfo163338 info) {
	NimStringDesc* LOC1;
	NI LOC2;
	LOC1 = 0;
	LOC1 = tofullpath_164276(info.fileindex);
	LOC2 = 0;
	LOC2 = safelinenm_460050(info);
	genclinedir_460060(r, LOC1, LOC2);
}

N_NIMCALL(Ropeobj161009*, genprocheader_463301)(Tcgen456038* m, Tsym190843* prc) {
	Ropeobj161009* result;
	Ropeobj161009* rettype;
	Ropeobj161009* params;
	Intset187056 check;
	Ropeobj161009* LOC13;
	result = 0;
	rettype = 0;
	params = 0;
	genclinedir_460219(&result, (*prc).info);
	{
		if (!(((*prc).loc.flags &(1<<((((NU8) 5))&15)))!=0)) goto LA3;
		{
			if (!(*m).isheaderfile) goto LA7;
			add_161545(&result, ((NimStringDesc*) &TMP3589));
		}
		goto LA5;
		LA7: ;
		{
			add_161545(&result, ((NimStringDesc*) &TMP3590));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		if (!((*(*prc).typ).callconv == ((NU8) 5))) goto LA11;
		add_161545(&result, ((NimStringDesc*) &TMP3591));
	}
	goto LA1;
	LA11: ;
	LA1: ;
	memset((void*)(&check), 0, sizeof(check));
	chckNil((void*)(&check));
	memset((void*)(&check), 0, sizeof(check));
	initintset_187927((&check));
	LOC13 = 0;
	LOC13 = manglename_460425(prc);
	fillloc_459315((&(*prc).loc), ((NU8) 7), (*prc).typ, LOC13, ((NU8) 0));
	genprocparams_461537(m, (*prc).typ, &rettype, &params, (&check), NIM_TRUE);
	{
		TY462566 LOC18;
		if (!(*prc).constraint == 0) goto LA16;
		memset((void*)LOC18, 0, sizeof(LOC18));
		LOC18[0] = rope_161320(Callingconvtostr_460988[((*(*prc).typ).callconv)- 0]);
		LOC18[1] = rettype;
		LOC18[2] = (*prc).loc.r;
		LOC18[3] = params;
		addf_162635(&result, ((NimStringDesc*) &TMP3592), LOC18, 4);
	}
	goto LA14;
	LA16: ;
	{
		TY462569 LOC20;
		memset((void*)LOC20, 0, sizeof(LOC20));
		LOC20[0] = rettype;
		LOC20[1] = (*prc).loc.r;
		LOC20[2] = params;
		result = HEX25_162235((*(*prc).constraint).kindU.S3.strval, LOC20, 3);
	}
	LA14: ;
	return result;
}

static N_INLINE(NIM_BOOL, crossescppboundary_490362)(Tcgen456038* m, Tsym190843* sym) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	Tsym190843* LOC4;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
	if (!(LOC2)) goto LA3;
	LOC4 = 0;
	LOC4 = getmodule_198243(sym);
	LOC2 = !((((*LOC4).flags &(1<<((((NU8) 27))&31)))!=0));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA5;
	LOC1 = !((gcmd_154130 == ((NU8) 2)));
	LA5: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, genprocprototype_466890)(Tcgen456038* m, Tsym190843* sym) {
{	useheader_459400(m, sym);
	{
		if (!(((*sym).loc.flags &(1<<((((NU8) 3))&15)))!=0)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!(((*sym).loc.flags &(1<<((((NU8) 4))&15)))!=0)) goto LA7;
		{
			NIM_BOOL LOC11;
			Tsym190843* LOC12;
			NIM_BOOL LOC14;
			TY490436 LOC17;
			Ropeobj161009* LOC18;
			LOC11 = 0;
			LOC12 = 0;
			LOC12 = getmodule_198243(sym);
			LOC11 = !(((*LOC12).Sup.id == (*(*m).module).Sup.id));
			if (!(LOC11)) goto LA13;
			LOC14 = 0;
			LOC14 = containsorincl_187898((&(*m).declaredthings), (*sym).Sup.id);
			LOC11 = !(LOC14);
			LA13: ;
			if (!LOC11) goto LA15;
			memset((void*)LOC17, 0, sizeof(LOC17));
			LOC17[0] = gettypedesc_463073(m, (*sym).loc.t);
			LOC17[1] = mangledynlibproc_466426(sym);
			LOC18 = 0;
			LOC18 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3498), LOC17, 2);
			add_161534(&(*m).s[(((NU8) 9))- 0], LOC18);
		}
		LA15: ;
	}
	goto LA5;
	LA7: ;
	{
		NIM_BOOL LOC20;
		Ropeobj161009* header;
		TY161572 LOC35;
		Ropeobj161009* LOC36;
		LOC20 = 0;
		LOC20 = containsorincl_187898((&(*m).declaredprotos), (*sym).Sup.id);
		if (!!(LOC20)) goto LA21;
		header = genprocheader_463301(m, sym);
		{
			NIM_BOOL LOC25;
			LOC25 = 0;
			LOC25 = !(((*(*sym).typ).callconv == ((NU8) 5)));
			if (!(LOC25)) goto LA26;
			LOC25 = crossescppboundary_490362(m, sym);
			LA26: ;
			if (!LOC25) goto LA27;
			header = HEX26_161482(((NimStringDesc*) &TMP3593), header);
		}
		LA27: ;
		{
			NIM_BOOL LOC31;
			LOC31 = 0;
			LOC31 = (((*sym).flags &(1<<((((NU8) 9))&31)))!=0);
			if (!(LOC31)) goto LA32;
			LOC31 = ((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 7))&7)))!=0);
			LA32: ;
			if (!LOC31) goto LA33;
			add_161545(&header, ((NimStringDesc*) &TMP3594));
		}
		LA33: ;
		memset((void*)LOC35, 0, sizeof(LOC35));
		LOC35[0] = header;
		LOC36 = 0;
		LOC36 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3595), LOC35, 1);
		add_161534(&(*m).s[(((NU8) 7))- 0], LOC36);
	}
	goto LA5;
	LA21: ;
	LA5: ;
	}BeforeRet: ;
}

static N_INLINE(NI, len_191097)(Tnode190813* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.sons == 0) goto LA3;
		result = ((NI) 0);
	}
	goto LA1;
	LA3: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, localvardecl_466119)(Tcproc456034* p, Tsym190843* s) {
	Ropeobj161009* result;
	result = 0;
	{
		Ropeobj161009* LOC5;
		if (!((*s).loc.k == ((NU8) 0))) goto LA3;
		LOC5 = 0;
		LOC5 = manglename_460425(s);
		fillloc_459315((&(*s).loc), ((NU8) 2), (*s).typ, LOC5, ((NU8) 1));
		{
			if (!((*s).kind == ((NU8) 9))) goto LA8;
			(*s).loc.flags |= ((NI16)1)<<((((NU8) 2))%(sizeof(NI16)*8));
		}
		LA8: ;
	}
	LA3: ;
	result = gettypedesc_463073((*p).module, (*s).loc.t);
	{
		if (!(*s).constraint == 0) goto LA12;
		{
			if (!(((*s).flags &(1<<((((NU8) 8))&31)))!=0)) goto LA16;
			add_161545(&result, ((NimStringDesc*) &TMP3597));
		}
		LA16: ;
		{
			if (!(((*s).flags &(1<<((((NU8) 7))&31)))!=0)) goto LA20;
			add_161545(&result, ((NimStringDesc*) &TMP3598));
		}
		LA20: ;
		add_161545(&result, ((NimStringDesc*) &TMP3537));
		add_161534(&result, (*s).loc.r);
	}
	goto LA10;
	LA12: ;
	{
		TY490436 LOC23;
		memset((void*)LOC23, 0, sizeof(LOC23));
		LOC23[0] = result;
		LOC23[1] = (*s).loc.r;
		result = HEX25_162235((*(*s).constraint).kindU.S3.strval, LOC23, 2);
	}
	LA10: ;
	return result;
}

static N_INLINE(Ropeobj161009**, s_456184)(Tcproc456034* p, NU8 s) {
	Ropeobj161009** result;
	result = 0;
	result = &(*p).blocks->data[(NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1))].sections[(s)- 0];
	return result;
}

N_NIMCALL(Ropeobj161009*, indentline_459925)(Tcproc456034* p, Ropeobj161009* r) {
	Ropeobj161009* result;
	result = 0;
	result = r;
	{
		NI i_459950;
		NI HEX3Atmp_459953;
		NI res_459956;
		i_459950 = 0;
		HEX3Atmp_459953 = 0;
		HEX3Atmp_459953 = (NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1));
		res_459956 = ((NI) 0);
		{
			while (1) {
				if (!(res_459956 <= HEX3Atmp_459953)) goto LA3;
				i_459950 = res_459956;
				prepend_162205(&result, indent_459921);
				res_459956 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}

N_NIMCALL(void, line_459975)(Tcproc456034* p, NU8 s, Ropeobj161009* r) {
	Ropeobj161009** LOC1;
	Ropeobj161009* LOC2;
	LOC1 = 0;
	LOC1 = s_456184(p, s);
	LOC2 = 0;
	LOC2 = indentline_459925(p, r);
	add_161534(LOC1, LOC2);
}

N_NIMCALL(void, linef_459997)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009** LOC1;
	Ropeobj161009* LOC2;
	Ropeobj161009* LOC3;
	LOC1 = 0;
	LOC1 = s_456184(p, s);
	LOC2 = 0;
	LOC2 = HEX25_162235(frmt, args, argsLen0);
	LOC3 = 0;
	LOC3 = indentline_459925(p, LOC2);
	add_161534(LOC1, LOC3);
}

N_NIMCALL(void, gentypeinfoauxbase_463390)(Tcgen456038* m, Ttype190849* typ, Ttype190849* origtype, Ropeobj161009* name, Ropeobj161009* base) {
	NI nimtypekind;
	Ropeobj161009* size;
	TY462566 LOC17;
	NI flags;
	Ropeobj161009* LOC33;
	TY490436 LOC34;
	NimStringDesc* LOC35;
	nimtypekind = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isobjlackingtypefield_460910(typ);
		if (!LOC3) goto LA4;
		nimtypekind = ((NI) 18);
	}
	goto LA1;
	LA4: ;
	{
		nimtypekind = ((NI) ((*typ).kind));
	}
	LA1: ;
	size = 0;
	{
		if (!(((*typ).flags &(1<<((((NU8) 0))&31)))!=0)) goto LA9;
		size = rope_161320(((NimStringDesc*) &TMP3607));
	}
	goto LA7;
	LA9: ;
	{
		NIM_BOOL LOC12;
		LOC12 = 0;
		LOC12 = (gcmd_154130 == ((NU8) 2));
		if (LOC12) goto LA13;
		LOC12 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA13: ;
		if (!LOC12) goto LA14;
		size = gettypedesc_463073(m, origtype);
	}
	goto LA7;
	LA14: ;
	{
		size = gettypedesc_463073(m, typ);
	}
	LA7: ;
	memset((void*)LOC17, 0, sizeof(LOC17));
	LOC17[0] = name;
	LOC17[1] = size;
	LOC17[2] = rope_161407(((NI64) (nimtypekind)));
	LOC17[3] = base;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3608), LOC17, 4);
	flags = ((NI) 0);
	{
		NIM_BOOL LOC20;
		LOC20 = 0;
		LOC20 = containsgarbagecollectedref_220154(typ);
		if (!!(LOC20)) goto LA21;
		flags = (NI)(flags | ((NI) 1));
	}
	LA21: ;
	{
		NIM_BOOL LOC25;
		LOC25 = 0;
		LOC25 = canformacycle_220166(typ);
		if (!!(LOC25)) goto LA26;
		flags = (NI)(flags | ((NI) 2));
	}
	LA26: ;
	{
		TY490436 LOC32;
		if (!!((flags == ((NI) 0)))) goto LA30;
		memset((void*)LOC32, 0, sizeof(LOC32));
		LOC32[0] = name;
		LOC32[1] = rope_161407(((NI64) (flags)));
		addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3609), LOC32, 2);
	}
	LA30: ;
	LOC33 = 0;
	LOC33 = cgsym_459609(m, ((NimStringDesc*) &TMP3603));
	memset((void*)LOC34, 0, sizeof(LOC34));
	LOC34[0] = name;
	LOC35 = 0;
	LOC35 = typetostring_220032(typ, ((NU8) 0));
	LOC34[1] = rope_161320(LOC35);
	addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3610), LOC34, 2);
}

N_NIMCALL(Ropeobj161009*, getnimnode_463372)(Tcgen456038* m) {
	Ropeobj161009* result;
	TY490436 LOC1;
	result = 0;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = (*m).typenodesname;
	LOC1[1] = rope_161407(((NI64) ((*m).typenodes)));
	result = HEX25_162235(((NimStringDesc*) &TMP3611), LOC1, 2);
	(*m).typenodes += ((NI) 1);
	return result;
}

N_NIMCALL(void, gentupleinfo_463995)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name) {
	Ropeobj161009* LOC1;
	Ropeobj161009* expr;
	NI length;
	TY490436 LOC15;
	LOC1 = 0;
	LOC1 = rope_161320(((NimStringDesc*) &TMP3515));
	gentypeinfoauxbase_463390(m, typ, typ, name, LOC1);
	expr = getnimnode_463372(m);
	length = sonslen_193351(typ);
	{
		Ropeobj161009* tmp;
		TY490436 LOC6;
		TY462569 LOC12;
		if (!(((NI) 0) < length)) goto LA4;
		tmp = gettempname_461002();
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = tmp;
		LOC6[1] = rope_161407(((NI64) (length)));
		addf_162635(&(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP3612), LOC6, 2);
		{
			NI i_464018;
			NI HEX3Atmp_464037;
			NI res_464040;
			i_464018 = 0;
			HEX3Atmp_464037 = 0;
			HEX3Atmp_464037 = (NI)(length - ((NI) 1));
			res_464040 = ((NI) 0);
			{
				while (1) {
					Ttype190849* a;
					Ropeobj161009* tmp2;
					TY462569 LOC10;
					TY462566 LOC11;
					if (!(res_464040 <= HEX3Atmp_464037)) goto LA9;
					i_464018 = res_464040;
					a = (*typ).sons->data[i_464018];
					tmp2 = getnimnode_463372(m);
					memset((void*)LOC10, 0, sizeof(LOC10));
					LOC10[0] = tmp;
					LOC10[1] = rope_161407(((NI64) (i_464018)));
					LOC10[2] = tmp2;
					addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3613), LOC10, 3);
					memset((void*)LOC11, 0, sizeof(LOC11));
					LOC11[0] = tmp2;
					LOC11[1] = gettypedesc_463073(m, typ);
					LOC11[2] = rope_161407(((NI64) (i_464018)));
					LOC11[3] = gentypeinfo_463368(m, a);
					addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3614), LOC11, 4);
					res_464040 += ((NI) 1);
				} LA9: ;
			}
		}
		memset((void*)LOC12, 0, sizeof(LOC12));
		LOC12[0] = expr;
		LOC12[1] = rope_161407(((NI64) (length)));
		LOC12[2] = tmp;
		addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3615), LOC12, 3);
	}
	goto LA2;
	LA4: ;
	{
		TY490436 LOC14;
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = expr;
		LOC14[1] = rope_161407(((NI64) (length)));
		addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3616), LOC14, 2);
	}
	LA2: ;
	memset((void*)LOC15, 0, sizeof(LOC15));
	LOC15[0] = name;
	LOC15[1] = expr;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3617), LOC15, 2);
}

N_NIMCALL(Ttype190849*, fakeclosuretype_464416)(Tsym190843* owner) {
	Ttype190849* result;
	Ttype190849* LOC1;
	Ttype190849* r;
	Ttype190849* LOC2;
	result = 0;
	result = newtype_193140(((NU8) 18), owner);
	LOC1 = 0;
	LOC1 = newtype_193140(((NU8) 26), owner);
	rawaddson_194478(result, LOC1);
	r = newtype_193140(((NU8) 22), owner);
	LOC2 = 0;
	LOC2 = newtype_193140(((NU8) 18), owner);
	rawaddson_194478(r, LOC2);
	rawaddson_194478(result, r);
	return result;
}

N_NIMCALL(void, gentypeinfoaux_463460)(Tcgen456038* m, Ttype190849* typ, Ttype190849* origtype, Ropeobj161009* name) {
	Ropeobj161009* base;
	base = 0;
	{
		NIM_BOOL LOC3;
		NI LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = sonslen_193351(typ);
		LOC3 = (((NI) 0) < LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = !(((*typ).sons->data[((NI) 0)] == NIM_NIL));
		LA5: ;
		if (!LOC3) goto LA6;
		base = gentypeinfo_463368(m, (*typ).sons->data[((NI) 0)]);
	}
	goto LA1;
	LA6: ;
	{
		base = rope_161320(((NimStringDesc*) &TMP3515));
	}
	LA1: ;
	gentypeinfoauxbase_463390(m, typ, origtype, name, base);
}

static N_INLINE(NI, backendid_189422)(void) {
	NI result;
	result = 0;
	result = gbackendid_189013;
	gbackendid_189013 += ((NI) 1);
	return result;
}

N_NIMCALL(Ropeobj161009*, getglobaltempname_461010)(void) {
	Ropeobj161009* result;
	TY161572 LOC1;
	NI LOC2;
	result = 0;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = backendid_189422();
	LOC1[0] = rope_161407(((NI64) (LOC2)));
	result = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3618), LOC1, 1);
	return result;
}

N_NIMCALL(void, linefmt_460023)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009** LOC1;
	Ropeobj161009* LOC2;
	Ropeobj161009* LOC3;
	LOC1 = 0;
	LOC1 = s_456184(p, s);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, args, argsLen0);
	LOC3 = 0;
	LOC3 = indentline_459925(p, LOC2);
	add_161534(LOC1, LOC3);
}

static N_INLINE(NIM_BOOL, iscomplexvaluetype_465759)(Ttype190849* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*t).kind == ((NU8) 16) || (*t).kind == ((NU8) 4) || (*t).kind == ((NU8) 19) || (*t).kind == ((NU8) 18) || (*t).kind == ((NU8) 17));
	if (LOC1) goto LA2;
	LOC3 = 0;
	LOC3 = ((*t).kind == ((NU8) 25));
	if (!(LOC3)) goto LA4;
	LOC3 = ((*t).callconv == ((NU8) 8));
	LA4: ;
	LOC1 = LOC3;
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Ropeobj161009*, rdloc_465593)(Tloc190827 a) {
	Ropeobj161009* result;
	result = 0;
	result = a.r;
	{
		TY161572 LOC5;
		if (!((a.flags &(1<<((((NU8) 0))&15)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = result;
		result = HEX25_162235(((NimStringDesc*) &TMP3625), LOC5, 1);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, usestringh_459390)(Tcgen456038* m) {
	{
		NIM_BOOL LOC5;
		if (!!((*m).includesstringh)) goto LA3;
		(*m).includesstringh = NIM_TRUE;
		LOC5 = 0;
		LOC5 = includestr_130279((&(*m).headerfiles), ((NimStringDesc*) &TMP3626));
	}
	LA3: ;
}

N_NIMCALL(Ropeobj161009*, addrloc_465615)(Tloc190827 a) {
	Ropeobj161009* result;
	result = 0;
	result = a.r;
	{
		NIM_BOOL LOC3;
		NU8 LOC5;
		Ropeobj161009* LOC8;
		LOC3 = 0;
		LOC3 = !(((a.flags &(1<<((((NU8) 0))&15)))!=0));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = maptype_460778(a.t);
		LOC3 = !((LOC5 == ((NU8) 17)));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = HEX26_161482(((NimStringDesc*) &TMP3602), result);
		result = HEX26_161471(LOC8, ((NimStringDesc*) &TMP3543));
	}
	LA6: ;
	return result;
}

N_NIMCALL(void, genobjectinit_465665)(Tcproc456034* p, NU8 section, Ttype190849* t, Tloc190827 a, NIM_BOOL takeaddr) {
	NU8 LOC1;
	LOC1 = 0;
	LOC1 = analyseobjectwithtypefield_220216(t);
	switch (LOC1) {
	case ((NU8) 0):
	{
	}
	break;
	case ((NU8) 1):
	{
		Ropeobj161009* r;
		Ttype190849* s;
		TY490436 LOC19;
		r = rdloc_465593(a);
		{
			TY161572 LOC8;
			if (!!(takeaddr)) goto LA6;
			memset((void*)LOC8, 0, sizeof(LOC8));
			LOC8[0] = r;
			r = HEX25_162235(((NimStringDesc*) &TMP3625), LOC8, 1);
		}
		LA6: ;
		s = skiptypes_194167(t, IL64(211106232576256));
		{
			NIM_BOOL LOC11;
			LOC11 = 0;
			LOC11 = (gcmd_154130 == ((NU8) 2));
			if (LOC11) goto LA12;
			LOC11 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA12: ;
			if (!!(LOC11)) goto LA13;
			{
				while (1) {
					NIM_BOOL LOC17;
					LOC17 = 0;
					LOC17 = ((*s).kind == ((NU8) 17));
					if (!(LOC17)) goto LA18;
					LOC17 = !(((*s).sons->data[((NI) 0)] == NIM_NIL));
					LA18: ;
					if (!LOC17) goto LA16;
					add_161545(&r, ((NimStringDesc*) &TMP3628));
					s = skiptypes_194167((*s).sons->data[((NI) 0)], IL64(211106232576256));
				} LA16: ;
			}
		}
		LA13: ;
		memset((void*)LOC19, 0, sizeof(LOC19));
		LOC19[0] = r;
		LOC19[1] = gentypeinfo_463368((*p).module, t);
		linefmt_460023(p, section, ((NimStringDesc*) &TMP3629), LOC19, 2);
	}
	break;
	case ((NU8) 2):
	{
		Ropeobj161009* r;
		TY490436 LOC26;
		{
			if (!takeaddr) goto LA23;
			r = addrloc_465615(a);
		}
		goto LA21;
		LA23: ;
		{
			r = rdloc_465593(a);
		}
		LA21: ;
		memset((void*)LOC26, 0, sizeof(LOC26));
		LOC26[0] = r;
		LOC26[1] = gentypeinfo_463368((*p).module, t);
		linefmt_460023(p, section, ((NimStringDesc*) &TMP3630), LOC26, 2);
	}
	break;
	}
}

N_NIMCALL(void, constructloc_465842)(Tcproc456034* p, Tloc190827 loc, NIM_BOOL istemp) {
	Ttype190849* typ;
	typ = skiptypes_194167(loc.t, IL64(211106233624832));
	{
		NIM_BOOL LOC3;
		TY161572 LOC6;
		LOC3 = 0;
		LOC3 = iscomplexvaluetype_465759(typ);
		if (!!(LOC3)) goto LA4;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = rdloc_465593(loc);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3624), LOC6, 1);
	}
	goto LA1;
	LA4: ;
	{
		{
			NIM_BOOL LOC10;
			LOC10 = 0;
			LOC10 = !(istemp);
			if (LOC10) goto LA11;
			LOC10 = containsgarbagecollectedref_220154(loc.t);
			LA11: ;
			if (!LOC10) goto LA12;
			{
				NIM_BOOL LOC16;
				TY490436 LOC19;
				LOC16 = 0;
				LOC16 = isimportedcpptype_460867(typ);
				if (!!(LOC16)) goto LA17;
				usestringh_459390((*p).module);
				memset((void*)LOC19, 0, sizeof(LOC19));
				LOC19[0] = addrloc_465615(loc);
				LOC19[1] = rdloc_465593(loc);
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3627), LOC19, 2);
			}
			LA17: ;
		}
		LA12: ;
		genobjectinit_465665(p, ((NU8) 2), loc.t, loc, NIM_TRUE);
	}
	LA1: ;
}

N_NIMCALL(void, gettemp_464444)(Tcproc456034* p, Ttype190849* t, Tloc190827* result, NIM_BOOL needsinit) {
	Ropeobj161009* LOC1;
	TY490436 LOC2;
	(*p).labels += ((NI) 1);
	LOC1 = 0;
	LOC1 = rope_161407(((NI64) ((*p).labels)));
	unsureAsgnRef((void**) (&(*result).r), HEX26_161482(((NimStringDesc*) &TMP3623), LOC1));
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = gettypedesc_463073((*p).module, t);
	LOC2[1] = (*result).r;
	linefmt_460023(p, ((NU8) 0), ((NimStringDesc*) &TMP3529), LOC2, 2);
	(*result).k = ((NU8) 1);
	unsureAsgnRef((void**) (&(*result).t), getuniquetype_454656(t));
	(*result).s = ((NU8) 1);
	(*result).flags = 0;
	constructloc_465842(p, (*result), !(needsinit));
}

static N_INLINE(Ropeobj161009*, parentobj_464678)(Ropeobj161009* accessor, Tcgen456038* m) {
	Ropeobj161009* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		TY161572 LOC7;
		LOC3 = 0;
		LOC3 = (gcmd_154130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA4: ;
		if (!!(LOC3)) goto LA5;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = accessor;
		result = HEX25_162235(((NimStringDesc*) &TMP3636), LOC7, 1);
	}
	goto LA1;
	LA5: ;
	{
		result = accessor;
	}
	LA1: ;
	return result;
}

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

N_NIMCALL(Ropeobj161009*, intliteral_466915)(NI64 i) {
	Ropeobj161009* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (IL64(-2147483648) < i);
		if (!(LOC3)) goto LA4;
		LOC3 = (i <= IL64(2147483647));
		LA4: ;
		if (!LOC3) goto LA5;
		result = rope_161407(i);
	}
	goto LA1;
	LA5: ;
	{
		TY460664 LOC10;
		if (!(i == IL64(-2147483648))) goto LA8;
		memset((void*)LOC10, 0, sizeof(LOC10));
		result = HEX25_162235(((NimStringDesc*) &TMP3641), LOC10, 0);
	}
	goto LA1;
	LA8: ;
	{
		TY161572 LOC14;
		if (!((IL64(-9223372036854775807) - IL64(1)) < i)) goto LA12;
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = rope_161407(i);
		result = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3642), LOC14, 1);
	}
	goto LA1;
	LA12: ;
	{
		TY460664 LOC16;
		memset((void*)LOC16, 0, sizeof(LOC16));
		result = HEX25_162235(((NimStringDesc*) &TMP3643), LOC16, 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, int64literal_478236)(NI64 i) {
	Ropeobj161009* result;
	result = 0;
	{
		TY161572 LOC5;
		if (!((IL64(-9223372036854775807) - IL64(1)) < i)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rope_161407(i);
		result = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3642), LOC5, 1);
	}
	goto LA1;
	LA3: ;
	{
		TY460664 LOC7;
		memset((void*)LOC7, 0, sizeof(LOC7));
		result = HEX25_162235(((NimStringDesc*) &TMP3643), LOC7, 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, uint64literal_478251)(NU64 i) {
	Ropeobj161009* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = HEX24_6401(i);
	LOC1 = rawNewString(LOC2->Sup.len + 3);
appendString(LOC1, LOC2);
appendString(LOC1, ((NimStringDesc*) &TMP3646));
	result = rope_161320(LOC1);
	return result;
}

N_NIMCALL(Ropeobj161009*, getstrlit_478316)(Tcgen456038* m, NimStringDesc* s) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	NI LOC2;
	Ropeobj161009* LOC3;
	TY462569 LOC4;
	result = 0;
	LOC1 = 0;
	LOC1 = cgsym_459609(m, ((NimStringDesc*) &TMP3560));
	LOC2 = 0;
	LOC2 = backendid_189422();
	LOC3 = 0;
	LOC3 = rope_161407(((NI64) (LOC2)));
	result = HEX26_161482(((NimStringDesc*) &TMP3648), LOC3);
	memset((void*)LOC4, 0, sizeof(LOC4));
	LOC4[0] = result;
	LOC4[1] = makecstring_163449(s);
	LOC4[2] = rope_161407(((NI64) ((s ? s->Sup.len : 0))));
	addf_162635(&(*m).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3653), LOC4, 3);
	return result;
}

N_NIMCALL(Ropeobj161009*, genliteral_478327)(Tcproc456034* p, Tnode190813* n, Ttype190849* ty) {
	Ropeobj161009* result;
	result = 0;
	{
		if (!(ty == NIM_NIL)) goto LA3;
		internalerror_165199((*n).info, ((NimStringDesc*) &TMP3640));
	}
	LA3: ;
	switch ((*n).kind) {
	case ((NU8) 5) ... ((NU8) 15):
	{
		Ttype190849* LOC6;
		LOC6 = 0;
		LOC6 = skiptypes_194167(ty, IL64(211106242013440));
		switch ((*LOC6).kind) {
		case ((NU8) 2):
		case ((NU8) 5):
		{
			result = intliteral_466915((*n).kindU.S1.intval);
		}
		break;
		case ((NU8) 1):
		{
			{
				TY460664 LOC13;
				if (!!(((*n).kindU.S1.intval == IL64(0)))) goto LA11;
				memset((void*)LOC13, 0, sizeof(LOC13));
				result = HEX25_162235(((NimStringDesc*) &TMP3644), LOC13, 0);
			}
			goto LA9;
			LA11: ;
			{
				TY460664 LOC15;
				memset((void*)LOC15, 0, sizeof(LOC15));
				result = HEX25_162235(((NimStringDesc*) &TMP3645), LOC15, 0);
			}
			LA9: ;
		}
		break;
		case ((NU8) 35):
		{
			result = int64literal_478236((*n).kindU.S1.intval);
		}
		break;
		case ((NU8) 44):
		{
			result = uint64literal_478251(((NU64) ((*n).kindU.S1.intval)));
		}
		break;
		default:
		{
			TY490436 LOC19;
			Ttype190849* LOC20;
			memset((void*)LOC19, 0, sizeof(LOC19));
			LOC20 = 0;
			LOC20 = skiptypes_194167(ty, IL64(211106242013440));
			LOC19[0] = gettypedesc_463073((*p).module, LOC20);
			LOC19[1] = intliteral_466915((*n).kindU.S1.intval);
			result = HEX25_162235(((NimStringDesc*) &TMP3647), LOC19, 2);
		}
		break;
		}
	}
	break;
	case ((NU8) 23):
	{
		Ttype190849* t;
		t = skiptypes_194167(ty, IL64(211106242013440));
		{
			NIM_BOOL LOC24;
			NI id;
			Ropeobj161009* LOC28;
			LOC24 = 0;
			LOC24 = ((*t).kind == ((NU8) 25));
			if (!(LOC24)) goto LA25;
			LOC24 = ((*t).callconv == ((NU8) 8));
			LA25: ;
			if (!LOC24) goto LA26;
			id = nodetabletestorset_242698((&(*(*p).module).datacache), n, gbackendid_189013);
			LOC28 = 0;
			LOC28 = rope_161407(((NI64) (id)));
			result = HEX26_161482(((NimStringDesc*) &TMP3648), LOC28);
			{
				TY490436 LOC33;
				if (!(id == gbackendid_189013)) goto LA31;
				gbackendid_189013 += ((NI) 1);
				memset((void*)LOC33, 0, sizeof(LOC33));
				LOC33[0] = gettypedesc_463073((*p).module, t);
				LOC33[1] = result;
				addf_162635(&(*(*p).module).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3649), LOC33, 2);
			}
			LA31: ;
		}
		goto LA22;
		LA26: ;
		{
			result = rope_161320(((NimStringDesc*) &TMP3650));
		}
		LA22: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		{
			TY460664 LOC40;
			if (!(*n).kindU.S3.strval == 0) goto LA38;
			memset((void*)LOC40, 0, sizeof(LOC40));
			result = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3651), LOC40, 0);
		}
		goto LA36;
		LA38: ;
		{
			Ttype190849* LOC42;
			NI id;
			LOC42 = 0;
			LOC42 = skiptypes_194167(ty, IL64(211106242013440));
			if (!((*LOC42).kind == ((NU8) 28))) goto LA43;
			id = nodetabletestorset_242698((&(*(*p).module).datacache), n, gbackendid_189013);
			{
				TY161572 LOC49;
				if (!(id == gbackendid_189013)) goto LA47;
				memset((void*)LOC49, 0, sizeof(LOC49));
				LOC49[0] = getstrlit_478316((*p).module, (*n).kindU.S3.strval);
				result = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3652), LOC49, 1);
			}
			goto LA45;
			LA47: ;
			{
				TY161572 LOC51;
				memset((void*)LOC51, 0, sizeof(LOC51));
				LOC51[0] = rope_161407(((NI64) (id)));
				result = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3654), LOC51, 1);
			}
			LA45: ;
		}
		goto LA36;
		LA43: ;
		{
			result = makecstring_163449((*n).kindU.S3.strval);
		}
		LA36: ;
	}
	break;
	case ((NU8) 16) ... ((NU8) 18):
	{
		NimStringDesc* LOC54;
		LOC54 = 0;
		LOC54 = tostrmaxprecision_197024((*n).kindU.S2.floatval);
		result = rope_161320(LOC54);
	}
	break;
	default:
	{
		NimStringDesc* LOC56;
		LOC56 = 0;
		LOC56 = rawNewString(reprEnum((*n).kind, (&NTI190029))->Sup.len + 12);
appendString(LOC56, ((NimStringDesc*) &TMP3659));
appendString(LOC56, reprEnum((*n).kind, (&NTI190029)));
appendChar(LOC56, 41);
		internalerror_165199((*n).info, LOC56);
		result = NIM_NIL;
	}
	break;
	}
	return result;
}

N_NIMCALL(Ropeobj161009*, genliteral_466921)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	result = 0;
	result = genliteral_478327(p, n, (*n).typ);
	return result;
}

N_NIMCALL(void, gencaserange_464440)(Tcproc456034* p, Tnode190813* branch) {
	NI length;
	length = len_191097(branch);
	{
		NI j_476348;
		NI HEX3Atmp_476389;
		NI res_476392;
		j_476348 = 0;
		HEX3Atmp_476389 = 0;
		HEX3Atmp_476389 = (NI)(length - ((NI) 2));
		res_476392 = ((NI) 0);
		{
			while (1) {
				if (!(res_476392 <= HEX3Atmp_476389)) goto LA3;
				j_476348 = res_476392;
				{
					Tnode190813* LOC6;
					LOC6 = 0;
					LOC6 = HEX5BHEX5D_191244(branch, j_476348);
					if (!((*LOC6).kind == ((NU8) 44))) goto LA7;
					{
						TY490436 LOC13;
						Tnode190813* LOC14;
						Tnode190813* LOC15;
						Tnode190813* LOC16;
						Tnode190813* LOC17;
						if (!((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 0))&7)))!=0)) goto LA11;
						memset((void*)LOC13, 0, sizeof(LOC13));
						LOC14 = 0;
						LOC14 = HEX5BHEX5D_191244(branch, j_476348);
						LOC15 = 0;
						LOC15 = HEX5BHEX5D_191244(LOC14, ((NI) 0));
						LOC13[0] = genliteral_466921(p, LOC15);
						LOC16 = 0;
						LOC16 = HEX5BHEX5D_191244(branch, j_476348);
						LOC17 = 0;
						LOC17 = HEX5BHEX5D_191244(LOC16, ((NI) 1));
						LOC13[1] = genliteral_466921(p, LOC17);
						linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3639), LOC13, 2);
					}
					goto LA9;
					LA11: ;
					{
						Tnode190813* v;
						Tnode190813* LOC19;
						Tnode190813* LOC20;
						LOC19 = 0;
						LOC19 = HEX5BHEX5D_191244(branch, j_476348);
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_191244(LOC19, ((NI) 0));
						v = copynode_194640(LOC20);
						{
							while (1) {
								Tnode190813* LOC23;
								Tnode190813* LOC24;
								TY161572 LOC25;
								LOC23 = 0;
								LOC23 = HEX5BHEX5D_191244(branch, j_476348);
								LOC24 = 0;
								LOC24 = HEX5BHEX5D_191244(LOC23, ((NI) 1));
								if (!((*v).kindU.S1.intval <= (*LOC24).kindU.S1.intval)) goto LA22;
								memset((void*)LOC25, 0, sizeof(LOC25));
								LOC25[0] = genliteral_466921(p, v);
								linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3660), LOC25, 1);
								(*v).kindU.S1.intval += ((NI) 1);
							} LA22: ;
						}
					}
					LA9: ;
				}
				goto LA4;
				LA7: ;
				{
					TY161572 LOC27;
					Tnode190813* LOC28;
					memset((void*)LOC27, 0, sizeof(LOC27));
					LOC28 = 0;
					LOC28 = HEX5BHEX5D_191244(branch, j_476348);
					LOC27[0] = genliteral_466921(p, LOC28);
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3660), LOC27, 1);
				}
				LA4: ;
				res_476392 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(void, gentraverseproc_464451)(Ttraversalclosure464431* c, Ropeobj161009* accessor, Tnode190813* n) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	switch ((*n).kind) {
	case ((NU8) 138):
	{
		{
			NI i_464481;
			NI HEX3Atmp_464639;
			NI LOC7;
			NI res_464642;
			i_464481 = 0;
			HEX3Atmp_464639 = 0;
			LOC7 = 0;
			LOC7 = sonslen_193403(n);
			HEX3Atmp_464639 = (NI)(LOC7 - ((NI) 1));
			res_464642 = ((NI) 0);
			{
				while (1) {
					if (!(res_464642 <= HEX3Atmp_464639)) goto LA9;
					i_464481 = res_464642;
					gentraverseproc_464451(c, accessor, (*n).kindU.S6.sons->data[i_464481]);
					res_464642 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 139):
	{
		Tcproc456034* p;
		Tsym190843* disc;
		TY490436 LOC15;
		TY460664 LOC28;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA13;
			internalerror_165199((*n).info, ((NimStringDesc*) &TMP3637));
		}
		LA13: ;
		p = (*c).p;
		disc = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		memset((void*)LOC15, 0, sizeof(LOC15));
		LOC15[0] = accessor;
		LOC15[1] = (*disc).loc.r;
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3638), LOC15, 2);
		{
			NI i_464512;
			NI HEX3Atmp_464649;
			NI LOC17;
			NI res_464652;
			i_464512 = 0;
			HEX3Atmp_464649 = 0;
			LOC17 = 0;
			LOC17 = sonslen_193403(n);
			HEX3Atmp_464649 = (NI)(LOC17 - ((NI) 1));
			res_464652 = ((NI) 1);
			{
				while (1) {
					Tnode190813* branch;
					Tnode190813* LOC26;
					TY460664 LOC27;
					if (!(res_464652 <= HEX3Atmp_464649)) goto LA19;
					i_464512 = res_464652;
					branch = (*n).kindU.S6.sons->data[i_464512];
					{
						if (!((*branch).kind == ((NU8) 85))) goto LA22;
						gencaserange_464440((*c).p, branch);
					}
					goto LA20;
					LA22: ;
					{
						TY460664 LOC25;
						memset((void*)LOC25, 0, sizeof(LOC25));
						linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3661), LOC25, 0);
					}
					LA20: ;
					LOC26 = 0;
					LOC26 = lastson_193431(branch);
					gentraverseproc_464451(c, accessor, LOC26);
					memset((void*)LOC27, 0, sizeof(LOC27));
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3662), LOC27, 0);
					res_464652 += ((NI) 1);
				} LA19: ;
			}
		}
		memset((void*)LOC28, 0, sizeof(LOC28));
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3663), LOC28, 0);
	}
	break;
	case ((NU8) 3):
	{
		Tsym190843* field;
		TY490436 LOC34;
		Ropeobj161009* LOC35;
		field = (*n).kindU.S4.sym;
		{
			if (!((*field).loc.t == NIM_NIL)) goto LA32;
			internalerror_165199((*n).info, ((NimStringDesc*) &TMP3664));
		}
		LA32: ;
		memset((void*)LOC34, 0, sizeof(LOC34));
		LOC34[0] = accessor;
		LOC34[1] = (*field).loc.r;
		LOC35 = 0;
		LOC35 = HEX25_162235(((NimStringDesc*) &TMP3570), LOC34, 2);
		gentraverseproc_464434(c, LOC35, (*field).loc.t);
	}
	break;
	default:
	{
		internalerror_165199((*n).info, ((NimStringDesc*) &TMP3664));
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, linecg_460010)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009** LOC1;
	Ropeobj161009* LOC2;
	Ropeobj161009* LOC3;
	LOC1 = 0;
	LOC1 = s_456184(p, s);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, args, argsLen0);
	LOC3 = 0;
	LOC3 = indentline_459925(p, LOC2);
	add_161534(LOC1, LOC3);
}

N_NIMCALL(void, gentraverseproc_464434)(Ttraversalclosure464431* c, Ropeobj161009* accessor, Ttype190849* typ_464439) {
	Tcproc456034* p;
{	{
		if (!(typ_464439 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	p = (*c).p;
	switch ((*typ_464439).kind) {
	case ((NU8) 11):
	case ((NU8) 10):
	case ((NU8) 8):
	{
		Ttype190849* LOC6;
		LOC6 = 0;
		LOC6 = lastson_193442(typ_464439);
		gentraverseproc_464434(c, accessor, LOC6);
	}
	break;
	case ((NU8) 4):
	case ((NU8) 16):
	{
		NI64 arraysize;
		Tloc190827 i;
		Ttype190849* LOC8;
		TY490436 LOC9;
		TY490436 LOC10;
		Ropeobj161009* LOC11;
		TY460664 LOC12;
		arraysize = lengthord_220016((*typ_464439).sons->data[((NI) 0)]);
		memset((void*)(&i), 0, sizeof(i));
		LOC8 = 0;
		LOC8 = getsystype_238030(((NU8) 31));
		gettemp_464444(p, LOC8, (&i), NIM_FALSE);
		memset((void*)LOC9, 0, sizeof(LOC9));
		LOC9[0] = i.r;
		LOC9[1] = rope_161407(arraysize);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3634), LOC9, 2);
		memset((void*)LOC10, 0, sizeof(LOC10));
		LOC10[0] = accessor;
		LOC10[1] = i.r;
		LOC11 = 0;
		LOC11 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3611), LOC10, 2);
		gentraverseproc_464434(c, LOC11, (*typ_464439).sons->data[((NI) 1)]);
		memset((void*)LOC12, 0, sizeof(LOC12));
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3635), LOC12, 0);
	}
	break;
	case ((NU8) 17):
	{
		{
			NI i_464749;
			NI HEX3Atmp_464796;
			NI LOC15;
			NI res_464799;
			i_464749 = 0;
			HEX3Atmp_464796 = 0;
			LOC15 = 0;
			LOC15 = sonslen_193351(typ_464439);
			HEX3Atmp_464796 = (NI)(LOC15 - ((NI) 1));
			res_464799 = ((NI) 0);
			{
				while (1) {
					Ropeobj161009* LOC18;
					if (!(res_464799 <= HEX3Atmp_464796)) goto LA17;
					i_464749 = res_464799;
					LOC18 = 0;
					LOC18 = parentobj_464678(accessor, (*(*c).p).module);
					gentraverseproc_464434(c, LOC18, (*typ_464439).sons->data[i_464749]);
					res_464799 += ((NI) 1);
				} LA17: ;
			}
		}
		{
			if (!!(((*typ_464439).n == NIM_NIL))) goto LA21;
			gentraverseproc_464451(c, accessor, (*typ_464439).n);
		}
		LA21: ;
	}
	break;
	case ((NU8) 18):
	{
		Ttype190849* typ;
		typ = getuniquetype_454656(typ_464439);
		{
			NI i_464775;
			NI HEX3Atmp_464804;
			NI LOC25;
			NI res_464807;
			i_464775 = 0;
			HEX3Atmp_464804 = 0;
			LOC25 = 0;
			LOC25 = sonslen_193351(typ);
			HEX3Atmp_464804 = (NI)(LOC25 - ((NI) 1));
			res_464807 = ((NI) 0);
			{
				while (1) {
					TY490436 LOC28;
					Ropeobj161009* LOC29;
					if (!(res_464807 <= HEX3Atmp_464804)) goto LA27;
					i_464775 = res_464807;
					memset((void*)LOC28, 0, sizeof(LOC28));
					LOC28[0] = accessor;
					LOC28[1] = rope_161407(((NI64) (i_464775)));
					LOC29 = 0;
					LOC29 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3665), LOC28, 2);
					gentraverseproc_464434(c, LOC29, (*typ).sons->data[i_464775]);
					res_464807 += ((NI) 1);
				} LA27: ;
			}
		}
	}
	break;
	case ((NU8) 22):
	case ((NU8) 28):
	case ((NU8) 24):
	{
		TY161572 LOC31;
		memset((void*)LOC31, 0, sizeof(LOC31));
		LOC31[0] = accessor;
		linecg_460010(p, ((NU8) 2), (*c).visitorfrmt, LOC31, 1);
	}
	break;
	case ((NU8) 25):
	{
		{
			TY161572 LOC37;
			TY161572 LOC38;
			if (!((*typ_464439).callconv == ((NU8) 8))) goto LA35;
			memset((void*)LOC37, 0, sizeof(LOC37));
			memset((void*)LOC38, 0, sizeof(LOC38));
			LOC38[0] = accessor;
			LOC37[0] = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3666), LOC38, 1);
			linecg_460010(p, ((NU8) 2), (*c).visitorfrmt, LOC37, 1);
		}
		LA35: ;
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, gentraverseprocseq_464832)(Ttraversalclosure464431* c, Ropeobj161009* accessor, Ttype190849* typ) {
	Tcproc456034* p;
	Tloc190827 i;
	Ttype190849* LOC1;
	TY462569 LOC2;
	NimStringDesc* LOC3;
	TY490436 LOC11;
	Ropeobj161009* LOC12;
	TY460664 LOC13;
	p = (*c).p;
	memset((void*)(&i), 0, sizeof(i));
	LOC1 = 0;
	LOC1 = getsystype_238030(((NU8) 31));
	gettemp_464444(p, LOC1, (&i), NIM_FALSE);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = i.r;
	LOC2[1] = accessor;
	LOC3 = 0;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = (gcmd_154130 == ((NU8) 2));
		if (LOC6) goto LA7;
		LOC6 = (((*(*(*(*c).p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA7: ;
		if (!LOC6) goto LA8;
		LOC3 = copyString(((NimStringDesc*) &TMP3632));
	}
	goto LA4;
	LA8: ;
	{
		LOC3 = copyString(((NimStringDesc*) &TMP3633));
	}
	LA4: ;
	LOC2[2] = rope_161320(LOC3);
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3631), LOC2, 3);
	memset((void*)LOC11, 0, sizeof(LOC11));
	LOC11[0] = accessor;
	LOC11[1] = i.r;
	LOC12 = 0;
	LOC12 = HEX25_162235(((NimStringDesc*) &TMP3667), LOC11, 2);
	gentraverseproc_464434(c, LOC12, (*typ).sons->data[((NI) 0)]);
	memset((void*)LOC13, 0, sizeof(LOC13));
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3635), LOC13, 0);
}

N_NIMCALL(Ropeobj161009*, gentraverseproc_465035)(Tcgen456038* m, Ttype190849* typ, NU8 reason) {
	Ropeobj161009* result;
	Ttraversalclosure464431 c;
	Tcproc456034* p;
	Ropeobj161009* header;
	TY161572 LOC3;
	Ropeobj161009* t;
	TY161572 LOC4;
	TY161572 LOC5;
	Ropeobj161009* generatedproc;
	TY462566 LOC20;
	Ropeobj161009** LOC21;
	Ropeobj161009** LOC22;
	Ropeobj161009** LOC23;
	TY161572 LOC24;
	result = 0;
	memset((void*)(&c), 0, sizeof(c));
	p = newproc_456229(NIM_NIL, m);
	result = getglobaltempname_461010();
	switch (reason) {
	case ((NU8) 0):
	{
		c.visitorfrmt = copyString(((NimStringDesc*) &TMP3619));
	}
	break;
	default:
	{
	}
	break;
	}
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = result;
	header = HEX25_162235(((NimStringDesc*) &TMP3620), LOC3, 1);
	t = gettypedesc_463073(m, typ);
	memset((void*)LOC4, 0, sizeof(LOC4));
	LOC4[0] = t;
	linef_459997(p, ((NU8) 0), ((NimStringDesc*) &TMP3621), LOC4, 1);
	memset((void*)LOC5, 0, sizeof(LOC5));
	LOC5[0] = t;
	linef_459997(p, ((NU8) 1), ((NimStringDesc*) &TMP3622), LOC5, 1);
	c.p = p;
	{
		Ropeobj161009* LOC10;
		if (!((*typ).kind == ((NU8) 24))) goto LA8;
		LOC10 = 0;
		LOC10 = rope_161320(((NimStringDesc*) &TMP3668));
		gentraverseprocseq_464832((&c), LOC10, typ);
	}
	goto LA6;
	LA8: ;
	{
		{
			Ttype190849* LOC14;
			Ropeobj161009* LOC17;
			LOC14 = 0;
			LOC14 = skiptypes_194167((*typ).sons->data[((NI) 0)], IL64(211106232576256));
			if (!((*LOC14).kind == ((NU8) 4) || (*LOC14).kind == ((NU8) 16))) goto LA15;
			LOC17 = 0;
			LOC17 = rope_161320(((NimStringDesc*) &TMP3668));
			gentraverseproc_464434((&c), LOC17, (*typ).sons->data[((NI) 0)]);
		}
		goto LA12;
		LA15: ;
		{
			Ropeobj161009* LOC19;
			LOC19 = 0;
			LOC19 = rope_161320(((NimStringDesc*) &TMP3669));
			gentraverseproc_464434((&c), LOC19, (*typ).sons->data[((NI) 0)]);
		}
		LA12: ;
	}
	LA6: ;
	memset((void*)LOC20, 0, sizeof(LOC20));
	LOC20[0] = header;
	LOC21 = 0;
	LOC21 = s_456184(p, ((NU8) 0));
	LOC20[1] = (*LOC21);
	LOC22 = 0;
	LOC22 = s_456184(p, ((NU8) 1));
	LOC20[2] = (*LOC22);
	LOC23 = 0;
	LOC23 = s_456184(p, ((NU8) 2));
	LOC20[3] = (*LOC23);
	generatedproc = HEX25_162235(((NimStringDesc*) &TMP3670), LOC20, 4);
	memset((void*)LOC24, 0, sizeof(LOC24));
	LOC24[0] = header;
	addf_162635(&(*m).s[(((NU8) 7))- 0], ((NimStringDesc*) &TMP3595), LOC24, 1);
	add_161534(&(*m).s[(((NU8) 10))- 0], generatedproc);
	return result;
}

N_NIMCALL(void, genarrayinfo_464408)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name) {
	Ropeobj161009* LOC1;
	LOC1 = 0;
	LOC1 = gentypeinfo_463368(m, (*typ).sons->data[((NI) 1)]);
	gentypeinfoauxbase_463390(m, typ, typ, name, LOC1);
}

N_NIMCALL(void, gensetinfo_464279)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name) {
	Ropeobj161009* tmp;
	TY462569 LOC1;
	NI64 LOC2;
	gentypeinfoaux_463460(m, typ, typ, name);
	tmp = getnimnode_463372(m);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = tmp;
	LOC2 = 0;
	LOC2 = firstord_220004(typ);
	LOC1[1] = rope_161407(LOC2);
	LOC1[2] = name;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3672), LOC1, 3);
}

N_NIMCALL(void, genenuminfo_464056)(Tcgen456038* m, Ttype190849* typ, Ropeobj161009* name) {
	Ropeobj161009* nodeptrs;
	NI length;
	TY490436 LOC1;
	Ropeobj161009* enumnames;
	Ropeobj161009* specialcases;
	NI firstnimnode;
	NIM_BOOL hasholes;
	Ropeobj161009* enumarray;
	Ropeobj161009* counter;
	TY161572 LOC24;
	TY462569 LOC25;
	TY464247 LOC26;
	TY462566 LOC27;
	gentypeinfoaux_463460(m, typ, typ, name);
	nodeptrs = gettempname_461002();
	length = sonslen_193403((*typ).n);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = nodeptrs;
	LOC1[1] = rope_161407(((NI64) (length)));
	addf_162635(&(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP3612), LOC1, 2);
	enumnames = 0;
	specialcases = 0;
	firstnimnode = (*m).typenodes;
	hasholes = NIM_FALSE;
	{
		NI i_464082;
		NI HEX3Atmp_464260;
		NI res_464263;
		i_464082 = 0;
		HEX3Atmp_464260 = 0;
		HEX3Atmp_464260 = (NI)(length - ((NI) 1));
		res_464263 = ((NI) 0);
		{
			while (1) {
				Tsym190843* field;
				Ropeobj161009* elemnode;
				if (!(res_464263 <= HEX3Atmp_464260)) goto LA4;
				i_464082 = res_464263;
				field = (*(*(*typ).n).kindU.S6.sons->data[i_464082]).kindU.S4.sym;
				elemnode = getnimnode_463372(m);
				{
					Ropeobj161009* LOC9;
					if (!((*field).ast == NIM_NIL)) goto LA7;
					LOC9 = 0;
					LOC9 = makecstring_163449((*(*field).name).s);
					add_161534(&enumnames, LOC9);
				}
				goto LA5;
				LA7: ;
				{
					Ropeobj161009* LOC11;
					LOC11 = 0;
					LOC11 = makecstring_163449((*(*field).ast).kindU.S3.strval);
					add_161534(&enumnames, LOC11);
				}
				LA5: ;
				{
					NimStringDesc* LOC16;
					if (!(i_464082 < (NI)(length - ((NI) 1)))) goto LA14;
					LOC16 = 0;
					LOC16 = rawNewString(tnl_159626->Sup.len + 2);
appendString(LOC16, ((NimStringDesc*) &TMP3536));
appendString(LOC16, tnl_159626);
					add_161545(&enumnames, LOC16);
				}
				LA14: ;
				{
					NIM_BOOL LOC19;
					TY490436 LOC23;
					LOC19 = 0;
					LOC19 = !(((*field).position == i_464082));
					if (LOC19) goto LA20;
					LOC19 = (((*typ).flags &(1<<((((NU8) 5))&31)))!=0);
					LA20: ;
					if (!LOC19) goto LA21;
					memset((void*)LOC23, 0, sizeof(LOC23));
					LOC23[0] = elemnode;
					LOC23[1] = rope_161407(((NI64) ((*field).position)));
					addf_162635(&specialcases, ((NimStringDesc*) &TMP3673), LOC23, 2);
					hasholes = NIM_TRUE;
				}
				LA21: ;
				res_464263 += ((NI) 1);
			} LA4: ;
		}
	}
	enumarray = gettempname_461002();
	counter = gettempname_461002();
	memset((void*)LOC24, 0, sizeof(LOC24));
	LOC24[0] = counter;
	addf_162635(&(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP3674), LOC24, 1);
	memset((void*)LOC25, 0, sizeof(LOC25));
	LOC25[0] = enumarray;
	LOC25[1] = rope_161407(((NI64) (length)));
	LOC25[2] = enumnames;
	addf_162635(&(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP3675), LOC25, 3);
	memset((void*)LOC26, 0, sizeof(LOC26));
	LOC26[0] = counter;
	LOC26[1] = rope_161407(((NI64) (length)));
	LOC26[2] = (*m).typenodesname;
	LOC26[3] = rope_161407(((NI64) (firstnimnode)));
	LOC26[4] = enumarray;
	LOC26[5] = nodeptrs;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3676), LOC26, 6);
	add_161534(&(*m).s[(((NU8) 14))- 0], specialcases);
	memset((void*)LOC27, 0, sizeof(LOC27));
	LOC27[0] = getnimnode_463372(m);
	LOC27[1] = rope_161407(((NI64) (length)));
	LOC27[2] = nodeptrs;
	LOC27[3] = name;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3677), LOC27, 4);
	{
		TY161572 LOC32;
		if (!hasholes) goto LA30;
		memset((void*)LOC32, 0, sizeof(LOC32));
		LOC32[0] = name;
		addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3678), LOC32, 1);
	}
	LA30: ;
}

N_NIMCALL(Ropeobj161009*, discriminatortablename_463483)(Tcgen456038* m, Ttype190849* objtype_463486, Tsym190843* d) {
	Ropeobj161009* result;
	Ttype190849* objtype;
	TY490436 LOC8;
	NimStringDesc* LOC9;
	result = 0;
	objtype = objtype_463486;
	{
		while (1) {
			Tsym190843* LOC3;
			LOC3 = 0;
			LOC3 = lookupinrecord_198236((*objtype).n, (*d).name);
			if (!(LOC3 == NIM_NIL)) goto LA2;
			objtype = (*objtype).sons->data[((NI) 0)];
		} LA2: ;
	}
	{
		if (!((*objtype).sym == NIM_NIL)) goto LA6;
		internalerror_165199((*d).info, ((NimStringDesc*) &TMP3679));
	}
	LA6: ;
	memset((void*)LOC8, 0, sizeof(LOC8));
	LOC8[0] = rope_161407(((NI64) ((*objtype).Sup.id)));
	LOC9 = 0;
	LOC9 = mangle_454896((*(*d).name).s);
	LOC8[1] = rope_161320(LOC9);
	result = HEX25_162235(((NimStringDesc*) &TMP3680), LOC8, 2);
	return result;
}

N_NIMCALL(void, genobjectfields_463542)(Tcgen456038* m, Ttype190849* typ, Tnode190813* n, Ropeobj161009* expr) {
	switch ((*n).kind) {
	case ((NU8) 138):
	{
		NI L;
		L = sonslen_193403(n);
		{
			if (!(L == ((NI) 1))) goto LA4;
			genobjectfields_463542(m, typ, (*n).kindU.S6.sons->data[((NI) 0)], expr);
		}
		goto LA2;
		LA4: ;
		{
			Ropeobj161009* tmp;
			TY490436 LOC9;
			TY462569 LOC14;
			if (!(((NI) 0) < L)) goto LA7;
			tmp = gettempname_461002();
			memset((void*)LOC9, 0, sizeof(LOC9));
			LOC9[0] = tmp;
			LOC9[1] = rope_161407(((NI64) (L)));
			addf_162635(&(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP3612), LOC9, 2);
			{
				NI i_463566;
				NI HEX3Atmp_463883;
				NI res_463886;
				i_463566 = 0;
				HEX3Atmp_463883 = 0;
				HEX3Atmp_463883 = (NI)(L - ((NI) 1));
				res_463886 = ((NI) 0);
				{
					while (1) {
						Ropeobj161009* tmp2;
						TY462569 LOC13;
						if (!(res_463886 <= HEX3Atmp_463883)) goto LA12;
						i_463566 = res_463886;
						tmp2 = getnimnode_463372(m);
						memset((void*)LOC13, 0, sizeof(LOC13));
						LOC13[0] = tmp;
						LOC13[1] = rope_161407(((NI64) (i_463566)));
						LOC13[2] = tmp2;
						addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3613), LOC13, 3);
						genobjectfields_463542(m, typ, (*n).kindU.S6.sons->data[i_463566], tmp2);
						res_463886 += ((NI) 1);
					} LA12: ;
				}
			}
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = expr;
			LOC14[1] = rope_161407(((NI64) (L)));
			LOC14[2] = tmp;
			addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3615), LOC14, 3);
		}
		goto LA2;
		LA7: ;
		{
			TY490436 LOC16;
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC16[0] = expr;
			LOC16[1] = rope_161407(((NI64) (L)));
			addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3616), LOC16, 2);
		}
		LA2: ;
	}
	break;
	case ((NU8) 139):
	{
		Tsym190843* field;
		Ropeobj161009* tmp;
		NI64 L;
		TY463801 LOC18;
		TY490436 LOC19;
		field = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		tmp = discriminatortablename_463483(m, typ, field);
		L = lengthord_220016((*field).typ);
		memset((void*)LOC18, 0, sizeof(LOC18));
		LOC18[0] = expr;
		LOC18[1] = gettypedesc_463073(m, typ);
		LOC18[2] = (*field).loc.r;
		LOC18[3] = gentypeinfo_463368(m, (*field).typ);
		LOC18[4] = makecstring_163449((*(*field).name).s);
		LOC18[5] = tmp;
		LOC18[6] = rope_161407(L);
		addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3681), LOC18, 7);
		memset((void*)LOC19, 0, sizeof(LOC19));
		LOC19[0] = tmp;
		LOC19[1] = rope_161407((NI64)(L + IL64(1)));
		addf_162635(&(*m).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3682), LOC19, 2);
		{
			NI i_463822;
			NI HEX3Atmp_463900;
			NI LOC21;
			NI res_463903;
			i_463822 = 0;
			HEX3Atmp_463900 = 0;
			LOC21 = 0;
			LOC21 = sonslen_193403(n);
			HEX3Atmp_463900 = (NI)(LOC21 - ((NI) 1));
			res_463903 = ((NI) 1);
			{
				while (1) {
					Tnode190813* b;
					Ropeobj161009* tmp2;
					Tnode190813* LOC24;
					if (!(res_463903 <= HEX3Atmp_463900)) goto LA23;
					i_463822 = res_463903;
					b = (*n).kindU.S6.sons->data[i_463822];
					tmp2 = getnimnode_463372(m);
					LOC24 = 0;
					LOC24 = lastson_193431(b);
					genobjectfields_463542(m, typ, LOC24, tmp2);
					switch ((*b).kind) {
					case ((NU8) 85):
					{
						{
							NI LOC28;
							LOC28 = 0;
							LOC28 = sonslen_193403(b);
							if (!(LOC28 < ((NI) 2))) goto LA29;
							internalerror_165199((*b).info, ((NimStringDesc*) &TMP3683));
						}
						LA29: ;
						{
							NI j_463838;
							NI HEX3Atmp_463893;
							NI LOC32;
							NI res_463896;
							j_463838 = 0;
							HEX3Atmp_463893 = 0;
							LOC32 = 0;
							LOC32 = sonslen_193403(b);
							HEX3Atmp_463893 = (NI)(LOC32 - ((NI) 2));
							res_463896 = ((NI) 0);
							{
								while (1) {
									if (!(res_463896 <= HEX3Atmp_463893)) goto LA34;
									j_463838 = res_463896;
									{
										NI x;
										NI64 LOC39;
										NI y;
										NI64 LOC40;
										if (!((*(*b).kindU.S6.sons->data[j_463838]).kind == ((NU8) 44))) goto LA37;
										LOC39 = 0;
										LOC39 = getordvalue_220178((*(*b).kindU.S6.sons->data[j_463838]).kindU.S6.sons->data[((NI) 0)]);
										x = ((NI) (LOC39));
										LOC40 = 0;
										LOC40 = getordvalue_220178((*(*b).kindU.S6.sons->data[j_463838]).kindU.S6.sons->data[((NI) 1)]);
										y = ((NI) (LOC40));
										{
											while (1) {
												TY462569 LOC43;
												if (!(x <= y)) goto LA42;
												memset((void*)LOC43, 0, sizeof(LOC43));
												LOC43[0] = tmp;
												LOC43[1] = rope_161407(((NI64) (x)));
												LOC43[2] = tmp2;
												addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3613), LOC43, 3);
												x += ((NI) 1);
											} LA42: ;
										}
									}
									goto LA35;
									LA37: ;
									{
										TY462569 LOC45;
										NI64 LOC46;
										memset((void*)LOC45, 0, sizeof(LOC45));
										LOC45[0] = tmp;
										LOC46 = 0;
										LOC46 = getordvalue_220178((*b).kindU.S6.sons->data[j_463838]);
										LOC45[1] = rope_161407(LOC46);
										LOC45[2] = tmp2;
										addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3613), LOC45, 3);
									}
									LA35: ;
									res_463896 += ((NI) 1);
								} LA34: ;
							}
						}
					}
					break;
					case ((NU8) 88):
					{
						TY462569 LOC48;
						memset((void*)LOC48, 0, sizeof(LOC48));
						LOC48[0] = tmp;
						LOC48[1] = rope_161407(L);
						LOC48[2] = tmp2;
						addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3613), LOC48, 3);
					}
					break;
					default:
					{
						internalerror_165199((*n).info, ((NimStringDesc*) &TMP3684));
					}
					break;
					}
					res_463903 += ((NI) 1);
				} LA23: ;
			}
		}
	}
	break;
	case ((NU8) 3):
	{
		Tsym190843* field;
		TY463876 LOC51;
		field = (*n).kindU.S4.sym;
		memset((void*)LOC51, 0, sizeof(LOC51));
		LOC51[0] = expr;
		LOC51[1] = gettypedesc_463073(m, typ);
		LOC51[2] = (*field).loc.r;
		LOC51[3] = gentypeinfo_463368(m, (*field).typ);
		LOC51[4] = makecstring_163449((*(*field).name).s);
		addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3685), LOC51, 5);
	}
	break;
	default:
	{
		internalerror_165199((*n).info, ((NimStringDesc*) &TMP3686));
	}
	break;
	}
}

N_NIMCALL(void, genobjectinfo_463943)(Tcgen456038* m, Ttype190849* typ, Ttype190849* origtype, Ropeobj161009* name) {
	Ropeobj161009* tmp;
	TY490436 LOC12;
	Ttype190849* t;
	{
		if (!((*typ).kind == ((NU8) 17))) goto LA3;
		gentypeinfoaux_463460(m, typ, origtype, name);
	}
	goto LA1;
	LA3: ;
	{
		Ropeobj161009* LOC6;
		LOC6 = 0;
		LOC6 = rope_161320(((NimStringDesc*) &TMP3515));
		gentypeinfoauxbase_463390(m, typ, origtype, name, LOC6);
	}
	LA1: ;
	tmp = getnimnode_463372(m);
	{
		NIM_BOOL LOC9;
		LOC9 = 0;
		LOC9 = isimportedcpptype_460867(typ);
		if (!!(LOC9)) goto LA10;
		genobjectfields_463542(m, typ, (*typ).n, tmp);
	}
	LA10: ;
	memset((void*)LOC12, 0, sizeof(LOC12));
	LOC12[0] = name;
	LOC12[1] = tmp;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3617), LOC12, 2);
	t = (*typ).sons->data[((NI) 0)];
	{
		while (1) {
			if (!!((t == NIM_NIL))) goto LA14;
			t = skiptypes_194167(t, IL64(211106232576256));
			(*t).flags |= ((NI32)1)<<((((NU8) 5))%(sizeof(NI32)*8));
			t = (*t).sons->data[((NI) 0)];
		} LA14: ;
	}
}

N_NIMCALL(void, gendeepcopyproc_465472)(Tcgen456038* m, Tsym190843* s, Ropeobj161009* result) {
	TY490436 LOC1;
	genproc_460387(m, s);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = result;
	LOC1[1] = (*s).loc.r;
	addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3688), LOC1, 2);
}

N_NIMCALL(Ropeobj161009*, gentypeinfo_463368)(Tcgen456038* m, Ttype190849* t_463371) {
	Ropeobj161009* result;
	Ttype190849* origtype;
	Ttype190849* t;
	TY161572 LOC1;
	Tsym190843* owner;
	Ttype190849* LOC12;
	Ropeobj161009* LOC58;
	Ropeobj161009* LOC59;
	Ropeobj161009* LOC60;
{	result = 0;
	origtype = t_463371;
	t = getuniquetype_454656(t_463371);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rope_161407(((NI64) ((*t).Sup.id)));
	result = HEX25_162235(((NimStringDesc*) &TMP3601), LOC1, 1);
	{
		NIM_BOOL LOC4;
		Ropeobj161009* LOC7;
		Ropeobj161009* LOC8;
		Ropeobj161009* LOC9;
		LOC4 = 0;
		LOC4 = containsorincl_187898((&(*m).typeinfomarker), (*t).Sup.id);
		if (!LOC4) goto LA5;
		LOC7 = 0;
		LOC7 = rope_161320(((NimStringDesc*) &TMP3602));
		LOC8 = 0;
		LOC8 = HEX26_161436(LOC7, result);
		LOC9 = 0;
		LOC9 = rope_161320(((NimStringDesc*) &TMP3543));
		result = HEX26_161436(LOC8, LOC9);
		goto BeforeRet;
	}
	LA5: ;
	{
		while (1) {
			if (!((*t).kind == ((NU8) 13))) goto LA11;
			t = lastson_193442(t);
		} LA11: ;
	}
	LOC12 = 0;
	LOC12 = skiptypes_194167(t, IL64(211106247256320));
	owner = getmodule_198243((*LOC12).owner);
	{
		Tcgen456038* LOC17;
		Ropeobj161009* LOC18;
		Ropeobj161009* LOC19;
		Ropeobj161009* LOC20;
		TY490436 LOC21;
		NimStringDesc* LOC22;
		Ropeobj161009* LOC23;
		Ropeobj161009* LOC24;
		Ropeobj161009* LOC25;
		if (!!((owner == (*m).module))) goto LA15;
		LOC17 = 0;
		LOC17 = bmod_456218(owner);
		LOC18 = 0;
		LOC18 = gentypeinfo_463368(LOC17, t);
		LOC19 = 0;
		LOC19 = cgsym_459609(m, ((NimStringDesc*) &TMP3603));
		LOC20 = 0;
		LOC20 = cgsym_459609(m, ((NimStringDesc*) &TMP3604));
		memset((void*)LOC21, 0, sizeof(LOC21));
		LOC21[0] = result;
		LOC22 = 0;
		LOC22 = typetostring_220032(t, ((NU8) 0));
		LOC21[1] = rope_161320(LOC22);
		addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3605), LOC21, 2);
		LOC23 = 0;
		LOC23 = rope_161320(((NimStringDesc*) &TMP3602));
		LOC24 = 0;
		LOC24 = HEX26_161436(LOC23, result);
		LOC25 = 0;
		LOC25 = rope_161320(((NimStringDesc*) &TMP3543));
		result = HEX26_161436(LOC24, LOC25);
		goto BeforeRet;
	}
	LA15: ;
	switch ((*t).kind) {
	case ((NU8) 3):
	{
		result = rope_161320(((NimStringDesc*) &TMP3606));
	}
	break;
	case ((NU8) 26):
	case ((NU8) 1):
	case ((NU8) 2):
	case ((NU8) 29):
	case ((NU8) 28):
	case ((NU8) 31) ... ((NU8) 44):
	case ((NU8) 23):
	{
		Ropeobj161009* LOC28;
		LOC28 = 0;
		LOC28 = rope_161320(((NimStringDesc*) &TMP3606));
		gentypeinfoauxbase_463390(m, t, t, result, LOC28);
	}
	break;
	case ((NU8) 25):
	{
		{
			Ropeobj161009* LOC34;
			if (!!(((*t).callconv == ((NU8) 8)))) goto LA32;
			LOC34 = 0;
			LOC34 = rope_161320(((NimStringDesc*) &TMP3606));
			gentypeinfoauxbase_463390(m, t, t, result, LOC34);
		}
		goto LA30;
		LA32: ;
		{
			Ttype190849* LOC36;
			LOC36 = 0;
			LOC36 = fakeclosuretype_464416((*t).owner);
			gentupleinfo_463995(m, LOC36, result);
		}
		LA30: ;
	}
	break;
	case ((NU8) 24):
	case ((NU8) 22):
	{
		gentypeinfoaux_463460(m, t, t, result);
		{
			Ropeobj161009* markerproc;
			TY490436 LOC42;
			if (!(((NU8) 2) <= gselectedgc_154131)) goto LA40;
			markerproc = gentraverseproc_465035(m, t, ((NU8) 0));
			memset((void*)LOC42, 0, sizeof(LOC42));
			LOC42[0] = result;
			LOC42[1] = markerproc;
			addf_162635(&(*m).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3671), LOC42, 2);
		}
		LA40: ;
	}
	break;
	case ((NU8) 21):
	case ((NU8) 20):
	{
		gentypeinfoaux_463460(m, t, t, result);
	}
	break;
	case ((NU8) 4):
	case ((NU8) 16):
	{
		genarrayinfo_464408(m, t, result);
	}
	break;
	case ((NU8) 19):
	{
		gensetinfo_464279(m, t, result);
	}
	break;
	case ((NU8) 14):
	{
		genenuminfo_464056(m, t, result);
	}
	break;
	case ((NU8) 17):
	{
		genobjectinfo_463943(m, t, origtype, result);
	}
	break;
	case ((NU8) 18):
	{
		gentupleinfo_463995(m, t, result);
	}
	break;
	default:
	{
		NimStringDesc* LOC50;
		LOC50 = 0;
		LOC50 = rawNewString(reprEnum((*t).kind, (&NTI190260))->Sup.len + 13);
appendString(LOC50, ((NimStringDesc*) &TMP3687));
appendString(LOC50, reprEnum((*t).kind, (&NTI190260)));
appendChar(LOC50, 41);
		internalerror_165218(LOC50);
	}
	break;
	}
	{
		if (!!(((*t).deepcopy == NIM_NIL))) goto LA53;
		gendeepcopyproc_465472(m, (*t).deepcopy, result);
	}
	goto LA51;
	LA53: ;
	{
		if (!!(((*origtype).deepcopy == NIM_NIL))) goto LA56;
		gendeepcopyproc_465472(m, (*origtype).deepcopy, result);
	}
	goto LA51;
	LA56: ;
	LA51: ;
	LOC58 = 0;
	LOC58 = rope_161320(((NimStringDesc*) &TMP3602));
	LOC59 = 0;
	LOC59 = HEX26_161436(LOC58, result);
	LOC60 = 0;
	LOC60 = rope_161320(((NimStringDesc*) &TMP3543));
	result = HEX26_161436(LOC59, LOC60);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, localdebuginfo_466030)(Tcproc456034* p, Tsym190843* s) {
	Ropeobj161009* a;
	TY462566 LOC16;
	NimStringDesc* LOC17;
{	{
		if (!!(((163840 & (*p).options) == 163840))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		Ttype190849* LOC7;
		LOC7 = 0;
		LOC7 = skiptypes_194167((*s).typ, IL64(211106240964864));
		if (!((*LOC7).kind == ((NU8) 27) || (*LOC7).kind == ((NU8) 48))) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	a = HEX26_161482(((NimStringDesc*) &TMP3527), (*s).loc.r);
	{
		NIM_BOOL LOC12;
		LOC12 = 0;
		LOC12 = ((*s).kind == ((NU8) 3));
		if (!(LOC12)) goto LA13;
		LOC12 = ccgintroducedptr_461018(s);
		LA13: ;
		if (!LOC12) goto LA14;
		a = (*s).loc.r;
	}
	LA14: ;
	memset((void*)LOC16, 0, sizeof(LOC16));
	LOC16[0] = rope_161407(((NI64) ((*p).maxframelen)));
	LOC17 = 0;
	LOC17 = nsuNormalize((*(*s).name).s);
	LOC16[1] = makecstring_163449(LOC17);
	LOC16[2] = a;
	LOC16[3] = gentypeinfo_463368((*p).module, (*s).loc.t);
	linef_459997(p, ((NU8) 1), ((NimStringDesc*) &TMP3600), LOC16, 4);
	(*p).maxframelen += ((NI) 1);
	(*p).blocks->data[(NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1))].framelen += ((NI) 1);
	}BeforeRet: ;
}

N_NIMCALL(void, assignlocalvar_466207)(Tcproc456034* p, Tsym190843* s) {
	Ropeobj161009* decl;
	Ropeobj161009* LOC1;
	Ropeobj161009* LOC2;
	LOC1 = 0;
	LOC1 = localvardecl_466119(p, s);
	LOC2 = 0;
	LOC2 = HEX26_161471(LOC1, ((NimStringDesc*) &TMP3599));
	decl = HEX26_161471(LOC2, tnl_159626);
	line_459975(p, ((NU8) 0), decl);
	localdebuginfo_466030(p, s);
}

N_NIMCALL(void, initlocalvar_465858)(Tcproc456034* p, Tsym190843* v, NIM_BOOL immediateasgn) {
	{
		if (!!((((*v).flags &(1<<((((NU8) 12))&31)))!=0))) goto LA3;
		{
			if (!!(immediateasgn)) goto LA7;
			constructloc_465842(p, (*v).loc, NIM_FALSE);
		}
		LA7: ;
	}
	LA3: ;
}

N_NIMCALL(void, fillresult_461268)(Tsym190843* param) {
	TY460664 LOC1;
	Ropeobj161009* LOC2;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = HEX25_162235(((NimStringDesc*) &TMP3690), LOC1, 0);
	fillloc_459315((&(*param).loc), ((NU8) 4), (*param).typ, LOC2, ((NU8) 1));
	{
		NIM_BOOL LOC5;
		NU8 LOC6;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = mapreturntype_460821((*param).typ);
		LOC5 = !((LOC6 == ((NU8) 17)));
		if (!(LOC5)) goto LA7;
		LOC5 = isinvalidreturntype_460948((*param).typ);
		LA7: ;
		if (!LOC5) goto LA8;
		(*param).loc.flags |= ((NI16)1)<<((((NU8) 0))%(sizeof(NI16)*8));
		(*param).loc.s = ((NU8) 0);
	}
	LA8: ;
}

N_NIMCALL(void, assignparam_466613)(Tcproc456034* p, Tsym190843* s) {
	localdebuginfo_466030(p, s);
}

N_NIMCALL(void, closuresetup_489854)(Tcproc456034* p, Tsym190843* prc) {
	Tnode190813* ls;
	Tnode190813* LOC5;
	Tsym190843* env;
	TY490436 LOC10;
{	{
		if (!!((((*(*prc).typ).flags &(1<<((((NU8) 11))&31)))!=0))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = HEX5BHEX5D_191244((*prc).ast, ((NI) 3));
	ls = lastson_193431(LOC5);
	{
		if (!!(((*ls).kind == ((NU8) 3)))) goto LA8;
		internalerror_165199((*prc).info, ((NimStringDesc*) &TMP3691));
	}
	LA8: ;
	env = (*ls).kindU.S4.sym;
	assignlocalvar_466207(p, env);
	memset((void*)LOC10, 0, sizeof(LOC10));
	LOC10[0] = rdloc_465593((*env).loc);
	LOC10[1] = gettypedesc_463073((*p).module, (*env).typ);
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3692), LOC10, 2);
	}BeforeRet: ;
}

static N_INLINE(NIM_BOOL, usesnativegc_154184)(void) {
	NIM_BOOL result;
	result = 0;
	result = (((NU8) 3) <= gselectedgc_154131);
	return result;
}

N_NIMCALL(void, keepalive_465907)(Tcproc456034* p, Tloc190827 tokeepalive) {
}

N_NIMCALL(void, genrefassign_465750)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		TY490436 LOC8;
		LOC3 = 0;
		LOC3 = (dest.s == ((NU8) 1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = usesnativegc_154184();
		LOC3 = !(LOC5);
		LA4: ;
		if (!LOC3) goto LA6;
		memset((void*)LOC8, 0, sizeof(LOC8));
		LOC8[0] = rdloc_465593(dest);
		LOC8[1] = rdloc_465593(src);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC8, 2);
		{
			if (!((flags &(1<<((((NU8) 6))&7)))!=0)) goto LA11;
			keepalive_465907(p, dest);
		}
		LA11: ;
	}
	goto LA1;
	LA6: ;
	{
		if (!(dest.s == ((NU8) 2))) goto LA14;
		{
			NIM_BOOL LOC18;
			TY490436 LOC21;
			LOC18 = 0;
			LOC18 = canformacycle_220166(dest.t);
			if (!LOC18) goto LA19;
			memset((void*)LOC21, 0, sizeof(LOC21));
			LOC21[0] = addrloc_465615(dest);
			LOC21[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3694), LOC21, 2);
		}
		goto LA16;
		LA19: ;
		{
			TY490436 LOC23;
			memset((void*)LOC23, 0, sizeof(LOC23));
			LOC23[0] = addrloc_465615(dest);
			LOC23[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3695), LOC23, 2);
		}
		LA16: ;
	}
	goto LA1;
	LA14: ;
	{
		TY490436 LOC25;
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = addrloc_465615(dest);
		LOC25[1] = rdloc_465593(src);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3696), LOC25, 2);
		{
			if (!((flags &(1<<((((NU8) 6))&7)))!=0)) goto LA28;
			keepalive_465907(p, dest);
		}
		LA28: ;
	}
	LA1: ;
}

N_NIMCALL(void, optasgnloc_478858)(Tloc190827 a, Ttype190849* t, Ropeobj161009* field, Tloc190827* Result) {
	Ropeobj161009* LOC1;
	Ropeobj161009* LOC2;
	(*Result).k = ((NU8) 5);
	(*Result).s = a.s;
	unsureAsgnRef((void**) (&(*Result).t), t);
	LOC1 = 0;
	LOC1 = rdloc_465593(a);
	LOC2 = 0;
	LOC2 = HEX26_161471(LOC1, ((NimStringDesc*) &TMP3702));
	unsureAsgnRef((void**) (&(*Result).r), HEX26_161436(LOC2, field));
	unsureAsgnRef((void**) (&(*Result).heaproot), a.heaproot);
}

N_NIMCALL(void, genoptasgntuple_479004)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags) {
	NU8 newflags;
	Ttype190849* t_479056;
	Ttype190849* LOC9;
	{
		if (!(src.k == ((NU8) 8))) goto LA3;
		newflags = (flags | 1);
	}
	goto LA1;
	LA3: ;
	{
		if (!(((*dest.t).flags &(1<<((((NU8) 6))&31)))!=0)) goto LA6;
		newflags = (flags & ~ 1);
	}
	goto LA1;
	LA6: ;
	{
		newflags = flags;
	}
	LA1: ;
	LOC9 = 0;
	LOC9 = skiptypes_194167(dest.t, IL64(211106232576256));
	t_479056 = getuniquetype_454656(LOC9);
	{
		NI i_479075;
		NI HEX3Atmp_479081;
		NI LOC11;
		NI res_479084;
		i_479075 = 0;
		HEX3Atmp_479081 = 0;
		LOC11 = 0;
		LOC11 = len_193377(t_479056);
		HEX3Atmp_479081 = (LOC11 - 1);
		res_479084 = ((NI) 0);
		{
			while (1) {
				Ttype190849* t;
				Ropeobj161009* field;
				TY161572 LOC14;
				Tloc190827 LOC15;
				Tloc190827 LOC16;
				if (!(res_479084 <= HEX3Atmp_479081)) goto LA13;
				i_479075 = res_479084;
				t = (*t_479056).sons->data[i_479075];
				memset((void*)LOC14, 0, sizeof(LOC14));
				LOC14[0] = rope_161407(((NI64) (i_479075)));
				field = HEX25_162235(((NimStringDesc*) &TMP3705), LOC14, 1);
				memset((void*)(&LOC15), 0, sizeof(LOC15));
				optasgnloc_478858(dest, t, field, (&LOC15));
				memset((void*)(&LOC16), 0, sizeof(LOC16));
				optasgnloc_478858(src, t, field, (&LOC16));
				genassignment_466906(p, LOC15, LOC16, newflags);
				res_479084 += ((NI) 1);
			} LA13: ;
		}
	}
}

N_NIMCALL(void, gengenericasgn_479198)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags) {
	{
		NIM_BOOL LOC3;
		Ttype190849* LOC5;
		LOC3 = 0;
		LOC3 = !(((flags &(1<<((((NU8) 0))&7)))!=0));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = skiptypes_194167(dest.t, IL64(211106242013440));
		LOC3 = (((*LOC5).flags &(1<<((((NU8) 6))&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA6;
		{
			NIM_BOOL LOC10;
			NIM_BOOL LOC12;
			TY462569 LOC15;
			LOC10 = 0;
			LOC10 = (dest.s == ((NU8) 1));
			if (LOC10) goto LA11;
			LOC12 = 0;
			LOC12 = usesnativegc_154184();
			LOC10 = !(LOC12);
			LA11: ;
			if (!LOC10) goto LA13;
			usestringh_459390((*p).module);
			memset((void*)LOC15, 0, sizeof(LOC15));
			LOC15[0] = addrloc_465615(dest);
			LOC15[1] = addrloc_465615(src);
			LOC15[2] = rdloc_465593(dest);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3706), LOC15, 3);
			{
				if (!((flags &(1<<((((NU8) 6))&7)))!=0)) goto LA18;
				keepalive_465907(p, dest);
			}
			LA18: ;
		}
		goto LA8;
		LA13: ;
		{
			TY462569 LOC21;
			memset((void*)LOC21, 0, sizeof(LOC21));
			LOC21[0] = addrloc_465615(dest);
			LOC21[1] = addrloc_465615(src);
			LOC21[2] = gentypeinfo_463368((*p).module, dest.t);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3707), LOC21, 3);
		}
		LA8: ;
	}
	goto LA1;
	LA6: ;
	{
		TY462569 LOC23;
		memset((void*)LOC23, 0, sizeof(LOC23));
		LOC23[0] = addrloc_465615(dest);
		LOC23[1] = addrloc_465615(src);
		LOC23[2] = gentypeinfo_463368((*p).module, dest.t);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3708), LOC23, 3);
	}
	LA1: ;
}

N_NIMCALL(NI, asgncomplexity_478805)(Tnode190813* n) {
	NI result;
	result = 0;
	{
		if (!!((n == NIM_NIL))) goto LA3;
		switch ((*n).kind) {
		case ((NU8) 3):
		{
			result = ((NI) 1);
		}
		break;
		case ((NU8) 139):
		{
			result = ((NI) 100);
		}
		break;
		case ((NU8) 138):
		{
			{
				Tnode190813* t_478822;
				t_478822 = 0;
				{
					NI i_478836;
					NI HEX3Atmp_478838;
					NI LOC10;
					NI res_478840;
					i_478836 = 0;
					HEX3Atmp_478838 = 0;
					LOC10 = 0;
					LOC10 = len_191097(n);
					HEX3Atmp_478838 = (LOC10 - 1);
					res_478840 = ((NI) 0);
					{
						while (1) {
							NI LOC13;
							if (!(res_478840 <= HEX3Atmp_478838)) goto LA12;
							i_478836 = res_478840;
							t_478822 = (*n).kindU.S6.sons->data[i_478836];
							LOC13 = 0;
							LOC13 = asgncomplexity_478805(t_478822);
							result += LOC13;
							res_478840 += ((NI) 1);
						} LA12: ;
					}
				}
			}
		}
		break;
		default:
		{
		}
		break;
		}
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, genoptasgnobject_479100)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags, Tnode190813* t) {
	NU8 newflags;
{	{
		if (!(t == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!(src.k == ((NU8) 8))) goto LA7;
		newflags = (flags | 1);
	}
	goto LA5;
	LA7: ;
	{
		if (!(((*dest.t).flags &(1<<((((NU8) 6))&31)))!=0)) goto LA10;
		newflags = (flags & ~ 1);
	}
	goto LA5;
	LA10: ;
	{
		newflags = flags;
	}
	LA5: ;
	switch ((*t).kind) {
	case ((NU8) 3):
	{
		Tsym190843* field;
		Tloc190827 LOC14;
		Tloc190827 LOC15;
		field = (*t).kindU.S4.sym;
		memset((void*)(&LOC14), 0, sizeof(LOC14));
		optasgnloc_478858(dest, (*field).typ, (*field).loc.r, (&LOC14));
		memset((void*)(&LOC15), 0, sizeof(LOC15));
		optasgnloc_478858(src, (*field).typ, (*field).loc.r, (&LOC15));
		genassignment_466906(p, LOC14, LOC15, newflags);
	}
	break;
	case ((NU8) 138):
	{
		{
			Tnode190813* child_479171;
			child_479171 = 0;
			{
				NI i_479176;
				NI HEX3Atmp_479178;
				NI LOC19;
				NI res_479180;
				i_479176 = 0;
				HEX3Atmp_479178 = 0;
				LOC19 = 0;
				LOC19 = len_191097(t);
				HEX3Atmp_479178 = (LOC19 - 1);
				res_479180 = ((NI) 0);
				{
					while (1) {
						if (!(res_479180 <= HEX3Atmp_479178)) goto LA21;
						i_479176 = res_479180;
						child_479171 = (*t).kindU.S6.sons->data[i_479176];
						genoptasgnobject_479100(p, dest, src, newflags, child_479171);
						res_479180 += ((NI) 1);
					} LA21: ;
				}
			}
		}
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, genassignment_466906)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src, NU8 flags) {
	Ttype190849* ty;
{	{
		NIM_BOOL LOC3;
		TY490436 LOC7;
		LOC3 = 0;
		LOC3 = !((src.t == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*src.t).kind == ((NU8) 21));
		LA4: ;
		if (!LOC3) goto LA5;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = rdloc_465593(dest);
		LOC7[1] = rdloc_465593(src);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC7, 2);
		goto BeforeRet;
	}
	LA5: ;
	ty = skiptypes_194167(dest.t, IL64(211106233624832));
	switch ((*ty).kind) {
	case ((NU8) 22):
	{
		genrefassign_465750(p, dest, src, flags);
	}
	break;
	case ((NU8) 24):
	{
		{
			NIM_BOOL LOC12;
			LOC12 = 0;
			LOC12 = !(((flags &(1<<((((NU8) 0))&7)))!=0));
			if (!(LOC12)) goto LA13;
			LOC12 = !((src.k == ((NU8) 8)));
			LA13: ;
			if (!LOC12) goto LA14;
			genrefassign_465750(p, dest, src, flags);
		}
		goto LA10;
		LA14: ;
		{
			TY462569 LOC17;
			memset((void*)LOC17, 0, sizeof(LOC17));
			LOC17[0] = addrloc_465615(dest);
			LOC17[1] = rdloc_465593(src);
			LOC17[2] = gentypeinfo_463368((*p).module, dest.t);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3697), LOC17, 3);
		}
		LA10: ;
	}
	break;
	case ((NU8) 28):
	{
		{
			NIM_BOOL LOC21;
			LOC21 = 0;
			LOC21 = !(((flags &(1<<((((NU8) 0))&7)))!=0));
			if (!(LOC21)) goto LA22;
			LOC21 = !((src.k == ((NU8) 8)));
			LA22: ;
			if (!LOC21) goto LA23;
			genrefassign_465750(p, dest, src, flags);
		}
		goto LA19;
		LA23: ;
		{
			{
				NIM_BOOL LOC28;
				NIM_BOOL LOC30;
				TY490436 LOC33;
				LOC28 = 0;
				LOC28 = (dest.s == ((NU8) 1));
				if (LOC28) goto LA29;
				LOC30 = 0;
				LOC30 = usesnativegc_154184();
				LOC28 = !(LOC30);
				LA29: ;
				if (!LOC28) goto LA31;
				memset((void*)LOC33, 0, sizeof(LOC33));
				LOC33[0] = rdloc_465593(dest);
				LOC33[1] = rdloc_465593(src);
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3698), LOC33, 2);
				{
					if (!((flags &(1<<((((NU8) 6))&7)))!=0)) goto LA36;
					keepalive_465907(p, dest);
				}
				LA36: ;
			}
			goto LA26;
			LA31: ;
			{
				Tloc190827 tmp;
				TY462569 LOC41;
				TY161572 LOC42;
				if (!(dest.s == ((NU8) 2))) goto LA39;
				memset((void*)(&tmp), 0, sizeof(tmp));
				gettemp_464444(p, ty, (&tmp), NIM_FALSE);
				memset((void*)LOC41, 0, sizeof(LOC41));
				LOC41[0] = rdloc_465593(dest);
				LOC41[1] = rdloc_465593(src);
				LOC41[2] = rdloc_465593(tmp);
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3699), LOC41, 3);
				memset((void*)LOC42, 0, sizeof(LOC42));
				LOC42[0] = rdloc_465593(tmp);
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3700), LOC42, 1);
			}
			goto LA26;
			LA39: ;
			{
				TY490436 LOC44;
				memset((void*)LOC44, 0, sizeof(LOC44));
				LOC44[0] = addrloc_465615(dest);
				LOC44[1] = rdloc_465593(src);
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3701), LOC44, 2);
				{
					if (!((flags &(1<<((((NU8) 6))&7)))!=0)) goto LA47;
					keepalive_465907(p, dest);
				}
				LA47: ;
			}
			LA26: ;
		}
		LA19: ;
	}
	break;
	case ((NU8) 25):
	{
		{
			NIM_BOOL LOC52;
			Tloc190827 a;
			Ropeobj161009* LOC55;
			Tloc190827 LOC56;
			Tloc190827 b;
			Ropeobj161009* LOC57;
			Tloc190827 LOC58;
			TY490436 LOC59;
			LOC52 = 0;
			LOC52 = needscomplexassignment_460903(dest.t);
			if (!LOC52) goto LA53;
			memset((void*)(&a), 0, sizeof(a));
			LOC55 = 0;
			LOC55 = rope_161320(((NimStringDesc*) &TMP3703));
			memset((void*)(&LOC56), 0, sizeof(LOC56));
			optasgnloc_478858(dest, dest.t, LOC55, (&LOC56));
			memcpy((void*)(&a), (NIM_CONST void*)(&LOC56), sizeof(a));
			memset((void*)(&b), 0, sizeof(b));
			LOC57 = 0;
			LOC57 = rope_161320(((NimStringDesc*) &TMP3703));
			memset((void*)(&LOC58), 0, sizeof(LOC58));
			optasgnloc_478858(src, dest.t, LOC57, (&LOC58));
			memcpy((void*)(&b), (NIM_CONST void*)(&LOC58), sizeof(b));
			genrefassign_465750(p, a, b, flags);
			memset((void*)LOC59, 0, sizeof(LOC59));
			LOC59[0] = rdloc_465593(dest);
			LOC59[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3704), LOC59, 2);
		}
		goto LA50;
		LA53: ;
		{
			TY490436 LOC61;
			memset((void*)LOC61, 0, sizeof(LOC61));
			LOC61[0] = rdloc_465593(dest);
			LOC61[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC61, 2);
		}
		LA50: ;
	}
	break;
	case ((NU8) 18):
	{
		{
			NIM_BOOL LOC65;
			LOC65 = 0;
			LOC65 = needscomplexassignment_460903(dest.t);
			if (!LOC65) goto LA66;
			{
				NI LOC70;
				LOC70 = 0;
				LOC70 = len_193377(dest.t);
				if (!(LOC70 <= ((NI) 4))) goto LA71;
				genoptasgntuple_479004(p, dest, src, flags);
			}
			goto LA68;
			LA71: ;
			{
				gengenericasgn_479198(p, dest, src, flags);
			}
			LA68: ;
		}
		goto LA63;
		LA66: ;
		{
			TY490436 LOC75;
			memset((void*)LOC75, 0, sizeof(LOC75));
			LOC75[0] = rdloc_465593(dest);
			LOC75[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC75, 2);
		}
		LA63: ;
	}
	break;
	case ((NU8) 17):
	{
		{
			NIM_BOOL LOC79;
			TY490436 LOC82;
			LOC79 = 0;
			LOC79 = isimportedcpptype_460867(ty);
			if (!LOC79) goto LA80;
			memset((void*)LOC82, 0, sizeof(LOC82));
			LOC82[0] = rdloc_465593(dest);
			LOC82[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC82, 2);
		}
		goto LA77;
		LA80: ;
		{
			NIM_BOOL LOC84;
			LOC84 = 0;
			LOC84 = isobjlackingtypefield_460910(ty);
			if (!!(LOC84)) goto LA85;
			gengenericasgn_479198(p, dest, src, flags);
		}
		goto LA77;
		LA85: ;
		{
			NIM_BOOL LOC88;
			LOC88 = 0;
			LOC88 = needscomplexassignment_460903(ty);
			if (!LOC88) goto LA89;
			{
				NIM_BOOL LOC93;
				NI LOC95;
				Ropeobj161009* LOC98;
				LOC93 = 0;
				LOC93 = (*ty).sons->data[((NI) 0)] == 0;
				if (!(LOC93)) goto LA94;
				LOC95 = 0;
				LOC95 = asgncomplexity_478805((*ty).n);
				LOC93 = (LOC95 <= ((NI) 4));
				LA94: ;
				if (!LOC93) goto LA96;
				LOC98 = 0;
				LOC98 = gettypedesc_463073((*p).module, ty);
				ty = getuniquetype_454656(ty);
				{
					NimStringDesc* LOC103;
					if (!!(!(((*ty).n == NIM_NIL)))) goto LA101;
					LOC103 = 0;
					LOC103 = HEX24_165306(TMP3709);
					internalerror_165218(LOC103);
				}
				LA101: ;
				genoptasgnobject_479100(p, dest, src, flags, (*ty).n);
			}
			goto LA91;
			LA96: ;
			{
				gengenericasgn_479198(p, dest, src, flags);
			}
			LA91: ;
		}
		goto LA77;
		LA89: ;
		{
			TY490436 LOC106;
			memset((void*)LOC106, 0, sizeof(LOC106));
			LOC106[0] = rdloc_465593(dest);
			LOC106[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC106, 2);
		}
		LA77: ;
	}
	break;
	case ((NU8) 16):
	case ((NU8) 4):
	{
		{
			NIM_BOOL LOC110;
			LOC110 = 0;
			LOC110 = needscomplexassignment_460903(dest.t);
			if (!LOC110) goto LA111;
			gengenericasgn_479198(p, dest, src, flags);
		}
		goto LA108;
		LA111: ;
		{
			TY490436 LOC114;
			usestringh_459390((*p).module);
			memset((void*)LOC114, 0, sizeof(LOC114));
			LOC114[0] = rdloc_465593(dest);
			LOC114[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3711), LOC114, 2);
		}
		LA108: ;
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		{
			NIM_BOOL LOC118;
			TY462569 LOC121;
			LOC118 = 0;
			LOC118 = needscomplexassignment_460903(dest.t);
			if (!LOC118) goto LA119;
			memset((void*)LOC121, 0, sizeof(LOC121));
			LOC121[0] = addrloc_465615(dest);
			LOC121[1] = addrloc_465615(src);
			LOC121[2] = gentypeinfo_463368((*p).module, dest.t);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3712), LOC121, 3);
		}
		goto LA116;
		LA119: ;
		{
			TY490436 LOC123;
			usestringh_459390((*p).module);
			memset((void*)LOC123, 0, sizeof(LOC123));
			LOC123[0] = rdloc_465593(dest);
			LOC123[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3713), LOC123, 2);
		}
		LA116: ;
	}
	break;
	case ((NU8) 19):
	{
		{
			NU8 LOC127;
			TY462569 LOC130;
			NI64 LOC131;
			LOC127 = 0;
			LOC127 = maptype_460778(ty);
			if (!(LOC127 == ((NU8) 17))) goto LA128;
			usestringh_459390((*p).module);
			memset((void*)LOC130, 0, sizeof(LOC130));
			LOC130[0] = rdloc_465593(dest);
			LOC130[1] = rdloc_465593(src);
			LOC131 = 0;
			LOC131 = getsize_220190(dest.t);
			LOC130[2] = rope_161407(LOC131);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3714), LOC130, 3);
		}
		goto LA125;
		LA128: ;
		{
			TY490436 LOC133;
			memset((void*)LOC133, 0, sizeof(LOC133));
			LOC133[0] = rdloc_465593(dest);
			LOC133[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC133, 2);
		}
		LA125: ;
	}
	break;
	case ((NU8) 21):
	case ((NU8) 26):
	case ((NU8) 2):
	case ((NU8) 1):
	case ((NU8) 14):
	case ((NU8) 29):
	case ((NU8) 31) ... ((NU8) 44):
	case ((NU8) 20):
	case ((NU8) 23):
	{
		TY490436 LOC135;
		memset((void*)LOC135, 0, sizeof(LOC135));
		LOC135[0] = rdloc_465593(dest);
		LOC135[1] = rdloc_465593(src);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC135, 2);
	}
	break;
	default:
	{
		NimStringDesc* LOC137;
		LOC137 = 0;
		LOC137 = rawNewString(reprEnum((*ty).kind, (&NTI190260))->Sup.len + 15);
appendString(LOC137, ((NimStringDesc*) &TMP3715));
appendString(LOC137, reprEnum((*ty).kind, (&NTI190260)));
		internalerror_165218(LOC137);
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, putlocintodest_466897)(Tcproc456034* p, Tloc190827* d, Tloc190827 s) {
	{
		if (!!(((*d).k == ((NU8) 0)))) goto LA3;
		{
			if (!(((*d).flags &(1<<((((NU8) 2))&15)))!=0)) goto LA7;
			genassignment_466906(p, (*d), s, 0);
		}
		goto LA5;
		LA7: ;
		{
			genassignment_466906(p, (*d), s, 1);
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		genericAssign((void*)(&(*d)), (void*)(&s), (&NTI190827));
	}
	LA1: ;
}

static N_INLINE(NIM_BOOL, emulatedthreadvars_460382)(void) {
	NIM_BOOL result;
	result = 0;
	result = ((35651584 & ~ gglobaloptions_154128)==0);
	return result;
}

N_NIMCALL(void, declarethreadvar_466271)(Tcgen456038* m, Tsym190843* s, NIM_BOOL isextern) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = emulatedthreadvars_460382();
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			TY490436 LOC11;
			LOC8 = 0;
			LOC8 = containsorincl_187898((&nimtvdeclared_466270), (*s).Sup.id);
			if (!!(LOC8)) goto LA9;
			nimtvdeps_466269 = (Ttypeseq190845*) incrSeq(&(nimtvdeps_466269)->Sup, sizeof(Ttype190849*));
			asgnRefNoCycle((void**) (&nimtvdeps_466269->data[nimtvdeps_466269->Sup.len-1]), (*s).loc.t);
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = gettypedesc_463073(m, (*s).loc.t);
			LOC11[1] = (*s).loc.r;
			addf_162635(&nimtv_466251, ((NimStringDesc*) &TMP3529), LOC11, 2);
		}
		LA9: ;
	}
	goto LA1;
	LA4: ;
	{
		Ropeobj161009* LOC21;
		TY161572 LOC22;
		{
			if (!isextern) goto LA15;
			add_161545(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3717));
		}
		LA15: ;
		{
			if (!((gglobaloptions_154128 &(1<<((((NU8) 21))&31)))!=0)) goto LA19;
			add_161545(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3718));
		}
		LA19: ;
		LOC21 = 0;
		LOC21 = gettypedesc_463073(m, (*s).loc.t);
		add_161534(&(*m).s[(((NU8) 9))- 0], LOC21);
		memset((void*)LOC22, 0, sizeof(LOC22));
		LOC22[0] = (*s).loc.r;
		addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3719), LOC22, 1);
	}
	LA1: ;
}

N_NIMCALL(void, genvarprototypeaux_472678)(Tcgen456038* m, Tsym190843* sym) {
	Ropeobj161009* LOC1;
{	useheader_459400(m, sym);
	LOC1 = 0;
	LOC1 = manglename_460425(sym);
	fillloc_459315((&(*sym).loc), ((NU8) 3), (*sym).typ, LOC1, ((NU8) 2));
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = (((*sym).loc.flags &(1<<((((NU8) 3))&15)))!=0);
		if (LOC4) goto LA5;
		LOC4 = containsorincl_187898((&(*m).declaredthings), (*sym).Sup.id);
		LA5: ;
		if (!LOC4) goto LA6;
		goto BeforeRet;
	}
	LA6: ;
	{
		if (!!(((*(*sym).owner).Sup.id == (*(*m).module).Sup.id))) goto LA10;
		{
			if (!(((*sym).flags &(1<<((((NU8) 22))&31)))!=0)) goto LA14;
			declarethreadvar_466271(m, sym, NIM_TRUE);
		}
		goto LA12;
		LA14: ;
		{
			Ropeobj161009* LOC17;
			TY161572 LOC30;
			add_161545(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3717));
			LOC17 = 0;
			LOC17 = gettypedesc_463073(m, (*sym).loc.t);
			add_161534(&(*m).s[(((NU8) 9))- 0], LOC17);
			{
				if (!(((*sym).loc.flags &(1<<((((NU8) 4))&15)))!=0)) goto LA20;
				add_161545(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3528));
			}
			LA20: ;
			{
				if (!(((*sym).flags &(1<<((((NU8) 8))&31)))!=0)) goto LA24;
				add_161545(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3597));
			}
			LA24: ;
			{
				if (!(((*sym).flags &(1<<((((NU8) 7))&31)))!=0)) goto LA28;
				add_161545(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3598));
			}
			LA28: ;
			memset((void*)LOC30, 0, sizeof(LOC30));
			LOC30[0] = (*sym).loc.r;
			addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3719), LOC30, 1);
		}
		LA12: ;
	}
	LA10: ;
	}BeforeRet: ;
}

N_NIMCALL(void, genvarprototype_466860)(Tcgen456038* m, Tsym190843* sym) {
	genvarprototypeaux_472678(m, sym);
}

N_NIMCALL(NIM_BOOL, issimpleconst_459350)(Ttype190849* typ) {
	NIM_BOOL result;
	Ttype190849* t;
	NIM_BOOL LOC1;
	NIM_BOOL LOC3;
	result = 0;
	t = skiptypes_194167(typ, IL64(211106240964864));
	LOC1 = 0;
	LOC1 = !(((*t).kind == ((NU8) 18) || (*t).kind == ((NU8) 17) || (*t).kind == ((NU8) 16) || (*t).kind == ((NU8) 4) || (*t).kind == ((NU8) 19) || (*t).kind == ((NU8) 24)));
	if (!(LOC1)) goto LA2;
	LOC3 = 0;
	LOC3 = ((*t).kind == ((NU8) 25));
	if (!(LOC3)) goto LA4;
	LOC3 = ((*t).callconv == ((NU8) 8));
	LA4: ;
	LOC1 = !(LOC3);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, initloc_459300)(Tloc190827* result, NU8 k, Ttype190849* typ, NU8 s) {
	(*result).k = k;
	(*result).s = s;
	unsureAsgnRef((void**) (&(*result).t), typ);
	unsureAsgnRef((void**) (&(*result).r), NIM_NIL);
	(*result).flags = 0;
}

N_NIMCALL(void, putintodest_479562)(Tcproc456034* p, Tloc190827* d, Ttype190849* t, Ropeobj161009* r) {
	Tloc190827 a;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!!(((*d).k == ((NU8) 0)))) goto LA3;
		initloc_459300((&a), ((NU8) 6), t, ((NU8) 0));
		a.r = r;
		{
			if (!(((*d).flags &(1<<((((NU8) 2))&15)))!=0)) goto LA7;
			genassignment_466906(p, (*d), a, 0);
		}
		goto LA5;
		LA7: ;
		{
			genassignment_466906(p, (*d), a, 1);
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		(*d).k = ((NU8) 6);
		unsureAsgnRef((void**) (&(*d).t), t);
		unsureAsgnRef((void**) (&(*d).r), r);
	}
	LA1: ;
}

N_NIMCALL(Tcgen456038*, findpendingmodule_459256)(Tcgen456038* m, Tsym190843* s) {
	Tcgen456038* result;
	Tsym190843* ms;
	result = 0;
	ms = getmodule_198243(s);
	result = gmodules_456172->data[(*ms).position];
	return result;
}

N_NIMCALL(NI64, bitsettoword_478435)(Tbitset239012* s, NI size) {
	NI64 result;
	result = 0;
	result = IL64(0);
	{
		NI j_478613;
		NI HEX3Atmp_478623;
		NI res_478626;
		j_478613 = 0;
		HEX3Atmp_478623 = 0;
		HEX3Atmp_478623 = (NI)(size - ((NI) 1));
		res_478626 = ((NI) 0);
		{
			while (1) {
				if (!(res_478626 <= HEX3Atmp_478623)) goto LA3;
				j_478613 = res_478626;
				{
					if (!(j_478613 < (s ? s->Sup.len : 0))) goto LA6;
					result = (NI64)(result | (NI64)((NU64)(((NI64)(NU64)(NU8)(s->data[j_478613]))) << (NU64)(((NI64) ((NI)(j_478613 * ((NI) 8)))))));
				}
				LA6: ;
				res_478626 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}

N_NIMCALL(Ropeobj161009*, genrawsetdata_478642)(Tbitset239012* cs, NI size) {
	Ropeobj161009* result;
	NimStringDesc* frmt;
	result = 0;
	frmt = 0;
	{
		TY460664 LOC5;
		if (!(((NI) 8) < size)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		result = HEX25_162235(((NimStringDesc*) &TMP3721), LOC5, 0);
		{
			NI i_478663;
			NI HEX3Atmp_478671;
			NI res_478674;
			i_478663 = 0;
			HEX3Atmp_478671 = 0;
			HEX3Atmp_478671 = (NI)(size - ((NI) 1));
			res_478674 = ((NI) 0);
			{
				while (1) {
					TY161572 LOC19;
					NimStringDesc* LOC20;
					if (!(res_478674 <= HEX3Atmp_478671)) goto LA8;
					i_478663 = res_478674;
					{
						if (!(i_478663 < (NI)(size - ((NI) 1)))) goto LA11;
						{
							if (!(((NI) ((NI)((NI)(i_478663 + ((NI) 1)) % ((NI) 8)))) == ((NI) 0))) goto LA15;
							frmt = copyString(((NimStringDesc*) &TMP3722));
						}
						goto LA13;
						LA15: ;
						{
							frmt = copyString(((NimStringDesc*) &TMP3723));
						}
						LA13: ;
					}
					goto LA9;
					LA11: ;
					{
						frmt = copyString(((NimStringDesc*) &TMP3724));
					}
					LA9: ;
					memset((void*)LOC19, 0, sizeof(LOC19));
					LOC20 = 0;
					LOC20 = nsuToHex(((NI64)(NU64)(NU8)(cs->data[i_478663])), ((NI) 2));
					LOC19[0] = rope_161320(LOC20);
					addf_162635(&result, frmt, LOC19, 1);
					res_478674 += ((NI) 1);
				} LA8: ;
			}
		}
	}
	goto LA1;
	LA3: ;
	{
		NI64 LOC22;
		LOC22 = 0;
		LOC22 = bitsettoword_478435(cs, size);
		result = intliteral_466915(LOC22);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, appcg_459894)(Tcgen456038* m, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009* LOC1;
	LOC1 = 0;
	LOC1 = ropecg_459616(m, frmt, args, argsLen0);
	add_161534(&(*m).s[(s)- 0], LOC1);
}

N_NIMCALL(Ropeobj161009*, genconstseq_488958)(Tcproc456034* p, Tnode190813* n, Ttype190849* t) {
	Ropeobj161009* result;
	Ropeobj161009* data;
	TY161572 LOC1;
	NI LOC2;
	Ropeobj161009* LOC18;
	TY462566 LOC19;
	NI LOC20;
	TY490436 LOC21;
	result = 0;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = len_191097(n);
	LOC1[0] = rope_161407(((NI64) (LOC2)));
	data = HEX25_162235(((NimStringDesc*) &TMP3725), LOC1, 1);
	{
		NI LOC5;
		LOC5 = 0;
		LOC5 = len_191097(n);
		if (!(((NI) 0) < LOC5)) goto LA6;
		add_161545(&data, ((NimStringDesc*) &TMP3726));
		{
			NI i_488983;
			NI HEX3Atmp_489008;
			NI LOC9;
			NI res_489011;
			i_488983 = 0;
			HEX3Atmp_489008 = 0;
			LOC9 = 0;
			LOC9 = len_191097(n);
			HEX3Atmp_489008 = (NI)(LOC9 - ((NI) 1));
			res_489011 = ((NI) 0);
			{
				while (1) {
					Ropeobj161009* LOC17;
					if (!(res_489011 <= HEX3Atmp_489008)) goto LA11;
					i_488983 = res_489011;
					{
						TY460664 LOC16;
						if (!(((NI) 0) < i_488983)) goto LA14;
						memset((void*)LOC16, 0, sizeof(LOC16));
						addf_162635(&data, ((NimStringDesc*) &TMP3727), LOC16, 0);
					}
					LA14: ;
					LOC17 = 0;
					LOC17 = genconstexpr_487301(p, (*n).kindU.S6.sons->data[i_488983]);
					add_161534(&data, LOC17);
					res_489011 += ((NI) 1);
				} LA11: ;
			}
		}
		add_161545(&data, ((NimStringDesc*) &TMP3728));
	}
	LA6: ;
	add_161545(&data, ((NimStringDesc*) &TMP3728));
	gbackendid_189013 += ((NI) 1);
	LOC18 = 0;
	LOC18 = rope_161407(((NI64) (gbackendid_189013)));
	result = HEX26_161482(((NimStringDesc*) &TMP3729), LOC18);
	memset((void*)LOC19, 0, sizeof(LOC19));
	LOC19[0] = gettypedesc_463073((*p).module, (*t).sons->data[((NI) 0)]);
	LOC20 = 0;
	LOC20 = len_191097(n);
	LOC19[1] = rope_161407(((NI64) (LOC20)));
	LOC19[2] = result;
	LOC19[3] = data;
	appcg_459894((*p).module, ((NU8) 8), ((NimStringDesc*) &TMP3730), LOC19, 4);
	memset((void*)LOC21, 0, sizeof(LOC21));
	LOC21[0] = gettypedesc_463073((*p).module, t);
	LOC21[1] = result;
	result = HEX25_162235(((NimStringDesc*) &TMP3731), LOC21, 2);
	return result;
}

N_NIMCALL(Ropeobj161009*, gennamedconstexpr_488890)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		result = genconstexpr_487301(p, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	goto LA1;
	LA3: ;
	{
		result = genconstexpr_487301(p, n);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, genconstsimplelist_488908)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	NI length;
	TY460664 LOC10;
	result = 0;
	length = sonslen_193403(n);
	result = rope_161320(((NimStringDesc*) &TMP3732));
	{
		NI i_488926;
		NI HEX3Atmp_488938;
		NI res_488941;
		i_488926 = 0;
		HEX3Atmp_488938 = 0;
		HEX3Atmp_488938 = (NI)(length - ((NI) 2));
		res_488941 = ((NI) 0);
		{
			while (1) {
				TY161572 LOC4;
				if (!(res_488941 <= HEX3Atmp_488938)) goto LA3;
				i_488926 = res_488941;
				memset((void*)LOC4, 0, sizeof(LOC4));
				LOC4[0] = gennamedconstexpr_488890(p, (*n).kindU.S6.sons->data[i_488926]);
				addf_162635(&result, ((NimStringDesc*) &TMP3733), LOC4, 1);
				res_488941 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		Ropeobj161009* LOC9;
		if (!(((NI) 0) < length)) goto LA7;
		LOC9 = 0;
		LOC9 = gennamedconstexpr_488890(p, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
		add_161534(&result, LOC9);
	}
	LA7: ;
	memset((void*)LOC10, 0, sizeof(LOC10));
	addf_162635(&result, ((NimStringDesc*) &TMP3635), LOC10, 0);
	return result;
}

N_NIMCALL(void, initlocexpr_466937)(Tcproc456034* p, Tnode190813* e, Tloc190827* result) {
	initloc_459300(result, ((NU8) 0), (*e).typ, ((NU8) 0));
	expr_466881(p, e, result);
}

N_NIMCALL(Ropeobj161009*, genconstexpr_487301)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	result = 0;
	switch ((*n).kind) {
	case ((NU8) 58):
	case ((NU8) 59):
	{
		result = genconstexpr_487301(p, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 39):
	{
		Tbitset239012* cs;
		NI64 LOC3;
		cs = 0;
		tobitset_240004(n, (&cs));
		LOC3 = 0;
		LOC3 = getsize_220190((*n).typ);
		result = genrawsetdata_478642(cs, ((NI) (LOC3)));
	}
	break;
	case ((NU8) 41):
	case ((NU8) 37):
	case ((NU8) 155):
	case ((NU8) 38):
	{
		Ttype190849* t;
		t = skiptypes_194167((*n).typ, IL64(211106232576256));
		{
			if (!((*t).kind == ((NU8) 24))) goto LA7;
			result = genconstseq_488958(p, n, t);
		}
		goto LA5;
		LA7: ;
		{
			result = genconstsimplelist_488908(p, n);
		}
		LA5: ;
	}
	break;
	default:
	{
		Tloc190827 d;
		memset((void*)(&d), 0, sizeof(d));
		initlocexpr_466937(p, n, (&d));
		result = rdloc_465593(d);
	}
	break;
	}
	return result;
}

N_NIMCALL(void, requestconstimpl_466867)(Tcproc456034* p, Tsym190843* sym) {
	Tcgen456038* m;
	Tcgen456038* q;
{	m = (*p).module;
	useheader_459400(m, sym);
	{
		Ropeobj161009* LOC5;
		if (!((*sym).loc.k == ((NU8) 0))) goto LA3;
		LOC5 = 0;
		LOC5 = manglename_460425(sym);
		fillloc_459315((&(*sym).loc), ((NU8) 8), (*sym).typ, LOC5, ((NU8) 0));
	}
	LA3: ;
	{
		if (!(((*sym).loc.flags &(1<<((((NU8) 3))&15)))!=0)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	q = findpendingmodule_459256(m, sym);
	{
		NIM_BOOL LOC12;
		NIM_BOOL LOC14;
		TY462569 LOC17;
		LOC12 = 0;
		LOC12 = !((q == NIM_NIL));
		if (!(LOC12)) goto LA13;
		LOC14 = 0;
		LOC14 = containsorincl_187898((&(*q).declaredthings), (*sym).Sup.id);
		LOC12 = !(LOC14);
		LA13: ;
		if (!LOC12) goto LA15;
		memset((void*)LOC17, 0, sizeof(LOC17));
		LOC17[0] = gettypedesc_463073(q, (*sym).typ);
		LOC17[1] = (*sym).loc.r;
		LOC17[2] = genconstexpr_487301((*q).initproc, (*sym).ast);
		addf_162635(&(*q).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3720), LOC17, 3);
	}
	LA15: ;
	{
		NIM_BOOL LOC20;
		NIM_BOOL LOC22;
		Ropeobj161009* headerdecl;
		TY490436 LOC25;
		LOC20 = 0;
		LOC20 = !((q == m));
		if (!(LOC20)) goto LA21;
		LOC22 = 0;
		LOC22 = containsorincl_187898((&(*m).declaredthings), (*sym).Sup.id);
		LOC20 = !(LOC22);
		LA21: ;
		if (!LOC20) goto LA23;
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = gettypedesc_463073(m, (*sym).loc.t);
		LOC25[1] = (*sym).loc.r;
		headerdecl = HEX25_162235(((NimStringDesc*) &TMP3734), LOC25, 2);
		add_161534(&(*m).s[(((NU8) 8))- 0], headerdecl);
		{
			NIM_BOOL LOC28;
			LOC28 = 0;
			LOC28 = (((*sym).flags &(1<<((((NU8) 6))&31)))!=0);
			if (!(LOC28)) goto LA29;
			LOC28 = !((generatedheader_459201 == NIM_NIL));
			LA29: ;
			if (!LOC28) goto LA30;
			add_161534(&(*generatedheader_459201).s[(((NU8) 8))- 0], headerdecl);
		}
		LA30: ;
	}
	LA23: ;
	}BeforeRet: ;
}

N_NIMCALL(void, gencomplexconst_487885)(Tcproc456034* p, Tsym190843* sym, Tloc190827* d) {
	requestconstimpl_466867(p, sym);
	putlocintodest_466897(p, d, (*sym).loc);
}

static N_INLINE(Ropeobj161009**, procsec_456205)(Tcproc456034* p, NU8 s) {
	Ropeobj161009** result;
	result = 0;
	result = &(*p).blocks->data[((NI) 0)].sections[(s)- 0];
	return result;
}

N_NIMCALL(void, accessthreadlocalvar_460375)(Tcproc456034* p, Tsym190843* s) {
	{
		NIM_BOOL LOC3;
		Ropeobj161009** LOC7;
		TY460664 LOC8;
		Ropeobj161009** LOC9;
		TY460664 LOC10;
		Ropeobj161009* LOC11;
		LOC3 = 0;
		LOC3 = emulatedthreadvars_460382();
		if (!(LOC3)) goto LA4;
		LOC3 = !((*p).threadvaraccessed);
		LA4: ;
		if (!LOC3) goto LA5;
		(*p).threadvaraccessed = NIM_TRUE;
		(*(*p).module).usesthreadvars = NIM_TRUE;
		LOC7 = 0;
		LOC7 = procsec_456205(p, ((NU8) 0));
		memset((void*)LOC8, 0, sizeof(LOC8));
		addf_162635(LOC7, ((NimStringDesc*) &TMP3736), LOC8, 0);
		LOC9 = 0;
		LOC9 = procsec_456205(p, ((NU8) 1));
		memset((void*)LOC10, 0, sizeof(LOC10));
		LOC11 = 0;
		LOC11 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3737), LOC10, 0);
		add_161534(LOC9, LOC11);
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isemptytype_195933)(Ttype190849* t) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = (t == NIM_NIL);
	if (LOC1) goto LA2;
	LOC1 = ((*t).kind == ((NU8) 3) || (*t).kind == ((NU8) 7));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, putdataintodest_479527)(Tcproc456034* p, Tloc190827* d, Ttype190849* t, Ropeobj161009* r) {
	Tloc190827 a;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!!(((*d).k == ((NU8) 0)))) goto LA3;
		initloc_459300((&a), ((NU8) 8), t, ((NU8) 0));
		a.r = r;
		{
			if (!(((*d).flags &(1<<((((NU8) 2))&15)))!=0)) goto LA7;
			genassignment_466906(p, (*d), a, 0);
		}
		goto LA5;
		LA7: ;
		{
			genassignment_466906(p, (*d), a, 1);
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		(*d).k = ((NU8) 8);
		unsureAsgnRef((void**) (&(*d).t), t);
		unsureAsgnRef((void**) (&(*d).r), r);
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, freshlineinfo_460230)(Tcproc456034* p, Tlineinfo163338 info) {
	NIM_BOOL result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*p).lastlineinfo.line == info.line));
		if (LOC3) goto LA4;
		LOC3 = !(((*p).lastlineinfo.fileindex == info.fileindex));
		LA4: ;
		if (!LOC3) goto LA5;
		(*p).lastlineinfo.line = info.line;
		(*p).lastlineinfo.fileindex = info.fileindex;
		result = NIM_TRUE;
	}
	LA5: ;
	return result;
}

N_NIMCALL(void, genlinedir_460241)(Tcproc456034* p, Tnode190813* t) {
	NI line;
	Ropeobj161009** LOC11;
	NimStringDesc* LOC12;
	line = safelinenm_460050((*t).info);
	{
		Ropeobj161009** LOC5;
		TY460664 LOC6;
		Ropeobj161009* LOC7;
		Ropeobj161009* LOC8;
		Ropeobj161009* LOC9;
		Ropeobj161009* LOC10;
		if (!((gglobaloptions_154128 &(1<<((((NU8) 27))&31)))!=0)) goto LA3;
		LOC5 = 0;
		LOC5 = s_456184(p, ((NU8) 2));
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC7 = 0;
		LOC7 = HEX25_162235(((NimStringDesc*) &TMP3743), LOC6, 0);
		LOC8 = 0;
		LOC8 = sourceline_163991((*t).info);
		LOC9 = 0;
		LOC9 = HEX26_161436(LOC7, LOC8);
		LOC10 = 0;
		LOC10 = HEX26_161436(LOC9, rnl_162227);
		add_161534(LOC5, LOC10);
	}
	LA3: ;
	LOC11 = 0;
	LOC11 = s_456184(p, ((NU8) 2));
	LOC12 = 0;
	LOC12 = tofullpath_164276((*t).info.fileindex);
	genclinedir_460060(LOC11, LOC12, line);
	{
		NIM_BOOL LOC15;
		NIM_BOOL LOC17;
		LOC15 = 0;
		LOC15 = ((163840 & (*p).options) == 163840);
		if (!(LOC15)) goto LA16;
		LOC17 = 0;
		LOC17 = ((*p).prc == NIM_NIL);
		if (LOC17) goto LA18;
		LOC17 = !((((*(*p).prc).flags &(1<<((((NU8) 9))&31)))!=0));
		LA18: ;
		LOC15 = LOC17;
		LA16: ;
		if (!LOC15) goto LA19;
		{
			NIM_BOOL LOC23;
			TY490436 LOC26;
			NimStringDesc* LOC27;
			LOC23 = 0;
			LOC23 = freshlineinfo_460230(p, (*t).info);
			if (!LOC23) goto LA24;
			memset((void*)LOC26, 0, sizeof(LOC26));
			LOC26[0] = rope_161407(((NI64) (line)));
			LOC27 = 0;
			LOC27 = tofilename_164266((*t).info.fileindex);
			LOC26[1] = makecstring_163449(LOC27);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3744), LOC26, 2);
		}
		LA24: ;
	}
	goto LA13;
	LA19: ;
	{
		NIM_BOOL LOC29;
		NIM_BOOL LOC30;
		NIM_BOOL LOC32;
		LOC29 = 0;
		LOC30 = 0;
		LOC30 = ((98304 & (*p).options) == 98304);
		if (!(LOC30)) goto LA31;
		LOC32 = 0;
		LOC32 = ((*p).prc == NIM_NIL);
		if (LOC32) goto LA33;
		LOC32 = !((((*(*p).prc).flags &(1<<((((NU8) 9))&31)))!=0));
		LA33: ;
		LOC30 = LOC32;
		LA31: ;
		LOC29 = LOC30;
		if (!(LOC29)) goto LA34;
		LOC29 = (((NI32) 0) <= (*t).info.fileindex);
		LA34: ;
		if (!LOC29) goto LA35;
		{
			NIM_BOOL LOC39;
			TY490436 LOC42;
			LOC39 = 0;
			LOC39 = freshlineinfo_460230(p, (*t).info);
			if (!LOC39) goto LA40;
			memset((void*)LOC42, 0, sizeof(LOC42));
			LOC42[0] = rope_161407(((NI64) (line)));
			LOC42[1] = quotedfilename_165354((*t).info);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3745), LOC42, 2);
		}
		LA40: ;
	}
	goto LA13;
	LA35: ;
	LA13: ;
}

N_NIMCALL(Ropeobj161009*, getlabel_466829)(Tcproc456034* p) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	result = 0;
	(*p).labels += ((NI) 1);
	LOC1 = 0;
	LOC1 = rope_161407(((NI64) ((*p).labels)));
	result = HEX26_161482(((NimStringDesc*) &TMP3747), LOC1);
	return result;
}

N_NIMCALL(void, fixlabel_466848)(Tcproc456034* p, Ropeobj161009* labl) {
	TY161572 LOC1;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = labl;
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3750), LOC1, 1);
}

N_NIMCALL(void, genandor_483538)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m) {
	Ropeobj161009* L;
	Tloc190827 tmp;
	L = 0;
	memset((void*)(&tmp), 0, sizeof(tmp));
	gettemp_464444(p, (*e).typ, (&tmp), NIM_FALSE);
	(*p).splitdecls += ((NI) 1);
	expr_466881(p, (*e).kindU.S6.sons->data[((NI) 1)], (&tmp));
	L = getlabel_466829(p);
	{
		TY490436 LOC5;
		if (!(m == ((NU16) 138))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rdloc_465593(tmp);
		LOC5[1] = L;
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3748), LOC5, 2);
	}
	goto LA1;
	LA3: ;
	{
		TY490436 LOC7;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = rdloc_465593(tmp);
		LOC7[1] = L;
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3749), LOC7, 2);
	}
	LA1: ;
	expr_466881(p, (*e).kindU.S6.sons->data[((NI) 2)], (&tmp));
	fixlabel_466848(p, L);
	{
		if (!((*d).k == ((NU8) 0))) goto LA10;
		genericAssign((void*)(&(*d)), (void*)(&tmp), (&NTI190827));
	}
	goto LA8;
	LA10: ;
	{
		genassignment_466906(p, (*d), tmp, 0);
	}
	LA8: ;
	(*p).splitdecls -= ((NI) 1);
}

N_NIMCALL(void, unaryarith_481852)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op) {
	Tloc190827 a;
	Ttype190849* t;
	TY462569 LOC1;
	NI64 LOC2;
	Ropeobj161009* LOC3;
	memset((void*)(&a), 0, sizeof(a));
	t = 0;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	t = skiptypes_194167((*e).typ, IL64(211106233624832));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	LOC2 = 0;
	LOC2 = getsize_220190(t);
	LOC1[1] = rope_161407((NI64)(LOC2 * IL64(8)));
	LOC1[2] = getsimpletypedesc_461345((*p).module, (*e).typ);
	LOC3 = 0;
	LOC3 = HEX25_162235(unarithtab_481859[(op)- 109], LOC1, 3);
	putintodest_479562(p, d, (*e).typ, LOC3);
}

N_NIMCALL(void, unaryarithoverflow_480827)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m) {
	Tloc190827 a;
	Ttype190849* t;
	TY490436 LOC7;
	NI64 LOC8;
	Ropeobj161009* LOC9;
	memset((void*)(&a), 0, sizeof(a));
	t = 0;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	t = skiptypes_194167((*e).typ, IL64(211106233624832));
	{
		TY490436 LOC5;
		NI64 LOC6;
		if (!(((*p).options &(1<<((((NU8) 5))&31)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rdloc_465593(a);
		LOC6 = 0;
		LOC6 = firstord_220004(t);
		LOC5[1] = intliteral_466915(LOC6);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3768), LOC5, 2);
	}
	LA3: ;
	memset((void*)LOC7, 0, sizeof(LOC7));
	LOC7[0] = rdloc_465593(a);
	LOC8 = 0;
	LOC8 = getsize_220190(t);
	LOC7[1] = rope_161407((NI64)(LOC8 * IL64(8)));
	LOC9 = 0;
	LOC9 = HEX25_162235(opr_480834[(m)- 105], LOC7, 2);
	putintodest_479562(p, d, (*e).typ, LOC9);
}

N_NIMCALL(void, binaryarith_481022)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op) {
	Tloc190827 a;
	Tloc190827 b;
	NI64 s;
	NI64 LOC1;
	NI64 LOC2;
	TY462566 LOC3;
	Ropeobj161009* LOC4;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	s = 0;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	LOC1 = 0;
	LOC1 = getsize_220190(a.t);
	LOC2 = 0;
	LOC2 = getsize_220190(b.t);
	s = (NI64)(((LOC1 >= LOC2) ? LOC1 : LOC2) * IL64(8));
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = rdloc_465593(a);
	LOC3[1] = rdloc_465593(b);
	LOC3[2] = rope_161407(s);
	LOC3[3] = getsimpletypedesc_461345((*p).module, (*e).typ);
	LOC4 = 0;
	LOC4 = HEX25_162235(binarithtab_481029[(op)- 53], LOC3, 4);
	putintodest_479562(p, d, (*e).typ, LOC4);
}

N_NIMCALL(void, binaryfloatarith_486366)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m) {
	{
		Tloc190827 a;
		Tloc190827 b;
		TY462566 LOC5;
		Tnode190813* LOC6;
		Ropeobj161009* LOC7;
		if (!!(((384 & (*p).options) == 0))) goto LA3;
		memset((void*)(&a), 0, sizeof(a));
		memset((void*)(&b), 0, sizeof(b));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rope_161320(opr_486400[(m)- 53]);
		LOC5[1] = rdloc_465593(a);
		LOC5[2] = rdloc_465593(b);
		LOC6 = 0;
		LOC6 = HEX5BHEX5D_191244(e, ((NI) 1));
		LOC5[3] = getsimpletypedesc_461345((*p).module, (*LOC6).typ);
		LOC7 = 0;
		LOC7 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3770), LOC5, 4);
		putintodest_479562(p, d, (*e).typ, LOC7);
		{
			TY161572 LOC12;
			if (!(((*p).options &(1<<((((NU8) 7))&31)))!=0)) goto LA10;
			memset((void*)LOC12, 0, sizeof(LOC12));
			LOC12[0] = rdloc_465593((*d));
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3774), LOC12, 1);
		}
		LA10: ;
		{
			TY161572 LOC17;
			if (!(((*p).options &(1<<((((NU8) 8))&31)))!=0)) goto LA15;
			memset((void*)LOC17, 0, sizeof(LOC17));
			LOC17[0] = rdloc_465593((*d));
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3775), LOC17, 1);
		}
		LA15: ;
	}
	goto LA1;
	LA3: ;
	{
		binaryarith_481022(p, e, d, m);
	}
	LA1: ;
}

N_NIMCALL(void, geneqproc_481417)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	{
		TY490436 LOC5;
		Ropeobj161009* LOC6;
		if (!((*a.t).callconv == ((NU8) 8))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rdloc_465593(a);
		LOC5[1] = rdloc_465593(b);
		LOC6 = 0;
		LOC6 = HEX25_162235(((NimStringDesc*) &TMP3805), LOC5, 2);
		putintodest_479562(p, d, (*e).typ, LOC6);
	}
	goto LA1;
	LA3: ;
	{
		TY490436 LOC8;
		Ropeobj161009* LOC9;
		memset((void*)LOC8, 0, sizeof(LOC8));
		LOC8[0] = rdloc_465593(a);
		LOC8[1] = rdloc_465593(b);
		LOC9 = 0;
		LOC9 = HEX25_162235(((NimStringDesc*) &TMP3794), LOC8, 2);
		putintodest_479562(p, d, (*e).typ, LOC9);
	}
	LA1: ;
}

N_NIMCALL(Ropeobj161009*, rdcharloc_465644)(Tloc190827 a) {
	Ropeobj161009* result;
	result = 0;
	result = rdloc_465593(a);
	{
		Ttype190849* LOC3;
		TY161572 LOC6;
		LOC3 = 0;
		LOC3 = skiptypes_194167(a.t, IL64(211106233624832));
		if (!((*LOC3).kind == ((NU8) 2))) goto LA4;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = result;
		result = HEX25_162235(((NimStringDesc*) &TMP3811), LOC6, 1);
	}
	LA4: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, binaryarithoverflowraw_480444)(Tcproc456034* p, Ttype190849* t, Tloc190827 a, Tloc190827 b, NimStringDesc* frmt) {
	Ropeobj161009* result;
	NI64 size;
	Ropeobj161009* storage;
	TY490436 LOC6;
	TY462569 LOC7;
	result = 0;
	size = getsize_220190(t);
	{
		if (!(size < ((NI64) (intsize_159623)))) goto LA3;
		storage = rope_161320(((NimStringDesc*) &TMP3516));
	}
	goto LA1;
	LA3: ;
	{
		storage = gettypedesc_463073((*p).module, t);
	}
	LA1: ;
	result = gettempname_461002();
	memset((void*)LOC6, 0, sizeof(LOC6));
	LOC6[0] = storage;
	LOC6[1] = result;
	linefmt_460023(p, ((NU8) 0), ((NimStringDesc*) &TMP3529), LOC6, 2);
	memset((void*)LOC7, 0, sizeof(LOC7));
	LOC7[0] = result;
	LOC7[1] = rdcharloc_465644(a);
	LOC7[2] = rdcharloc_465644(b);
	linecg_460010(p, ((NU8) 2), frmt, LOC7, 3);
	{
		NIM_BOOL LOC10;
		TY462569 LOC14;
		NI64 LOC15;
		NI64 LOC16;
		LOC10 = 0;
		LOC10 = (size < ((NI64) (intsize_159623)));
		if (LOC10) goto LA11;
		LOC10 = ((*t).kind == ((NU8) 20) || (*t).kind == ((NU8) 14));
		LA11: ;
		if (!LOC10) goto LA12;
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = result;
		LOC15 = 0;
		LOC15 = firstord_220004(t);
		LOC14[1] = intliteral_466915(LOC15);
		LOC16 = 0;
		LOC16 = lastord_220010(t);
		LOC14[2] = intliteral_466915(LOC16);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3812), LOC14, 3);
	}
	LA12: ;
	return result;
}

N_NIMCALL(void, binaryarithoverflow_480474)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 m) {
	Tloc190827 a;
	Tloc190827 b;
	Ttype190849* t;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	t = skiptypes_194167((*e).typ, IL64(211106233624832));
	{
		Ropeobj161009* res;
		TY462569 LOC5;
		if (!!((((*p).options &(1<<((((NU8) 5))&31)))!=0))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = gettypedesc_463073((*p).module, t);
		LOC5[1] = rdloc_465593(a);
		LOC5[2] = rdloc_465593(b);
		res = HEX25_162235(opr_480486[(m)- 41], LOC5, 3);
		putintodest_479562(p, d, (*e).typ, res);
	}
	goto LA1;
	LA3: ;
	{
		Ropeobj161009* res;
		TY490436 LOC7;
		Ropeobj161009* LOC8;
		res = binaryarithoverflowraw_480444(p, t, a, b, prc_480481[(m)- 41]);
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = gettypedesc_463073((*p).module, t);
		LOC7[1] = res;
		LOC8 = 0;
		LOC8 = HEX25_162235(((NimStringDesc*) &TMP3823), LOC7, 2);
		putintodest_479562(p, d, (*e).typ, LOC8);
	}
	LA1: ;
}

N_NIMCALL(Ropeobj161009*, lenfield_466971)(Tcproc456034* p) {
	Ropeobj161009* result;
	NimStringDesc* LOC1;
	result = 0;
	LOC1 = 0;
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = (gcmd_154130 == ((NU8) 2));
		if (LOC4) goto LA5;
		LOC4 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA5: ;
		if (!LOC4) goto LA6;
		LOC1 = copyString(((NimStringDesc*) &TMP3632));
	}
	goto LA2;
	LA6: ;
	{
		LOC1 = copyString(((NimStringDesc*) &TMP3633));
	}
	LA2: ;
	result = rope_161320(LOC1);
	return result;
}

N_NIMCALL(void, gcusage_483678)(Tnode190813* n) {
	{
		NimStringDesc* LOC5;
		if (!(gselectedgc_154131 == ((NU8) 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rendertree_212058(n, 0);
		message_165188((*n).info, ((NU16) 256), LOC5);
	}
	LA3: ;
}

N_NIMCALL(void, genrepr_484960)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* t;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	t = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106242013440));
	switch ((*t).kind) {
	case ((NU8) 31) ... ((NU8) 35):
	case ((NU8) 40) ... ((NU8) 44):
	{
		TY161572 LOC2;
		Ropeobj161009* LOC3;
		memset((void*)LOC2, 0, sizeof(LOC2));
		LOC2[0] = rdloc_465593(a);
		LOC3 = 0;
		LOC3 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3824), LOC2, 1);
		putintodest_479562(p, d, (*e).typ, LOC3);
	}
	break;
	case ((NU8) 36) ... ((NU8) 39):
	{
		TY161572 LOC5;
		Ropeobj161009* LOC6;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rdloc_465593(a);
		LOC6 = 0;
		LOC6 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3825), LOC5, 1);
		putintodest_479562(p, d, (*e).typ, LOC6);
	}
	break;
	case ((NU8) 1):
	{
		TY161572 LOC8;
		Ropeobj161009* LOC9;
		memset((void*)LOC8, 0, sizeof(LOC8));
		LOC8[0] = rdloc_465593(a);
		LOC9 = 0;
		LOC9 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3826), LOC8, 1);
		putintodest_479562(p, d, (*e).typ, LOC9);
	}
	break;
	case ((NU8) 2):
	{
		TY161572 LOC11;
		Ropeobj161009* LOC12;
		memset((void*)LOC11, 0, sizeof(LOC11));
		LOC11[0] = rdloc_465593(a);
		LOC12 = 0;
		LOC12 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3827), LOC11, 1);
		putintodest_479562(p, d, (*e).typ, LOC12);
	}
	break;
	case ((NU8) 14):
	case ((NU8) 15):
	{
		TY490436 LOC14;
		Ropeobj161009* LOC15;
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = rdloc_465593(a);
		LOC14[1] = gentypeinfo_463368((*p).module, t);
		LOC15 = 0;
		LOC15 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3828), LOC14, 2);
		putintodest_479562(p, d, (*e).typ, LOC15);
	}
	break;
	case ((NU8) 28):
	{
		TY161572 LOC17;
		Ropeobj161009* LOC18;
		memset((void*)LOC17, 0, sizeof(LOC17));
		LOC17[0] = rdloc_465593(a);
		LOC18 = 0;
		LOC18 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3829), LOC17, 1);
		putintodest_479562(p, d, (*e).typ, LOC18);
	}
	break;
	case ((NU8) 19):
	{
		TY490436 LOC20;
		Ropeobj161009* LOC21;
		memset((void*)LOC20, 0, sizeof(LOC20));
		LOC20[0] = addrloc_465615(a);
		LOC20[1] = gentypeinfo_463368((*p).module, t);
		LOC21 = 0;
		LOC21 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3830), LOC20, 2);
		putintodest_479562(p, d, (*e).typ, LOC21);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		Tloc190827 b;
		TY490436 LOC34;
		Ttype190849* LOC35;
		Ropeobj161009* LOC36;
		memset((void*)(&b), 0, sizeof(b));
		switch ((*a.t).kind) {
		case ((NU8) 27):
		case ((NU8) 48):
		{
			TY161572 LOC24;
			Ropeobj161009* LOC25;
			memset((void*)LOC24, 0, sizeof(LOC24));
			LOC24[0] = rdloc_465593(a);
			LOC25 = 0;
			LOC25 = HEX25_162235(((NimStringDesc*) &TMP3831), LOC24, 1);
			putintodest_479562(p, (&b), (*e).typ, LOC25);
		}
		break;
		case ((NU8) 28):
		case ((NU8) 24):
		{
			TY490436 LOC27;
			Ropeobj161009* LOC28;
			memset((void*)LOC27, 0, sizeof(LOC27));
			LOC27[0] = rdloc_465593(a);
			LOC27[1] = lenfield_466971(p);
			LOC28 = 0;
			LOC28 = HEX25_162235(((NimStringDesc*) &TMP3832), LOC27, 2);
			putintodest_479562(p, (&b), (*e).typ, LOC28);
		}
		break;
		case ((NU8) 16):
		case ((NU8) 4):
		{
			TY490436 LOC30;
			NI64 LOC31;
			Ropeobj161009* LOC32;
			memset((void*)LOC30, 0, sizeof(LOC30));
			LOC30[0] = rdloc_465593(a);
			LOC31 = 0;
			LOC31 = lengthord_220016(a.t);
			LOC30[1] = rope_161407(LOC31);
			LOC32 = 0;
			LOC32 = HEX25_162235(((NimStringDesc*) &TMP3833), LOC30, 2);
			putintodest_479562(p, (&b), (*e).typ, LOC32);
		}
		break;
		default:
		{
			internalerror_165199((*(*e).kindU.S6.sons->data[((NI) 0)]).info, ((NimStringDesc*) &TMP3834));
		}
		break;
		}
		memset((void*)LOC34, 0, sizeof(LOC34));
		LOC34[0] = rdloc_465593(b);
		LOC35 = 0;
		LOC35 = elemtype_220522(t);
		LOC34[1] = gentypeinfo_463368((*p).module, LOC35);
		LOC36 = 0;
		LOC36 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3835), LOC34, 2);
		putintodest_479562(p, d, (*e).typ, LOC36);
	}
	break;
	case ((NU8) 29):
	case ((NU8) 16):
	case ((NU8) 4):
	case ((NU8) 22):
	case ((NU8) 21):
	case ((NU8) 26):
	case ((NU8) 5):
	case ((NU8) 24):
	{
		TY490436 LOC38;
		Ropeobj161009* LOC39;
		memset((void*)LOC38, 0, sizeof(LOC38));
		LOC38[0] = rdloc_465593(a);
		LOC38[1] = gentypeinfo_463368((*p).module, t);
		LOC39 = 0;
		LOC39 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3836), LOC38, 2);
		putintodest_479562(p, d, (*e).typ, LOC39);
	}
	break;
	default:
	{
		TY490436 LOC41;
		Ropeobj161009* LOC42;
		memset((void*)LOC41, 0, sizeof(LOC41));
		LOC41[0] = addrloc_465615(a);
		LOC41[1] = gentypeinfo_463368((*p).module, t);
		LOC42 = 0;
		LOC42 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3836), LOC41, 2);
		putintodest_479562(p, d, (*e).typ, LOC42);
	}
	break;
	}
	gcusage_483678(e);
}

N_NIMCALL(void, gengettypeinfo_485007)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Ttype190849* t;
	Ropeobj161009* LOC1;
	t = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106242013440));
	LOC1 = 0;
	LOC1 = gentypeinfo_463368((*p).module, t);
	putintodest_479562(p, d, (*e).typ, LOC1);
}

N_NIMCALL(void, genswap_485244)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Tloc190827 tmp;
	Ttype190849* LOC1;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	memset((void*)(&tmp), 0, sizeof(tmp));
	LOC1 = 0;
	LOC1 = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
	gettemp_464444(p, LOC1, (&tmp), NIM_FALSE);
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	genassignment_466906(p, tmp, a, 0);
	genassignment_466906(p, a, b, 0);
	genassignment_466906(p, b, tmp, 0);
}

N_NIMCALL(void, unaryexpr_480412)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	TY161572 LOC1;
	Ropeobj161009* LOC2;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, LOC1, 1);
	putintodest_479562(p, d, (*e).typ, LOC2);
}

N_NIMCALL(void, binarystmt_479597)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	Tloc190827 b;
	TY490436 LOC5;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	{
		if (!!(((*d).k == ((NU8) 0)))) goto LA3;
		internalerror_165199((*e).info, ((NimStringDesc*) &TMP3839));
	}
	LA3: ;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	memset((void*)LOC5, 0, sizeof(LOC5));
	LOC5[0] = rdloc_465593(a);
	LOC5[1] = rdloc_465593(b);
	linecg_460010(p, ((NU8) 2), frmt, LOC5, 2);
}

N_NIMCALL(void, genstrconcat_483694)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 tmp;
	NI L;
	Ropeobj161009* appends;
	Ropeobj161009* lens;
	TY462569 LOC21;
	Ropeobj161009** LOC22;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&tmp), 0, sizeof(tmp));
	gettemp_464444(p, (*e).typ, (&tmp), NIM_FALSE);
	L = ((NI) 0);
	appends = NIM_NIL;
	lens = NIM_NIL;
	{
		NI i_483718;
		NI HEX3Atmp_483789;
		NI LOC2;
		NI res_483792;
		i_483718 = 0;
		HEX3Atmp_483789 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(e);
		HEX3Atmp_483789 = (NI)(LOC2 - ((NI) 2));
		res_483792 = ((NI) 0);
		{
			while (1) {
				if (!(res_483792 <= HEX3Atmp_483789)) goto LA4;
				i_483718 = res_483792;
				initlocexpr_466937(p, (*e).kindU.S6.sons->data[(NI)(i_483718 + ((NI) 1))], (&a));
				{
					Ttype190849* LOC7;
					TY490436 LOC10;
					Ropeobj161009* LOC11;
					LOC7 = 0;
					LOC7 = skiptypes_194167((*(*e).kindU.S6.sons->data[(NI)(i_483718 + ((NI) 1))]).typ, IL64(211106242013440));
					if (!((*LOC7).kind == ((NU8) 2))) goto LA8;
					L += ((NI) 1);
					memset((void*)LOC10, 0, sizeof(LOC10));
					LOC10[0] = tmp.r;
					LOC10[1] = rdloc_465593(a);
					LOC11 = 0;
					LOC11 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3842), LOC10, 2);
					add_161534(&appends, LOC11);
				}
				goto LA5;
				LA8: ;
				{
					TY490436 LOC19;
					Ropeobj161009* LOC20;
					{
						if (!((*(*e).kindU.S6.sons->data[(NI)(i_483718 + ((NI) 1))]).kind >= ((NU8) 20) && (*(*e).kindU.S6.sons->data[(NI)(i_483718 + ((NI) 1))]).kind <= ((NU8) 22))) goto LA15;
						L += ((*(*e).kindU.S6.sons->data[(NI)(i_483718 + ((NI) 1))]).kindU.S3.strval ? (*(*e).kindU.S6.sons->data[(NI)(i_483718 + ((NI) 1))]).kindU.S3.strval->Sup.len : 0);
					}
					goto LA13;
					LA15: ;
					{
						TY490436 LOC18;
						memset((void*)LOC18, 0, sizeof(LOC18));
						LOC18[0] = rdloc_465593(a);
						LOC18[1] = lenfield_466971(p);
						addf_162635(&lens, ((NimStringDesc*) &TMP3843), LOC18, 2);
					}
					LA13: ;
					memset((void*)LOC19, 0, sizeof(LOC19));
					LOC19[0] = tmp.r;
					LOC19[1] = rdloc_465593(a);
					LOC20 = 0;
					LOC20 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3844), LOC19, 2);
					add_161534(&appends, LOC20);
				}
				LA5: ;
				res_483792 += ((NI) 1);
			} LA4: ;
		}
	}
	memset((void*)LOC21, 0, sizeof(LOC21));
	LOC21[0] = tmp.r;
	LOC21[1] = lens;
	LOC21[2] = rope_161407(((NI64) (L)));
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3845), LOC21, 3);
	LOC22 = 0;
	LOC22 = s_456184(p, ((NU8) 2));
	add_161534(LOC22, appends);
	{
		if (!((*d).k == ((NU8) 0))) goto LA25;
		genericAssign((void*)(&(*d)), (void*)(&tmp), (&NTI190827));
		keepalive_465907(p, tmp);
	}
	goto LA23;
	LA25: ;
	{
		genassignment_466906(p, (*d), tmp, 64);
	}
	LA23: ;
	gcusage_483678(e);
}

N_NIMCALL(void, genstrappend_483808)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 dest;
	Ropeobj161009* appends;
	Ropeobj161009* lens;
	NI L;
	TY462569 LOC21;
	Ropeobj161009** LOC22;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&dest), 0, sizeof(dest));
	appends = 0;
	lens = 0;
	L = ((NI) 0);
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&dest));
	{
		NI i_484016;
		NI HEX3Atmp_484077;
		NI LOC2;
		NI res_484080;
		i_484016 = 0;
		HEX3Atmp_484077 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(e);
		HEX3Atmp_484077 = (NI)(LOC2 - ((NI) 3));
		res_484080 = ((NI) 0);
		{
			while (1) {
				if (!(res_484080 <= HEX3Atmp_484077)) goto LA4;
				i_484016 = res_484080;
				initlocexpr_466937(p, (*e).kindU.S6.sons->data[(NI)(i_484016 + ((NI) 2))], (&a));
				{
					Ttype190849* LOC7;
					TY490436 LOC10;
					Ropeobj161009* LOC11;
					LOC7 = 0;
					LOC7 = skiptypes_194167((*(*e).kindU.S6.sons->data[(NI)(i_484016 + ((NI) 2))]).typ, IL64(211106242013440));
					if (!((*LOC7).kind == ((NU8) 2))) goto LA8;
					L += ((NI) 1);
					memset((void*)LOC10, 0, sizeof(LOC10));
					LOC10[0] = rdloc_465593(dest);
					LOC10[1] = rdloc_465593(a);
					LOC11 = 0;
					LOC11 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3842), LOC10, 2);
					add_161534(&appends, LOC11);
				}
				goto LA5;
				LA8: ;
				{
					TY490436 LOC19;
					Ropeobj161009* LOC20;
					{
						if (!((*(*e).kindU.S6.sons->data[(NI)(i_484016 + ((NI) 2))]).kind >= ((NU8) 20) && (*(*e).kindU.S6.sons->data[(NI)(i_484016 + ((NI) 2))]).kind <= ((NU8) 22))) goto LA15;
						L += ((*(*e).kindU.S6.sons->data[(NI)(i_484016 + ((NI) 2))]).kindU.S3.strval ? (*(*e).kindU.S6.sons->data[(NI)(i_484016 + ((NI) 2))]).kindU.S3.strval->Sup.len : 0);
					}
					goto LA13;
					LA15: ;
					{
						TY490436 LOC18;
						memset((void*)LOC18, 0, sizeof(LOC18));
						LOC18[0] = rdloc_465593(a);
						LOC18[1] = lenfield_466971(p);
						addf_162635(&lens, ((NimStringDesc*) &TMP3843), LOC18, 2);
					}
					LA13: ;
					memset((void*)LOC19, 0, sizeof(LOC19));
					LOC19[0] = rdloc_465593(dest);
					LOC19[1] = rdloc_465593(a);
					LOC20 = 0;
					LOC20 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3844), LOC19, 2);
					add_161534(&appends, LOC20);
				}
				LA5: ;
				res_484080 += ((NI) 1);
			} LA4: ;
		}
	}
	memset((void*)LOC21, 0, sizeof(LOC21));
	LOC21[0] = rdloc_465593(dest);
	LOC21[1] = lens;
	LOC21[2] = rope_161407(((NI64) (L)));
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3847), LOC21, 3);
	keepalive_465907(p, dest);
	LOC22 = 0;
	LOC22 = s_456184(p, ((NU8) 2));
	add_161534(LOC22, appends);
	gcusage_483678(e);
}

N_NIMCALL(void, genseqelemappend_484096)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	NimStringDesc* seqappendpattern;
	Tloc190827 a;
	Tloc190827 b;
	Tloc190827 dest;
	TY462569 LOC8;
	Ttype190849* LOC9;
	Ttype190849* LOC10;
	TY490436 LOC11;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_154130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA4: ;
		if (!!(LOC3)) goto LA5;
		seqappendpattern = copyString(((NimStringDesc*) &TMP3848));
	}
	goto LA1;
	LA5: ;
	{
		seqappendpattern = copyString(((NimStringDesc*) &TMP3849));
	}
	LA1: ;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	memset((void*)(&dest), 0, sizeof(dest));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	memset((void*)LOC8, 0, sizeof(LOC8));
	LOC8[0] = rdloc_465593(a);
	LOC9 = 0;
	LOC9 = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
	LOC8[1] = gettypedesc_463073((*p).module, LOC9);
	LOC10 = 0;
	LOC10 = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 2)]).typ, IL64(211106240964864));
	LOC8[2] = gettypedesc_463073((*p).module, LOC10);
	linecg_460010(p, ((NU8) 2), seqappendpattern, LOC8, 3);
	keepalive_465907(p, a);
	initloc_459300((&dest), ((NU8) 6), b.t, ((NU8) 2));
	memset((void*)LOC11, 0, sizeof(LOC11));
	LOC11[0] = rdloc_465593(a);
	LOC11[1] = lenfield_466971(p);
	dest.r = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3850), LOC11, 2);
	genassignment_466906(p, dest, b, 5);
	gcusage_483678(e);
}

N_NIMCALL(void, binaryexpr_479680)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	Tloc190827 b;
	TY490436 LOC1;
	Ropeobj161009* LOC2;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	LOC1[1] = rdloc_465593(b);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, LOC1, 2);
	putintodest_479562(p, d, (*e).typ, LOC2);
}

N_NIMCALL(void, genstrequals_486301)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 x;
	Tnode190813* a;
	Tnode190813* b;
	memset((void*)(&x), 0, sizeof(x));
	a = (*e).kindU.S6.sons->data[((NI) 1)];
	b = (*e).kindU.S6.sons->data[((NI) 2)];
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*a).kind == ((NU8) 23));
		if (LOC3) goto LA4;
		LOC3 = ((*b).kind == ((NU8) 23));
		LA4: ;
		if (!LOC3) goto LA5;
		binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3794));
	}
	goto LA1;
	LA5: ;
	{
		NIM_BOOL LOC8;
		TY490436 LOC12;
		Ropeobj161009* LOC13;
		LOC8 = 0;
		LOC8 = ((*a).kind >= ((NU8) 20) && (*a).kind <= ((NU8) 22));
		if (!(LOC8)) goto LA9;
		LOC8 = (((*a).kindU.S3.strval) && ((*a).kindU.S3.strval)->Sup.len == 0);
		LA9: ;
		if (!LOC8) goto LA10;
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&x));
		memset((void*)LOC12, 0, sizeof(LOC12));
		LOC12[0] = rdloc_465593(x);
		LOC12[1] = lenfield_466971(p);
		LOC13 = 0;
		LOC13 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3851), LOC12, 2);
		putintodest_479562(p, d, (*e).typ, LOC13);
	}
	goto LA1;
	LA10: ;
	{
		NIM_BOOL LOC15;
		TY490436 LOC19;
		Ropeobj161009* LOC20;
		LOC15 = 0;
		LOC15 = ((*b).kind >= ((NU8) 20) && (*b).kind <= ((NU8) 22));
		if (!(LOC15)) goto LA16;
		LOC15 = (((*b).kindU.S3.strval) && ((*b).kindU.S3.strval)->Sup.len == 0);
		LA16: ;
		if (!LOC15) goto LA17;
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&x));
		memset((void*)LOC19, 0, sizeof(LOC19));
		LOC19[0] = rdloc_465593(x);
		LOC19[1] = lenfield_466971(p);
		LOC20 = 0;
		LOC20 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3851), LOC19, 2);
		putintodest_479562(p, d, (*e).typ, LOC20);
	}
	goto LA1;
	LA17: ;
	{
		binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3852));
	}
	LA1: ;
}

N_NIMCALL(void, genisnil_481823)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Ttype190849* t;
	t = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106233624832));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*t).kind == ((NU8) 25));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*t).callconv == ((NU8) 8));
		LA4: ;
		if (!LOC3) goto LA5;
		unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3855));
	}
	goto LA1;
	LA5: ;
	{
		unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3856));
	}
	LA1: ;
}

N_NIMCALL(void, gendollar_485018)(Tcproc456034* p, Tnode190813* n, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	TY161572 LOC1;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 1)], (&a));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	a.r = ropecg_459616((*p).module, frmt, LOC1, 1);
	{
		if (!((*d).k == ((NU8) 0))) goto LA4;
		gettemp_464444(p, (*n).typ, d, NIM_FALSE);
	}
	LA4: ;
	genassignment_466906(p, (*d), a, 64);
	gcusage_483678(n);
}

N_NIMCALL(Ropeobj161009*, genofhelper_484606)(Tcproc456034* p, Ttype190849* dest, Ropeobj161009* a) {
	Ropeobj161009* result;
	Ropeobj161009* ti;
	result = 0;
	ti = gentypeinfo_463368((*p).module, dest);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		TY490436 LOC9;
		LOC3 = 0;
		LOC3 = (((*dest).flags &(1<<((((NU8) 2))&31)))!=0);
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = (*(*p).module).objhaskidsvalid;
		if (!(LOC5)) goto LA6;
		LOC5 = !((((*dest).flags &(1<<((((NU8) 5))&31)))!=0));
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA7;
		memset((void*)LOC9, 0, sizeof(LOC9));
		LOC9[0] = a;
		LOC9[1] = ti;
		result = HEX25_162235(((NimStringDesc*) &TMP3865), LOC9, 2);
	}
	goto LA1;
	LA7: ;
	{
		Ropeobj161009* LOC11;
		Ropeobj161009* cache;
		Ropeobj161009* LOC12;
		TY161572 LOC13;
		TY462569 LOC14;
		LOC11 = 0;
		LOC11 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP3603));
		(*(*p).module).labels += ((NI) 1);
		LOC12 = 0;
		LOC12 = rope_161407(((NI64) ((*(*p).module).labels)));
		cache = HEX26_161482(((NimStringDesc*) &TMP3866), LOC12);
		memset((void*)LOC13, 0, sizeof(LOC13));
		LOC13[0] = cache;
		addf_162635(&(*(*p).module).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP3867), LOC13, 1);
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = a;
		LOC14[1] = ti;
		LOC14[2] = cache;
		result = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3868), LOC14, 3);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, genof_484804)(Tcproc456034* p, Tnode190813* x, Ttype190849* typ, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* dest;
	Ropeobj161009* r;
	Ropeobj161009* nilcheck;
	Ttype190849* t;
	Ttype190849* LOC41;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, x, (&a));
	dest = skiptypes_194167(typ, IL64(211106247256320));
	r = rdloc_465593(a);
	nilcheck = NIM_NIL;
	t = skiptypes_194167(a.t, IL64(211106232576256));
	{
		while (1) {
			Ttype190849* LOC16;
			if (!((*t).kind == ((NU8) 23) || (*t).kind == ((NU8) 21) || (*t).kind == ((NU8) 22))) goto LA2;
			{
				if (!!(((*t).kind == ((NU8) 23)))) goto LA5;
				nilcheck = r;
			}
			LA5: ;
			{
				NIM_BOOL LOC9;
				NIM_BOOL LOC11;
				TY161572 LOC15;
				LOC9 = 0;
				LOC9 = !(((*t).kind == ((NU8) 23)));
				if (LOC9) goto LA10;
				LOC11 = 0;
				LOC11 = (gcmd_154130 == ((NU8) 2));
				if (LOC11) goto LA12;
				LOC11 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
				LA12: ;
				LOC9 = !(LOC11);
				LA10: ;
				if (!LOC9) goto LA13;
				memset((void*)LOC15, 0, sizeof(LOC15));
				LOC15[0] = r;
				r = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3625), LOC15, 1);
			}
			LA13: ;
			LOC16 = 0;
			LOC16 = lastson_193442(t);
			t = skiptypes_194167(LOC16, IL64(211106232576256));
		} LA2: ;
	}
	{
		NIM_BOOL LOC19;
		LOC19 = 0;
		LOC19 = (gcmd_154130 == ((NU8) 2));
		if (LOC19) goto LA20;
		LOC19 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA20: ;
		if (!!(LOC19)) goto LA21;
		{
			while (1) {
				NIM_BOOL LOC25;
				TY460664 LOC27;
				Ropeobj161009* LOC28;
				LOC25 = 0;
				LOC25 = ((*t).kind == ((NU8) 17));
				if (!(LOC25)) goto LA26;
				LOC25 = !(((*t).sons->data[((NI) 0)] == NIM_NIL));
				LA26: ;
				if (!LOC25) goto LA24;
				memset((void*)LOC27, 0, sizeof(LOC27));
				LOC28 = 0;
				LOC28 = HEX25_162235(((NimStringDesc*) &TMP3628), LOC27, 0);
				add_161534(&r, LOC28);
				t = skiptypes_194167((*t).sons->data[((NI) 0)], IL64(211106232576256));
			} LA24: ;
		}
	}
	LA21: ;
	{
		NIM_BOOL LOC31;
		LOC31 = 0;
		LOC31 = isobjlackingtypefield_460910(t);
		if (!LOC31) goto LA32;
		globalerror_165134((*x).info, ((NU16) 4), ((NimStringDesc*) &TMP3863));
	}
	LA32: ;
	{
		TY490436 LOC38;
		if (!!((nilcheck == NIM_NIL))) goto LA36;
		memset((void*)LOC38, 0, sizeof(LOC38));
		LOC38[0] = nilcheck;
		LOC38[1] = genofhelper_484606(p, dest, r);
		r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3864), LOC38, 2);
	}
	goto LA34;
	LA36: ;
	{
		TY161572 LOC40;
		memset((void*)LOC40, 0, sizeof(LOC40));
		LOC40[0] = genofhelper_484606(p, dest, r);
		r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3869), LOC40, 1);
	}
	LA34: ;
	LOC41 = 0;
	LOC41 = getsystype_238030(((NU8) 1));
	putintodest_479562(p, d, LOC41, r);
}

N_NIMCALL(void, genof_484949)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	genof_484804(p, (*n).kindU.S6.sons->data[((NI) 1)], (*(*n).kindU.S6.sons->data[((NI) 2)]).typ, d);
}

N_NIMCALL(void, rawgennew_484157)(Tcproc456034* p, Tloc190827 a, Ropeobj161009* sizeexpr_484161) {
	Ropeobj161009* sizeexpr;
	Ttype190849* reftype;
	Tloc190827 b;
	TY462569 args;
	Ttype190849* bt;
	sizeexpr = sizeexpr_484161;
	reftype = skiptypes_194167(a.t, IL64(211106242013440));
	memset((void*)(&b), 0, sizeof(b));
	initloc_459300((&b), ((NU8) 6), a.t, ((NU8) 2));
	{
		TY161572 LOC5;
		Ttype190849* LOC6;
		if (!sizeexpr == 0) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC6 = 0;
		LOC6 = skiptypes_194167((*reftype).sons->data[((NI) 0)], IL64(211106233624832));
		LOC5[0] = gettypedesc_463073((*p).module, LOC6);
		sizeexpr = HEX25_162235(((NimStringDesc*) &TMP3870), LOC5, 1);
	}
	LA3: ;
	memset((void*)args, 0, sizeof(args));
	args[0] = gettypedesc_463073((*p).module, reftype);
	args[1] = gentypeinfo_463368((*p).module, reftype);
	args[2] = sizeexpr;
	{
		NIM_BOOL LOC9;
		TY490436 LOC21;
		LOC9 = 0;
		LOC9 = (a.s == ((NU8) 2));
		if (!(LOC9)) goto LA10;
		LOC9 = usesnativegc_154184();
		LA10: ;
		if (!LOC9) goto LA11;
		{
			NIM_BOOL LOC15;
			TY161572 LOC18;
			LOC15 = 0;
			LOC15 = canformacycle_220166(a.t);
			if (!LOC15) goto LA16;
			memset((void*)LOC18, 0, sizeof(LOC18));
			LOC18[0] = rdloc_465593(a);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3871), LOC18, 1);
		}
		goto LA13;
		LA16: ;
		{
			TY161572 LOC20;
			memset((void*)LOC20, 0, sizeof(LOC20));
			LOC20[0] = rdloc_465593(a);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3700), LOC20, 1);
		}
		LA13: ;
		b.r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3872), args, 3);
		memset((void*)LOC21, 0, sizeof(LOC21));
		LOC21[0] = rdloc_465593(a);
		LOC21[1] = rdloc_465593(b);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC21, 2);
	}
	goto LA7;
	LA11: ;
	{
		b.r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3873), args, 3);
		genassignment_466906(p, a, b, 64);
	}
	LA7: ;
	bt = skiptypes_194167((*reftype).sons->data[((NI) 0)], IL64(211106233624832));
	genobjectinit_465665(p, ((NU8) 2), bt, a, NIM_FALSE);
}

N_NIMCALL(void, gennew_484200)(Tcproc456034* p, Tnode190813* e) {
	Tloc190827 a;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	{
		NI LOC3;
		Tloc190827 se;
		Ropeobj161009* LOC6;
		LOC3 = 0;
		LOC3 = len_191097(e);
		if (!(LOC3 == ((NI) 3))) goto LA4;
		memset((void*)(&se), 0, sizeof(se));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&se));
		LOC6 = 0;
		LOC6 = rdloc_465593(se);
		rawgennew_484157(p, a, LOC6);
	}
	goto LA1;
	LA4: ;
	{
		rawgennew_484157(p, a, NIM_NIL);
	}
	LA1: ;
	gcusage_483678(e);
}

N_NIMCALL(void, gennewfinalize_484573)(Tcproc456034* p, Tnode190813* e) {
	Tloc190827 a;
	Tloc190827 b;
	Tloc190827 f;
	Ttype190849* reftype;
	Ttype190849* bt;
	Ropeobj161009* ti;
	Tcgen456038* oldmodule;
	TY490436 LOC1;
	TY462569 LOC2;
	Ttype190849* LOC3;
	Ttype190849* LOC4;
	Ttype190849* LOC5;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	memset((void*)(&f), 0, sizeof(f));
	reftype = 0;
	bt = 0;
	ti = 0;
	oldmodule = 0;
	reftype = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106242013440));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&f));
	initloc_459300((&b), ((NU8) 6), a.t, ((NU8) 2));
	ti = gentypeinfo_463368((*p).module, reftype);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = ti;
	LOC1[1] = rdloc_465593(f);
	addf_162635(&(*(*p).module).s[(((NU8) 14))- 0], ((NimStringDesc*) &TMP3874), LOC1, 2);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = gettypedesc_463073((*p).module, reftype);
	LOC2[1] = ti;
	LOC3 = 0;
	LOC3 = lastson_193442(reftype);
	LOC4 = 0;
	LOC4 = skiptypes_194167(LOC3, IL64(211106233624832));
	LOC2[2] = gettypedesc_463073((*p).module, LOC4);
	b.r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3875), LOC2, 3);
	genassignment_466906(p, a, b, 64);
	LOC5 = 0;
	LOC5 = lastson_193442(reftype);
	bt = skiptypes_194167(LOC5, IL64(211106233624832));
	genobjectinit_465665(p, ((NU8) 2), bt, a, NIM_FALSE);
	gcusage_483678(e);
}

N_NIMCALL(void, gennewseqaux_484216)(Tcproc456034* p, Tloc190827 dest, Ropeobj161009* length) {
	Ttype190849* seqtype;
	TY462569 args;
	Tloc190827 call;
	seqtype = skiptypes_194167(dest.t, IL64(211106242013440));
	memset((void*)args, 0, sizeof(args));
	args[0] = gettypedesc_463073((*p).module, seqtype);
	args[1] = gentypeinfo_463368((*p).module, seqtype);
	args[2] = length;
	memset((void*)(&call), 0, sizeof(call));
	initloc_459300((&call), ((NU8) 6), dest.t, ((NU8) 2));
	{
		NIM_BOOL LOC3;
		TY490436 LOC15;
		LOC3 = 0;
		LOC3 = (dest.s == ((NU8) 2));
		if (!(LOC3)) goto LA4;
		LOC3 = usesnativegc_154184();
		LA4: ;
		if (!LOC3) goto LA5;
		{
			NIM_BOOL LOC9;
			TY161572 LOC12;
			LOC9 = 0;
			LOC9 = canformacycle_220166(dest.t);
			if (!LOC9) goto LA10;
			memset((void*)LOC12, 0, sizeof(LOC12));
			LOC12[0] = rdloc_465593(dest);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3871), LOC12, 1);
		}
		goto LA7;
		LA10: ;
		{
			TY161572 LOC14;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rdloc_465593(dest);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3700), LOC14, 1);
		}
		LA7: ;
		call.r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3876), args, 3);
		memset((void*)LOC15, 0, sizeof(LOC15));
		LOC15[0] = rdloc_465593(dest);
		LOC15[1] = rdloc_465593(call);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC15, 2);
	}
	goto LA1;
	LA5: ;
	{
		call.r = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3877), args, 3);
		genassignment_466906(p, dest, call, 64);
	}
	LA1: ;
}

N_NIMCALL(void, gennewseq_484247)(Tcproc456034* p, Tnode190813* e) {
	Tloc190827 a;
	Tloc190827 b;
	Ropeobj161009* LOC1;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	LOC1 = 0;
	LOC1 = rdloc_465593(b);
	gennewseqaux_484216(p, a, LOC1);
	gcusage_483678(e);
}

N_NIMCALL(Ropeobj161009*, getclosuretype_463088)(Tcgen456038* m, Ttype190849* t, NU8 kind) {
	Ropeobj161009* result;
	Intset187056 check;
	Ropeobj161009* rettype;
	Ropeobj161009* desc;
	result = 0;
	memset((void*)(&check), 0, sizeof(check));
	chckNil((void*)(&check));
	memset((void*)(&check), 0, sizeof(check));
	initintset_187927((&check));
	result = gettempname_461002();
	rettype = 0;
	desc = 0;
	genprocparams_461537(m, t, &rettype, &desc, (&check), !((kind == ((NU8) 0))));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isimportedtype_460837(t);
		if (!!(LOC3)) goto LA4;
		{
			NIM_BOOL LOC8;
			TY462566 LOC12;
			LOC8 = 0;
			LOC8 = !(((*t).callconv == ((NU8) 8)));
			if (LOC8) goto LA9;
			LOC8 = !((kind == ((NU8) 2)));
			LA9: ;
			if (!LOC8) goto LA10;
			memset((void*)LOC12, 0, sizeof(LOC12));
			LOC12[0] = rope_161320(Callingconvtostr_460988[((*t).callconv)- 0]);
			LOC12[1] = rettype;
			LOC12[2] = result;
			LOC12[3] = desc;
			addf_162635(&(*m).s[(((NU8) 3))- 0], ((NimStringDesc*) &TMP3545), LOC12, 4);
		}
		goto LA6;
		LA10: ;
		{
			TY462569 LOC14;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = result;
			LOC14[1] = rettype;
			LOC14[2] = desc;
			addf_162635(&(*m).s[(((NU8) 3))- 0], ((NimStringDesc*) &TMP3556), LOC14, 3);
		}
		LA6: ;
	}
	LA4: ;
	return result;
}

N_NIMCALL(void, gensomecast_486098)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* etyp;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	etyp = skiptypes_194167((*e).typ, IL64(211106233624832));
	{
		NIM_BOOL LOC3;
		TY490436 LOC7;
		Ropeobj161009* LOC8;
		LOC3 = 0;
		LOC3 = ((*etyp).kind == ((NU8) 18) || (*etyp).kind == ((NU8) 17) || (*etyp).kind == ((NU8) 16) || (*etyp).kind == ((NU8) 27) || (*etyp).kind == ((NU8) 48) || (*etyp).kind == ((NU8) 4));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((a.flags &(1<<((((NU8) 0))&15)))!=0));
		LA4: ;
		if (!LOC3) goto LA5;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = gettypedesc_463073((*p).module, (*e).typ);
		LOC7[1] = addrloc_465615(a);
		LOC8 = 0;
		LOC8 = HEX25_162235(((NimStringDesc*) &TMP3879), LOC7, 2);
		putintodest_479562(p, d, (*e).typ, LOC8);
	}
	goto LA1;
	LA5: ;
	{
		NIM_BOOL LOC10;
		TY490436 LOC14;
		Ropeobj161009* LOC15;
		LOC10 = 0;
		LOC10 = ((*etyp).kind == ((NU8) 25));
		if (!(LOC10)) goto LA11;
		LOC10 = ((*etyp).callconv == ((NU8) 8));
		LA11: ;
		if (!LOC10) goto LA12;
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = getclosuretype_463088((*p).module, etyp, ((NU8) 1));
		LOC14[1] = rdcharloc_465644(a);
		LOC15 = 0;
		LOC15 = HEX25_162235(((NimStringDesc*) &TMP3880), LOC14, 2);
		putintodest_479562(p, d, (*e).typ, LOC15);
	}
	goto LA1;
	LA12: ;
	{
		TY490436 LOC17;
		Ropeobj161009* LOC18;
		memset((void*)LOC17, 0, sizeof(LOC17));
		LOC17[0] = gettypedesc_463073((*p).module, (*e).typ);
		LOC17[1] = rdcharloc_465644(a);
		LOC18 = 0;
		LOC18 = HEX25_162235(((NimStringDesc*) &TMP3880), LOC17, 2);
		putintodest_479562(p, d, (*e).typ, LOC18);
	}
	LA1: ;
}

N_NIMCALL(void, unaryexprchar_480428)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	TY161572 LOC1;
	Ropeobj161009* LOC2;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdcharloc_465644(a);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, LOC1, 1);
	putintodest_479562(p, d, (*e).typ, LOC2);
}

N_NIMCALL(void, genord_486089)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	unaryexprchar_480428(p, e, d, ((NimStringDesc*) &TMP3752));
}

N_NIMCALL(void, genarraylen_485044)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op) {
	Tnode190813* a;
	Ttype190849* typ;
	a = (*e).kindU.S6.sons->data[((NI) 1)];
	{
		if (!((*a).kind == ((NU8) 64))) goto LA3;
		a = (*a).kindU.S6.sons->data[((NI) 0)];
	}
	LA3: ;
	typ = skiptypes_194167((*a).typ, IL64(211106240964864));
	switch ((*typ).kind) {
	case ((NU8) 27):
	case ((NU8) 48):
	{
		{
			if (!(op == ((NU16) 5))) goto LA8;
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3881));
		}
		goto LA6;
		LA8: ;
		{
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3882));
		}
		LA6: ;
	}
	break;
	case ((NU8) 29):
	{
		usestringh_459390((*p).module);
		{
			if (!(op == ((NU16) 5))) goto LA14;
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3883));
		}
		goto LA12;
		LA14: ;
		{
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3884));
		}
		LA12: ;
	}
	break;
	case ((NU8) 28):
	case ((NU8) 24):
	{
		{
			NIM_BOOL LOC20;
			LOC20 = 0;
			LOC20 = (gcmd_154130 == ((NU8) 2));
			if (LOC20) goto LA21;
			LOC20 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA21: ;
			if (!!(LOC20)) goto LA22;
			{
				if (!(op == ((NU16) 5))) goto LA26;
				unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3885));
			}
			goto LA24;
			LA26: ;
			{
				unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3886));
			}
			LA24: ;
		}
		goto LA18;
		LA22: ;
		{
			{
				if (!(op == ((NU16) 5))) goto LA32;
				unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3887));
			}
			goto LA30;
			LA32: ;
			{
				unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3888));
			}
			LA30: ;
		}
		LA18: ;
	}
	break;
	case ((NU8) 16):
	case ((NU8) 4):
	{
		{
			NI64 LOC40;
			Ropeobj161009* LOC41;
			if (!(op == ((NU16) 5))) goto LA38;
			LOC40 = 0;
			LOC40 = lastord_220010(typ);
			LOC41 = 0;
			LOC41 = rope_161407(LOC40);
			putintodest_479562(p, d, (*e).typ, LOC41);
		}
		goto LA36;
		LA38: ;
		{
			NI64 LOC43;
			Ropeobj161009* LOC44;
			LOC43 = 0;
			LOC43 = lengthord_220016(typ);
			LOC44 = 0;
			LOC44 = rope_161407(LOC43);
			putintodest_479562(p, d, (*e).typ, LOC44);
		}
		LA36: ;
	}
	break;
	default:
	{
		internalerror_165199((*e).info, ((NimStringDesc*) &TMP3889));
	}
	break;
	}
}

N_NIMCALL(void, unarystmt_479626)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	TY161572 LOC5;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!!(((*d).k == ((NU8) 0)))) goto LA3;
		internalerror_165199((*e).info, ((NimStringDesc*) &TMP3892));
	}
	LA3: ;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	memset((void*)LOC5, 0, sizeof(LOC5));
	LOC5[0] = rdloc_465593(a);
	linecg_460010(p, ((NU8) 2), frmt, LOC5, 1);
}

N_NIMCALL(void, gensetlengthstr_485235)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	binarystmt_479597(p, e, d, ((NimStringDesc*) &TMP3895));
	keepalive_465907(p, (*d));
	gcusage_483678(e);
}

N_NIMCALL(void, gensetlengthseq_485132)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Ttype190849* t;
	NimStringDesc* setlenpattern;
	TY462566 LOC8;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	t = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_154130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA4: ;
		if (!!(LOC3)) goto LA5;
		setlenpattern = copyString(((NimStringDesc*) &TMP3896));
	}
	goto LA1;
	LA5: ;
	{
		setlenpattern = copyString(((NimStringDesc*) &TMP3897));
	}
	LA1: ;
	memset((void*)LOC8, 0, sizeof(LOC8));
	LOC8[0] = rdloc_465593(a);
	LOC8[1] = rdloc_465593(b);
	LOC8[2] = gettypedesc_463073((*p).module, t);
	LOC8[3] = gettypedesc_463073((*p).module, (*t).sons->data[((NI) 0)]);
	linecg_460010(p, ((NU8) 2), setlenpattern, LOC8, 4);
	keepalive_465907(p, a);
	gcusage_483678(e);
}

N_NIMCALL(Ropeobj161009*, rdsetelemloc_485271)(Tloc190827 a, Ttype190849* settype) {
	Ropeobj161009* result;
	result = 0;
	result = rdcharloc_465644(a);
	{
		NI64 LOC3;
		TY490436 LOC6;
		NI64 LOC7;
		LOC3 = 0;
		LOC3 = firstord_220004(settype);
		if (!!((LOC3 == IL64(0)))) goto LA4;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = result;
		LOC7 = 0;
		LOC7 = firstord_220004(settype);
		LOC6[1] = rope_161407(LOC7);
		result = HEX25_162235(((NimStringDesc*) &TMP3898), LOC6, 2);
	}
	LA4: ;
	return result;
}

N_NIMCALL(void, binarystmtinexcl_485469)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	Tloc190827 b;
	TY490436 LOC1;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	LOC1[1] = rdsetelemloc_485271(b, a.t);
	linef_459997(p, ((NU8) 2), frmt, LOC1, 2);
}

N_NIMCALL(void, binaryexprchar_480012)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NimStringDesc* frmt) {
	Tloc190827 a;
	Tloc190827 b;
	TY490436 LOC1;
	Ropeobj161009* LOC2;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdcharloc_465644(a);
	LOC1[1] = rdcharloc_465644(b);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, LOC1, 2);
	putintodest_479562(p, d, (*e).typ, LOC2);
}

N_NIMCALL(NIM_BOOL, fewcmps_485406)(Tnode190813* s) {
	NIM_BOOL result;
	result = 0;
	{
		if (!!(((*s).kind == ((NU8) 39)))) goto LA3;
		internalerror_165199((*s).info, ((NimStringDesc*) &TMP3913));
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		NI64 LOC8;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = getsize_220190((*s).typ);
		LOC7 = (LOC8 <= ((NI64) (intsize_159623)));
		if (!(LOC7)) goto LA9;
		LOC7 = (((*s).flags &(1<<((((NU8) 4))&15)))!=0);
		LA9: ;
		if (!LOC7) goto LA10;
		result = NIM_FALSE;
	}
	goto LA5;
	LA10: ;
	{
		Ttype190849* LOC13;
		LOC13 = 0;
		LOC13 = elemtype_220522((*s).typ);
		if (!((*LOC13).kind == ((NU8) 31) || (*LOC13).kind >= ((NU8) 33) && (*LOC13).kind <= ((NU8) 35))) goto LA14;
		result = NIM_TRUE;
	}
	goto LA5;
	LA14: ;
	{
		NI LOC17;
		LOC17 = 0;
		LOC17 = sonslen_193403(s);
		result = (LOC17 <= ((NI) 8));
	}
	LA5: ;
	return result;
}

N_NIMCALL(void, binaryexprin_485443)(Tcproc456034* p, Tnode190813* e, Tloc190827* a, Tloc190827* b, Tloc190827* d, NimStringDesc* frmt) {
	TY490436 LOC1;
	Ropeobj161009* LOC2;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593((*a));
	LOC1[1] = rdsetelemloc_485271((*b), (*a).t);
	LOC2 = 0;
	LOC2 = HEX25_162235(frmt, LOC1, 2);
	putintodest_479562(p, d, (*e).typ, LOC2);
}

N_NIMCALL(void, geninexpraux_482488)(Tcproc456034* p, Tnode190813* e, Tloc190827* a, Tloc190827* b, Tloc190827* d) {
	Ttype190849* LOC1;
	NI64 LOC2;
	LOC1 = 0;
	LOC1 = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
	LOC2 = 0;
	LOC2 = getsize_220190(LOC1);
	switch (((NI) (LOC2))) {
	case ((NI) 1):
	{
		binaryexprin_485443(p, e, a, b, d, ((NimStringDesc*) &TMP3917));
	}
	break;
	case ((NI) 2):
	{
		binaryexprin_485443(p, e, a, b, d, ((NimStringDesc*) &TMP3918));
	}
	break;
	case ((NI) 4):
	{
		binaryexprin_485443(p, e, a, b, d, ((NimStringDesc*) &TMP3919));
	}
	break;
	case ((NI) 8):
	{
		binaryexprin_485443(p, e, a, b, d, ((NimStringDesc*) &TMP3920));
	}
	break;
	default:
	{
		binaryexprin_485443(p, e, a, b, d, ((NimStringDesc*) &TMP3921));
	}
	break;
	}
}

N_NIMCALL(void, geninop_485612)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Tloc190827 x;
	Tloc190827 y;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	memset((void*)(&x), 0, sizeof(x));
	memset((void*)(&y), 0, sizeof(y));
	{
		NIM_BOOL LOC3;
		Tnode190813* ea;
		NI length;
		LOC3 = 0;
		LOC3 = ((*(*e).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 39));
		if (!(LOC3)) goto LA4;
		LOC3 = fewcmps_485406((*e).kindU.S6.sons->data[((NI) 1)]);
		LA4: ;
		if (!LOC3) goto LA5;
		{
			if (!((*(*e).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 70) || (*(*e).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 69))) goto LA9;
			ea = (*(*e).kindU.S6.sons->data[((NI) 2)]).kindU.S6.sons->data[((NI) 0)];
		}
		goto LA7;
		LA9: ;
		{
			ea = (*e).kindU.S6.sons->data[((NI) 2)];
		}
		LA7: ;
		initlocexpr_466937(p, ea, (&a));
		initloc_459300((&b), ((NU8) 6), (*e).typ, ((NU8) 0));
		b.r = rope_161320(((NimStringDesc*) &TMP3544));
		length = sonslen_193403((*e).kindU.S6.sons->data[((NI) 1)]);
		{
			NI i_485665;
			NI HEX3Atmp_486012;
			NI res_486015;
			i_485665 = 0;
			HEX3Atmp_486012 = 0;
			HEX3Atmp_486012 = (NI)(length - ((NI) 1));
			res_486015 = ((NI) 0);
			{
				while (1) {
					if (!(res_486015 <= HEX3Atmp_486012)) goto LA14;
					i_485665 = res_486015;
					{
						TY462569 LOC19;
						if (!((*(*(*e).kindU.S6.sons->data[((NI) 1)]).kindU.S6.sons->data[i_485665]).kind == ((NU8) 44))) goto LA17;
						initlocexpr_466937(p, (*(*(*e).kindU.S6.sons->data[((NI) 1)]).kindU.S6.sons->data[i_485665]).kindU.S6.sons->data[((NI) 0)], (&x));
						initlocexpr_466937(p, (*(*(*e).kindU.S6.sons->data[((NI) 1)]).kindU.S6.sons->data[i_485665]).kindU.S6.sons->data[((NI) 1)], (&y));
						memset((void*)LOC19, 0, sizeof(LOC19));
						LOC19[0] = rdcharloc_465644(a);
						LOC19[1] = rdcharloc_465644(x);
						LOC19[2] = rdcharloc_465644(y);
						addf_162635(&b.r, ((NimStringDesc*) &TMP3914), LOC19, 3);
					}
					goto LA15;
					LA17: ;
					{
						TY490436 LOC21;
						initlocexpr_466937(p, (*(*e).kindU.S6.sons->data[((NI) 1)]).kindU.S6.sons->data[i_485665], (&x));
						memset((void*)LOC21, 0, sizeof(LOC21));
						LOC21[0] = rdcharloc_465644(a);
						LOC21[1] = rdcharloc_465644(x);
						addf_162635(&b.r, ((NimStringDesc*) &TMP3915), LOC21, 2);
					}
					LA15: ;
					{
						if (!(i_485665 < (NI)(length - ((NI) 1)))) goto LA24;
						add_161545(&b.r, ((NimStringDesc*) &TMP3916));
					}
					LA24: ;
					res_486015 += ((NI) 1);
				} LA14: ;
			}
		}
		add_161545(&b.r, ((NimStringDesc*) &TMP3543));
		putintodest_479562(p, d, (*e).typ, b.r);
	}
	goto LA1;
	LA5: ;
	{
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
		geninexpraux_482488(p, e, (&a), (&b), d);
	}
	LA1: ;
}

N_NIMCALL(void, gensetop_486031)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op) {
	Tloc190827 a;
	Tloc190827 b;
	Tloc190827 i;
	Ttype190849* settype;
	NI size;
	NI64 LOC1;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	memset((void*)(&i), 0, sizeof(i));
	settype = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106240964864));
	LOC1 = 0;
	LOC1 = getsize_220190(settype);
	size = ((NI) (LOC1));
	switch (size) {
	case ((NI) 1):
	case ((NI) 2):
	case ((NI) 4):
	case ((NI) 8):
	{
		switch (op) {
		case ((NU16) 35):
		{
			NimStringDesc* ts;
			NimStringDesc* LOC4;
			NimStringDesc* LOC5;
			NimStringDesc* LOC6;
			LOC4 = 0;
			LOC5 = 0;
			LOC5 = nimIntToStr((NI)(size * ((NI) 8)));
			LOC4 = rawNewString(LOC5->Sup.len + 2);
appendString(LOC4, ((NimStringDesc*) &TMP3516));
appendString(LOC4, LOC5);
			ts = LOC4;
			LOC6 = 0;
			LOC6 = rawNewString(ts->Sup.len + ts->Sup.len + 35);
appendString(LOC6, ((NimStringDesc*) &TMP3899));
appendString(LOC6, ts);
appendString(LOC6, ((NimStringDesc*) &TMP3900));
appendString(LOC6, ts);
appendString(LOC6, ((NimStringDesc*) &TMP3901));
			binarystmtinexcl_485469(p, e, d, LOC6);
		}
		break;
		case ((NU16) 36):
		{
			NimStringDesc* ts;
			NimStringDesc* LOC8;
			NimStringDesc* LOC9;
			NimStringDesc* LOC10;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = nimIntToStr((NI)(size * ((NI) 8)));
			LOC8 = rawNewString(LOC9->Sup.len + 2);
appendString(LOC8, ((NimStringDesc*) &TMP3516));
appendString(LOC8, LOC9);
			ts = LOC8;
			LOC10 = 0;
			LOC10 = rawNewString(ts->Sup.len + ts->Sup.len + 42);
appendString(LOC10, ((NimStringDesc*) &TMP3902));
appendString(LOC10, ts);
appendString(LOC10, ((NimStringDesc*) &TMP3903));
appendString(LOC10, ts);
appendString(LOC10, ((NimStringDesc*) &TMP3904));
			binarystmtinexcl_485469(p, e, d, LOC10);
		}
		break;
		case ((NU16) 37):
		{
			{
				if (!(size <= ((NI) 4))) goto LA14;
				unaryexprchar_480428(p, e, d, ((NimStringDesc*) &TMP3905));
			}
			goto LA12;
			LA14: ;
			{
				unaryexprchar_480428(p, e, d, ((NimStringDesc*) &TMP3906));
			}
			LA12: ;
		}
		break;
		case ((NU16) 144):
		{
			binaryexprchar_480012(p, e, d, ((NimStringDesc*) &TMP3907));
		}
		break;
		case ((NU16) 143):
		{
			binaryexprchar_480012(p, e, d, ((NimStringDesc*) &TMP3908));
		}
		break;
		case ((NU16) 142):
		{
			binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3794));
		}
		break;
		case ((NU16) 145):
		{
			binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3909));
		}
		break;
		case ((NU16) 146):
		{
			binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3910));
		}
		break;
		case ((NU16) 147):
		{
			binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3911));
		}
		break;
		case ((NU16) 148):
		{
			binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3912));
		}
		break;
		case ((NU16) 159):
		{
			geninop_485612(p, e, d);
		}
		break;
		default:
		{
			internalerror_165199((*e).info, ((NimStringDesc*) &TMP3922));
		}
		break;
		}
	}
	break;
	default:
	{
		switch (op) {
		case ((NU16) 35):
		{
			binarystmtinexcl_485469(p, e, d, ((NimStringDesc*) &TMP3923));
		}
		break;
		case ((NU16) 36):
		{
			binarystmtinexcl_485469(p, e, d, ((NimStringDesc*) &TMP3924));
		}
		break;
		case ((NU16) 37):
		{
			NimStringDesc* LOC30;
			NimStringDesc* LOC31;
			LOC30 = 0;
			LOC31 = 0;
			LOC31 = nimIntToStr(size);
			LOC30 = rawNewString(LOC31->Sup.len + 14);
appendString(LOC30, ((NimStringDesc*) &TMP3925));
appendString(LOC30, LOC31);
appendChar(LOC30, 41);
			unaryexprchar_480428(p, e, d, LOC30);
		}
		break;
		case ((NU16) 144):
		case ((NU16) 143):
		{
			Ttype190849* LOC33;
			TY463876 LOC39;
			LOC33 = 0;
			LOC33 = getsystype_238030(((NU8) 31));
			gettemp_464444(p, LOC33, (&i), NIM_FALSE);
			initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
			initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
			{
				Ttype190849* LOC38;
				if (!((*d).k == ((NU8) 0))) goto LA36;
				LOC38 = 0;
				LOC38 = getsystype_238030(((NU8) 1));
				gettemp_464444(p, LOC38, d, NIM_FALSE);
			}
			LA36: ;
			memset((void*)LOC39, 0, sizeof(LOC39));
			LOC39[0] = rdloc_465593(i);
			LOC39[1] = rope_161407(((NI64) (size)));
			LOC39[2] = rdloc_465593((*d));
			LOC39[3] = rdloc_465593(a);
			LOC39[4] = rdloc_465593(b);
			linef_459997(p, ((NU8) 2), lookupopr_486038[(op)- 143], LOC39, 5);
		}
		break;
		case ((NU16) 142):
		{
			NimStringDesc* LOC41;
			NimStringDesc* LOC42;
			usestringh_459390((*p).module);
			LOC41 = 0;
			LOC42 = 0;
			LOC42 = nimIntToStr(size);
			LOC41 = rawNewString(LOC42->Sup.len + 21);
appendString(LOC41, ((NimStringDesc*) &TMP3931));
appendString(LOC41, LOC42);
appendString(LOC41, ((NimStringDesc*) &TMP3932));
			binaryexprchar_480012(p, e, d, LOC41);
		}
		break;
		case ((NU16) 145):
		case ((NU16) 146):
		case ((NU16) 147):
		case ((NU16) 148):
		{
			Ttype190849* LOC44;
			TY464247 LOC49;
			LOC44 = 0;
			LOC44 = getsystype_238030(((NU8) 31));
			gettemp_464444(p, LOC44, (&i), NIM_FALSE);
			initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
			initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
			{
				if (!((*d).k == ((NU8) 0))) goto LA47;
				gettemp_464444(p, a.t, d, NIM_FALSE);
			}
			LA47: ;
			memset((void*)LOC49, 0, sizeof(LOC49));
			LOC49[0] = rdloc_465593(i);
			LOC49[1] = rope_161407(((NI64) (size)));
			LOC49[2] = rdloc_465593((*d));
			LOC49[3] = rdloc_465593(a);
			LOC49[4] = rdloc_465593(b);
			LOC49[5] = rope_161320(lookupopr_486038[(op)- 143]);
			linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3933), LOC49, 6);
		}
		break;
		case ((NU16) 159):
		{
			geninop_485612(p, e, d);
		}
		break;
		default:
		{
			internalerror_165199((*e).info, ((NimStringDesc*) &TMP3934));
		}
		break;
		}
	}
	break;
	}
}

static N_INLINE(Ropeobj161009*, genargstringtocstring_467581)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	Tloc190827 a;
	TY161572 LOC1;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	result = HEX25_162235(((NimStringDesc*) &TMP3935), LOC1, 1);
	return result;
}

N_NIMCALL(Ropeobj161009*, openarrayloc_467471)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	Tloc190827 a;
	Tnode190813* q;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	q = skipconv_229935(n);
	{
		NU16 LOC3;
		Tloc190827 b;
		Tloc190827 c;
		Tnode190813* LOC6;
		Tnode190813* LOC7;
		Tnode190813* LOC8;
		NimStringDesc* fmt;
		Ttype190849* LOC9;
		TY462569 LOC25;
		LOC3 = 0;
		LOC3 = getmagic_219403(q);
		if (!(LOC3 == ((NU16) 150))) goto LA4;
		memset((void*)(&b), 0, sizeof(b));
		memset((void*)(&c), 0, sizeof(c));
		LOC6 = 0;
		LOC6 = HEX5BHEX5D_191244(q, ((NI) 1));
		initlocexpr_466937(p, LOC6, (&a));
		LOC7 = 0;
		LOC7 = HEX5BHEX5D_191244(q, ((NI) 2));
		initlocexpr_466937(p, LOC7, (&b));
		LOC8 = 0;
		LOC8 = HEX5BHEX5D_191244(q, ((NI) 3));
		initlocexpr_466937(p, LOC8, (&c));
		LOC9 = 0;
		LOC9 = skiptypes_194167(a.t, IL64(211106243062016));
		switch ((*LOC9).kind) {
		case ((NU8) 27):
		case ((NU8) 48):
		case ((NU8) 16):
		case ((NU8) 4):
		{
			fmt = copyString(((NimStringDesc*) &TMP3936));
		}
		break;
		case ((NU8) 28):
		case ((NU8) 24):
		{
			{
				NIM_BOOL LOC14;
				Ttype190849* LOC15;
				NIM_BOOL LOC17;
				LOC14 = 0;
				LOC15 = 0;
				LOC15 = skiptypes_194167((*n).typ, IL64(211106232576256));
				LOC14 = ((*LOC15).kind == ((NU8) 23));
				if (!(LOC14)) goto LA16;
				LOC17 = 0;
				LOC17 = (gcmd_154130 == ((NU8) 2));
				if (LOC17) goto LA18;
				LOC17 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
				LA18: ;
				LOC14 = !(LOC17);
				LA16: ;
				if (!LOC14) goto LA19;
				fmt = copyString(((NimStringDesc*) &TMP3937));
			}
			goto LA12;
			LA19: ;
			{
				fmt = copyString(((NimStringDesc*) &TMP3938));
			}
			LA12: ;
		}
		break;
		default:
		{
			NimStringDesc* LOC23;
			NimStringDesc* LOC24;
			LOC23 = 0;
			LOC24 = 0;
			LOC24 = typetostring_220032(a.t, ((NU8) 0));
			LOC23 = rawNewString(LOC24->Sup.len + 14);
appendString(LOC23, ((NimStringDesc*) &TMP3939));
appendString(LOC23, LOC24);
			internalerror_165218(LOC23);
			fmt = copyString(((NimStringDesc*) &TMP3940));
		}
		break;
		}
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = rdloc_465593(a);
		LOC25[1] = rdloc_465593(b);
		LOC25[2] = rdloc_465593(c);
		result = HEX25_162235(fmt, LOC25, 3);
	}
	goto LA1;
	LA4: ;
	{
		Ttype190849* LOC27;
		initlocexpr_466937(p, n, (&a));
		LOC27 = 0;
		LOC27 = skiptypes_194167(a.t, IL64(211106240964864));
		switch ((*LOC27).kind) {
		case ((NU8) 27):
		case ((NU8) 48):
		{
			TY161572 LOC29;
			memset((void*)LOC29, 0, sizeof(LOC29));
			LOC29[0] = rdloc_465593(a);
			result = HEX25_162235(((NimStringDesc*) &TMP3831), LOC29, 1);
		}
		break;
		case ((NU8) 28):
		case ((NU8) 24):
		{
			{
				NIM_BOOL LOC33;
				Ttype190849* LOC34;
				NIM_BOOL LOC36;
				TY490436 LOC40;
				LOC33 = 0;
				LOC34 = 0;
				LOC34 = skiptypes_194167((*n).typ, IL64(211106232576256));
				LOC33 = ((*LOC34).kind == ((NU8) 23));
				if (!(LOC33)) goto LA35;
				LOC36 = 0;
				LOC36 = (gcmd_154130 == ((NU8) 2));
				if (LOC36) goto LA37;
				LOC36 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
				LA37: ;
				LOC33 = !(LOC36);
				LA35: ;
				if (!LOC33) goto LA38;
				memset((void*)LOC40, 0, sizeof(LOC40));
				LOC40[0] = rdloc_465593(a);
				LOC40[1] = lenfield_466971(p);
				result = HEX25_162235(((NimStringDesc*) &TMP3941), LOC40, 2);
			}
			goto LA31;
			LA38: ;
			{
				TY490436 LOC42;
				memset((void*)LOC42, 0, sizeof(LOC42));
				LOC42[0] = rdloc_465593(a);
				LOC42[1] = lenfield_466971(p);
				result = HEX25_162235(((NimStringDesc*) &TMP3832), LOC42, 2);
			}
			LA31: ;
		}
		break;
		case ((NU8) 16):
		case ((NU8) 4):
		{
			TY490436 LOC44;
			NI64 LOC45;
			memset((void*)LOC44, 0, sizeof(LOC44));
			LOC44[0] = rdloc_465593(a);
			LOC45 = 0;
			LOC45 = lengthord_220016(a.t);
			LOC44[1] = rope_161407(LOC45);
			result = HEX25_162235(((NimStringDesc*) &TMP3833), LOC44, 2);
		}
		break;
		default:
		{
			NimStringDesc* LOC47;
			NimStringDesc* LOC48;
			LOC47 = 0;
			LOC48 = 0;
			LOC48 = typetostring_220032(a.t, ((NU8) 0));
			LOC47 = rawNewString(LOC48->Sup.len + 14);
appendString(LOC47, ((NimStringDesc*) &TMP3939));
appendString(LOC47, LOC48);
			internalerror_165218(LOC47);
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, initlocexprsingleuse_466949)(Tcproc456034* p, Tnode190813* e, Tloc190827* result) {
	initloc_459300(result, ((NU8) 0), (*e).typ, ((NU8) 0));
	(*result).flags |= ((NI16)1)<<((((NU8) 8))%(sizeof(NI16)*8));
	expr_466881(p, e, result);
}

N_NIMCALL(Ropeobj161009*, genarg_467595)(Tcproc456034* p, Tnode190813* n_467598, Tsym190843* param, Tnode190813* call) {
	Ropeobj161009* result;
	Tloc190827 a;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!((*n_467598).kind == ((NU8) 71))) goto LA3;
		result = genargstringtocstring_467581(p, n_467598);
	}
	goto LA1;
	LA3: ;
	{
		Ttype190849* LOC6;
		Tnode190813* n;
		LOC6 = 0;
		LOC6 = skiptypes_194167((*param).typ, IL64(211106240964864));
		if (!((*LOC6).kind == ((NU8) 27) || (*LOC6).kind == ((NU8) 48))) goto LA7;
		{
			if (!!(((*n_467598).kind == ((NU8) 64)))) goto LA11;
			n = n_467598;
		}
		goto LA9;
		LA11: ;
		{
			n = (*n_467598).kindU.S6.sons->data[((NI) 0)];
		}
		LA9: ;
		result = openarrayloc_467471(p, n);
	}
	goto LA1;
	LA7: ;
	{
		NIM_BOOL LOC15;
		LOC15 = 0;
		LOC15 = ccgintroducedptr_461018(param);
		if (!LOC15) goto LA16;
		initlocexpr_466937(p, n_467598, (&a));
		result = addrloc_465615(a);
	}
	goto LA1;
	LA16: ;
	{
		NIM_BOOL LOC19;
		NIM_BOOL LOC20;
		NIM_BOOL LOC21;
		Tnode190813* callee;
		LOC19 = 0;
		LOC20 = 0;
		LOC21 = 0;
		LOC21 = (gcmd_154130 == ((NU8) 2));
		if (LOC21) goto LA22;
		LOC21 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA22: ;
		LOC20 = LOC21;
		if (!(LOC20)) goto LA23;
		LOC20 = ((*(*param).typ).kind == ((NU8) 23));
		LA23: ;
		LOC19 = LOC20;
		if (!(LOC19)) goto LA24;
		LOC19 = ((*n_467598).kind == ((NU8) 64));
		LA24: ;
		if (!LOC19) goto LA25;
		initlocexprsingleuse_466949(p, (*n_467598).kindU.S6.sons->data[((NI) 0)], (&a));
		callee = (*call).kindU.S6.sons->data[((NI) 0)];
		{
			NIM_BOOL LOC29;
			NIM_BOOL LOC30;
			LOC29 = 0;
			LOC30 = 0;
			LOC30 = ((*callee).kind == ((NU8) 3));
			if (!(LOC30)) goto LA31;
			LOC30 = ((134283296 & (*(*callee).kindU.S4.sym).flags) == 32);
			LA31: ;
			LOC29 = LOC30;
			if (!(LOC29)) goto LA32;
			LOC29 = !(((72 & (*(*callee).kindU.S4.sym).loc.flags) == 0));
			LA32: ;
			if (!LOC29) goto LA33;
			result = addrloc_465615(a);
		}
		goto LA27;
		LA33: ;
		{
			result = rdloc_465593(a);
		}
		LA27: ;
	}
	goto LA1;
	LA25: ;
	{
		initlocexprsingleuse_466949(p, n_467598, (&a));
		result = rdloc_465593(a);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, genargnoparam_467749)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	Tloc190827 a;
	result = 0;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!((*n).kind == ((NU8) 71))) goto LA3;
		result = genargstringtocstring_467581(p, n);
	}
	goto LA1;
	LA3: ;
	{
		initlocexprsingleuse_466949(p, n, (&a));
		result = rdloc_465593(a);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, getrawproctype_468241)(Tcproc456034* p, Ttype190849* t) {
	Ropeobj161009* result;
	result = 0;
	result = getclosuretype_463088((*p).module, t, ((NU8) 0));
	return result;
}

N_NIMCALL(NIM_BOOL, leftappearsonrightside_467001)(Tnode190813* le, Tnode190813* ri) {
	NIM_BOOL result;
{	result = 0;
	{
		if (!!((le == NIM_NIL))) goto LA3;
		{
			NI i_467037;
			NI HEX3Atmp_467049;
			NI LOC6;
			NI res_467052;
			i_467037 = 0;
			HEX3Atmp_467049 = 0;
			LOC6 = 0;
			LOC6 = len_191097(ri);
			HEX3Atmp_467049 = (LOC6 - 1);
			res_467052 = ((NI) 1);
			{
				while (1) {
					Tnode190813* r;
					if (!(res_467052 <= HEX3Atmp_467049)) goto LA8;
					i_467037 = res_467052;
					r = HEX5BHEX5D_191244(ri, i_467037);
					{
						NU8 LOC11;
						LOC11 = 0;
						LOC11 = ispartof_399375(le, r);
						if (!!((LOC11 == ((NU8) 0)))) goto LA12;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA12: ;
					res_467052 += ((NI) 1);
				} LA8: ;
			}
		}
	}
	LA3: ;
	}BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, hasnoinit_467068)(Tnode190813* call) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = ((*(*call).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
	if (!(LOC1)) goto LA2;
	LOC1 = (((*(*(*call).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 12))&31)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, resetloc_465798)(Tcproc456034* p, Tloc190827* loc) {
	NIM_BOOL containsgcref;
	Ttype190849* typ;
{	containsgcref = containsgarbagecollectedref_220154((*loc).t);
	typ = skiptypes_194167((*loc).t, IL64(211106242013440));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isimportedcpptype_460867(typ);
		if (!LOC3) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	{
		NIM_BOOL LOC8;
		LOC8 = 0;
		LOC8 = iscomplexvaluetype_465759(typ);
		if (!!(LOC8)) goto LA9;
		{
			Tloc190827 nilloc;
			if (!containsgcref) goto LA13;
			memset((void*)(&nilloc), 0, sizeof(nilloc));
			initloc_459300((&nilloc), ((NU8) 1), (*loc).t, ((NU8) 1));
			nilloc.r = rope_161320(((NimStringDesc*) &TMP3650));
			genrefassign_465750(p, (*loc), nilloc, 16);
		}
		goto LA11;
		LA13: ;
		{
			TY161572 LOC16;
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC16[0] = rdloc_465593((*loc));
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3624), LOC16, 1);
		}
		LA11: ;
	}
	goto LA6;
	LA9: ;
	{
		{
			TY161572 LOC22;
			if (!(((*p).options &(1<<((((NU8) 6))&31)))!=0)) goto LA20;
			memset((void*)LOC22, 0, sizeof(LOC22));
			LOC22[0] = addrloc_465615((*loc));
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3944), LOC22, 1);
		}
		LA20: ;
		{
			TY490436 LOC27;
			if (!!(((*loc).s == ((NU8) 1)))) goto LA25;
			memset((void*)LOC27, 0, sizeof(LOC27));
			LOC27[0] = addrloc_465615((*loc));
			LOC27[1] = gentypeinfo_463368((*p).module, (*loc).t);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3945), LOC27, 2);
			genobjectinit_465665(p, ((NU8) 2), (*loc).t, (*loc), NIM_TRUE);
		}
		goto LA23;
		LA25: ;
		{
			TY490436 LOC29;
			usestringh_459390((*p).module);
			memset((void*)LOC29, 0, sizeof(LOC29));
			LOC29[0] = addrloc_465615((*loc));
			LOC29[1] = rdloc_465593((*loc));
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3627), LOC29, 2);
			genobjectinit_465665(p, ((NU8) 2), (*loc).t, (*loc), NIM_TRUE);
		}
		LA23: ;
	}
	LA6: ;
	}BeforeRet: ;
}

N_NIMCALL(Ropeobj161009*, addcomma_468246)(Ropeobj161009* r) {
	Ropeobj161009* result;
	result = 0;
	{
		if (!(r == NIM_NIL)) goto LA3;
		result = r;
	}
	goto LA1;
	LA3: ;
	{
		TY460664 LOC6;
		Ropeobj161009* LOC7;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC7 = 0;
		LOC7 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC6, 0);
		result = HEX26_161436(r, LOC7);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, genclosurecall_468234)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d) {
	Tloc190827 op;
	Ropeobj161009* pl;
	Ttype190849* typ;
	NI length;
	Ropeobj161009* rawproc;
	NimStringDesc* callpattern;
	memset((void*)(&op), 0, sizeof(op));
	initlocexpr_466937(p, (*ri).kindU.S6.sons->data[((NI) 0)], (&op));
	pl = 0;
	typ = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
	length = sonslen_193403(ri);
	{
		NI i_468414;
		NI HEX3Atmp_469014;
		NI res_469017;
		i_468414 = 0;
		HEX3Atmp_469014 = 0;
		HEX3Atmp_469014 = (NI)(length - ((NI) 1));
		res_469017 = ((NI) 1);
		{
			while (1) {
				if (!(res_469017 <= HEX3Atmp_469014)) goto LA3;
				i_468414 = res_469017;
				{
					{
						NIM_BOOL LOC7;
						LOC7 = 0;
						LOC7 = iscompiletimeonly_229712((*(*ri).kindU.S6.sons->data[i_468414]).typ);
						if (!LOC7) goto LA8;
						goto LA4;
					}
					LA8: ;
					{
						NI LOC12;
						Ropeobj161009* LOC15;
						LOC12 = 0;
						LOC12 = sonslen_193351(typ);
						if (!(i_468414 < LOC12)) goto LA13;
						LOC15 = 0;
						LOC15 = genarg_467595(p, (*ri).kindU.S6.sons->data[i_468414], (*(*(*typ).n).kindU.S6.sons->data[i_468414]).kindU.S4.sym, ri);
						add_161534(&pl, LOC15);
					}
					goto LA10;
					LA13: ;
					{
						Ropeobj161009* LOC17;
						LOC17 = 0;
						LOC17 = genargnoparam_467749(p, (*ri).kindU.S6.sons->data[i_468414]);
						add_161534(&pl, LOC17);
					}
					LA10: ;
					{
						TY460664 LOC22;
						Ropeobj161009* LOC23;
						if (!(i_468414 < (NI)(length - ((NI) 1)))) goto LA20;
						memset((void*)LOC22, 0, sizeof(LOC22));
						LOC23 = 0;
						LOC23 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC22, 0);
						add_161534(&pl, LOC23);
					}
					LA20: ;
				} LA4: ;
				res_469017 += ((NI) 1);
			} LA3: ;
		}
	}
	rawproc = getrawproctype_468241(p, typ);
	{
		if (!(((*typ).flags &(1<<((((NU8) 14))&31)))!=0)) goto LA26;
		callpattern = copyString(((NimStringDesc*) &TMP3942));
	}
	goto LA24;
	LA26: ;
	{
		callpattern = copyString(((NimStringDesc*) &TMP3943));
	}
	LA24: ;
	{
		if (!!(((*typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA31;
		{
			NIM_BOOL LOC35;
			LOC35 = 0;
			LOC35 = isinvalidreturntype_460948((*typ).sons->data[((NI) 0)]);
			if (!LOC35) goto LA36;
			{
				NI LOC40;
				TY460664 LOC43;
				Ropeobj161009* LOC44;
				LOC40 = 0;
				LOC40 = sonslen_193403(ri);
				if (!(((NI) 1) < LOC40)) goto LA41;
				memset((void*)LOC43, 0, sizeof(LOC43));
				LOC44 = 0;
				LOC44 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC43, 0);
				add_161534(&pl, LOC44);
			}
			LA41: ;
			{
				NIM_BOOL LOC47;
				NIM_BOOL LOC49;
				Ropeobj161009* LOC62;
				NimStringDesc* LOC63;
				TY462566 LOC64;
				LOC47 = 0;
				LOC47 = ((3 &(1<<(((*d).k)&15)))!=0);
				if (LOC47) goto LA48;
				LOC49 = 0;
				LOC49 = leftappearsonrightside_467001(le, ri);
				LOC47 = !(LOC49);
				LA48: ;
				if (!LOC47) goto LA50;
				{
					if (!((*d).k == ((NU8) 0))) goto LA54;
					gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_TRUE);
				}
				goto LA52;
				LA54: ;
				{
					NIM_BOOL LOC57;
					NIM_BOOL LOC59;
					LOC57 = 0;
					LOC57 = !(((66 &(1<<(((*d).k)&15)))!=0));
					if (!(LOC57)) goto LA58;
					LOC59 = 0;
					LOC59 = hasnoinit_467068(ri);
					LOC57 = !(LOC59);
					LA58: ;
					if (!LOC57) goto LA60;
					resetloc_465798(p, d);
				}
				goto LA52;
				LA60: ;
				LA52: ;
				LOC62 = 0;
				LOC62 = addrloc_465615((*d));
				add_161534(&pl, LOC62);
				LOC63 = 0;
				LOC63 = rawNewString(callpattern->Sup.len + 3);
appendString(LOC63, callpattern);
appendString(LOC63, ((NimStringDesc*) &TMP3946));
				memset((void*)LOC64, 0, sizeof(LOC64));
				LOC64[0] = op.r;
				LOC64[1] = pl;
				LOC64[2] = addcomma_468246(pl);
				LOC64[3] = rawproc;
				linef_459997(p, ((NU8) 2), LOC63, LOC64, 4);
			}
			goto LA45;
			LA50: ;
			{
				Tloc190827 tmp;
				Ropeobj161009* LOC66;
				NimStringDesc* LOC67;
				TY462566 LOC68;
				memset((void*)(&tmp), 0, sizeof(tmp));
				gettemp_464444(p, (*typ).sons->data[((NI) 0)], (&tmp), NIM_TRUE);
				LOC66 = 0;
				LOC66 = addrloc_465615(tmp);
				add_161534(&pl, LOC66);
				LOC67 = 0;
				LOC67 = rawNewString(callpattern->Sup.len + 3);
appendString(LOC67, callpattern);
appendString(LOC67, ((NimStringDesc*) &TMP3946));
				memset((void*)LOC68, 0, sizeof(LOC68));
				LOC68[0] = op.r;
				LOC68[1] = pl;
				LOC68[2] = addcomma_468246(pl);
				LOC68[3] = rawproc;
				linef_459997(p, ((NU8) 2), LOC67, LOC68, 4);
				genassignment_466906(p, (*d), tmp, 0);
			}
			LA45: ;
		}
		goto LA33;
		LA36: ;
		{
			Tloc190827 list;
			TY462566 LOC74;
			{
				if (!((*d).k == ((NU8) 0))) goto LA72;
				gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_FALSE);
			}
			LA72: ;
			memset((void*)(&list), 0, sizeof(list));
			initloc_459300((&list), ((NU8) 9), (*d).t, ((NU8) 0));
			memset((void*)LOC74, 0, sizeof(LOC74));
			LOC74[0] = op.r;
			LOC74[1] = pl;
			LOC74[2] = addcomma_468246(pl);
			LOC74[3] = rawproc;
			list.r = HEX25_162235(callpattern, LOC74, 4);
			genassignment_466906(p, (*d), list, 0);
		}
		LA33: ;
	}
	goto LA29;
	LA31: ;
	{
		NimStringDesc* LOC76;
		TY462566 LOC77;
		LOC76 = 0;
		LOC76 = rawNewString(callpattern->Sup.len + 3);
appendString(LOC76, callpattern);
appendString(LOC76, ((NimStringDesc*) &TMP3946));
		memset((void*)LOC77, 0, sizeof(LOC77));
		LOC77[0] = op.r;
		LOC77[1] = pl;
		LOC77[2] = addcomma_468246(pl);
		LOC77[3] = rawproc;
		linef_459997(p, ((NU8) 2), LOC76, LOC77, 4);
	}
	LA29: ;
}

N_NIMCALL(Ropeobj161009*, genotherarg_466928)(Tcproc456034* p, Tnode190813* ri, NI i, Ttype190849* typ) {
	Ropeobj161009* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = iscompiletimeonly_229712((*(*ri).kindU.S6.sons->data[i]).typ);
		if (!LOC3) goto LA4;
		result = NIM_NIL;
	}
	goto LA1;
	LA4: ;
	{
		NI LOC7;
		LOC7 = 0;
		LOC7 = sonslen_193351(typ);
		if (!(i < LOC7)) goto LA8;
		{
			NIM_BOOL LOC12;
			Tnode190813* LOC16;
			LOC12 = 0;
			LOC12 = ((*(*typ).sons->data[i]).kind == ((NU8) 23));
			if (!(LOC12)) goto LA13;
			LOC12 = ((*(*ri).kindU.S6.sons->data[i]).kind == ((NU8) 64));
			LA13: ;
			if (!LOC12) goto LA14;
			LOC16 = 0;
			LOC16 = HEX5BHEX5D_191244((*ri).kindU.S6.sons->data[i], ((NI) 0));
			result = genargnoparam_467749(p, LOC16);
		}
		goto LA10;
		LA14: ;
		{
			result = genargnoparam_467749(p, (*ri).kindU.S6.sons->data[i]);
		}
		LA10: ;
	}
	goto LA1;
	LA8: ;
	{
		result = genargnoparam_467749(p, (*ri).kindU.S6.sons->data[i]);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode190813*, skipaddrderef_469226)(Tnode190813* node) {
	Tnode190813* result;
	Tnode190813* n;
	NIM_BOOL isaddr;
{	result = 0;
	n = node;
	isaddr = NIM_FALSE;
	switch ((*n).kind) {
	case ((NU8) 63):
	case ((NU8) 64):
	{
		n = (*n).kindU.S6.sons->data[((NI) 0)];
		isaddr = NIM_TRUE;
	}
	break;
	case ((NU8) 47):
	case ((NU8) 65):
	{
		n = (*n).kindU.S6.sons->data[((NI) 0)];
	}
	break;
	default:
	{
		result = n;
		goto BeforeRet;
	}
	break;
	}
	{
		if (!((*n).kind == ((NU8) 66))) goto LA6;
		n = (*n).kindU.S6.sons->data[((NI) 0)];
	}
	LA6: ;
	{
		NIM_BOOL LOC10;
		LOC10 = 0;
		LOC10 = isaddr;
		if (!(LOC10)) goto LA11;
		LOC10 = ((*n).kind == ((NU8) 47) || (*n).kind == ((NU8) 65));
		LA11: ;
		if (!LOC10) goto LA12;
		result = (*n).kindU.S6.sons->data[((NI) 0)];
	}
	goto LA8;
	LA12: ;
	{
		if (!((*n).kind == ((NU8) 63) || (*n).kind == ((NU8) 64))) goto LA15;
		result = (*n).kindU.S6.sons->data[((NI) 0)];
	}
	goto LA8;
	LA15: ;
	{
		result = node;
	}
	LA8: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, genthisarg_469271)(Tcproc456034* p, Tnode190813* ri_469274, NI i, Ttype190849* typ) {
	Ropeobj161009* result;
	Tnode190813* ri;
	Ttype190849* t;
	result = 0;
	{
		NI LOC3;
		NimStringDesc* LOC6;
		LOC3 = 0;
		LOC3 = sonslen_193351(typ);
		if (!!((i < LOC3))) goto LA4;
		LOC6 = 0;
		LOC6 = HEX24_165306(TMP3951);
		internalerror_165218(LOC6);
	}
	LA4: ;
	ri = HEX5BHEX5D_191244(ri_469274, i);
	{
		while (1) {
			if (!((*ri).kind == ((NU8) 66))) goto LA8;
			ri = HEX5BHEX5D_191244(ri, ((NI) 0));
		} LA8: ;
	}
	t = skiptypes_194167((*typ).sons->data[i], 2048);
	{
		Tnode190813* x;
		if (!((*t).kind == ((NU8) 23))) goto LA11;
		{
			if (!((*ri).kind == ((NU8) 64))) goto LA15;
			x = HEX5BHEX5D_191244(ri, ((NI) 0));
		}
		goto LA13;
		LA15: ;
		{
			x = ri;
		}
		LA13: ;
		{
			if (!((*(*x).typ).kind == ((NU8) 21))) goto LA20;
			result = genargnoparam_467749(p, x);
			add_161545(&result, ((NimStringDesc*) &TMP3952));
		}
		goto LA18;
		LA20: ;
		{
			NIM_BOOL LOC23;
			Tnode190813* LOC25;
			Tnode190813* LOC28;
			LOC23 = 0;
			LOC23 = ((*x).kind == ((NU8) 65) || (*x).kind == ((NU8) 47));
			if (!(LOC23)) goto LA24;
			LOC25 = 0;
			LOC25 = HEX5BHEX5D_191244(x, ((NI) 0));
			LOC23 = ((*(*LOC25).typ).kind == ((NU8) 21));
			LA24: ;
			if (!LOC23) goto LA26;
			LOC28 = 0;
			LOC28 = HEX5BHEX5D_191244(x, ((NI) 0));
			result = genargnoparam_467749(p, LOC28);
			add_161545(&result, ((NimStringDesc*) &TMP3952));
		}
		goto LA18;
		LA26: ;
		{
			result = genargnoparam_467749(p, x);
			add_161545(&result, ((NimStringDesc*) &TMP3702));
		}
		LA18: ;
	}
	goto LA9;
	LA11: ;
	{
		if (!((*t).kind == ((NU8) 21))) goto LA31;
		{
			Tnode190813* LOC37;
			if (!((*ri).kind == ((NU8) 63) || (*ri).kind == ((NU8) 64))) goto LA35;
			LOC37 = 0;
			LOC37 = HEX5BHEX5D_191244(ri, ((NI) 0));
			result = genargnoparam_467749(p, LOC37);
			add_161545(&result, ((NimStringDesc*) &TMP3702));
		}
		goto LA33;
		LA35: ;
		{
			result = genargnoparam_467749(p, ri);
			add_161545(&result, ((NimStringDesc*) &TMP3952));
		}
		LA33: ;
	}
	goto LA9;
	LA31: ;
	{
		ri = skipaddrderef_469226(ri);
		{
			if (!((*ri).kind == ((NU8) 63) || (*ri).kind == ((NU8) 64))) goto LA42;
			ri = HEX5BHEX5D_191244(ri, ((NI) 0));
		}
		LA42: ;
		result = genargnoparam_467749(p, ri);
		add_161545(&result, ((NimStringDesc*) &TMP3702));
	}
	LA9: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, genpatterncall_469508)(Tcproc456034* p, Tnode190813* ri_469511, NimStringDesc* pat, Ttype190849* typ_469513) {
	Ropeobj161009* result;
	NI i;
	NI j;
	result = 0;
	i = ((NI) 0);
	j = ((NI) 1);
	{
		while (1) {
			if (!(i < (pat ? pat->Sup.len : 0))) goto LA2;
			switch (((NU8)(pat->data[i]))) {
			case 64:
			{
				{
					NI LOC6;
					Ropeobj161009* LOC9;
					LOC6 = 0;
					LOC6 = len_191097(ri_469511);
					if (!(j < LOC6)) goto LA7;
					LOC9 = 0;
					LOC9 = genotherarg_466928(p, ri_469511, j, typ_469513);
					add_161534(&result, LOC9);
					{
						NI k_469538;
						NI HEX3Atmp_469715;
						NI HEX3Atmp_469716;
						NI LOC11;
						NI res_469719;
						k_469538 = 0;
						HEX3Atmp_469715 = 0;
						HEX3Atmp_469716 = 0;
						HEX3Atmp_469715 = (NI)(j + ((NI) 1));
						LOC11 = 0;
						LOC11 = len_191097(ri_469511);
						HEX3Atmp_469716 = (LOC11 - 1);
						res_469719 = HEX3Atmp_469715;
						{
							while (1) {
								TY460664 LOC14;
								Ropeobj161009* LOC15;
								Ropeobj161009* LOC16;
								if (!(res_469719 <= HEX3Atmp_469716)) goto LA13;
								k_469538 = res_469719;
								memset((void*)LOC14, 0, sizeof(LOC14));
								LOC15 = 0;
								LOC15 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC14, 0);
								add_161534(&result, LOC15);
								LOC16 = 0;
								LOC16 = genotherarg_466928(p, ri_469511, k_469538, typ_469513);
								add_161534(&result, LOC16);
								res_469719 += ((NI) 1);
							} LA13: ;
						}
					}
				}
				LA7: ;
				i += ((NI) 1);
			}
			break;
			case 35:
			{
				{
					Tnode190813* ri;
					if (!(((NU8)(pat->data[(NI)(i + ((NI) 1))])) == ((NU8)(43)) || ((NU8)(pat->data[(NI)(i + ((NI) 1))])) == ((NU8)(64)))) goto LA20;
					ri = HEX5BHEX5D_191244(ri_469511, j);
					{
						Ttype190849* typ;
						TY460664 LOC31;
						Ropeobj161009* LOC32;
						TY460664 LOC46;
						Ropeobj161009* LOC47;
						if (!((*ri).kind == ((NU8) 27) || (*ri).kind == ((NU8) 29) || (*ri).kind == ((NU8) 30) || (*ri).kind == ((NU8) 31) || (*ri).kind == ((NU8) 26) || (*ri).kind == ((NU8) 28) || (*ri).kind == ((NU8) 32))) goto LA24;
						typ = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
						{
							Ropeobj161009* LOC30;
							if (!((NU8)(pat->data[(NI)(i + ((NI) 1))]) == (NU8)(43))) goto LA28;
							LOC30 = 0;
							LOC30 = genargnoparam_467749(p, (*ri).kindU.S6.sons->data[((NI) 0)]);
							add_161534(&result, LOC30);
						}
						LA28: ;
						memset((void*)LOC31, 0, sizeof(LOC31));
						LOC32 = 0;
						LOC32 = HEX25_162235(((NimStringDesc*) &TMP3544), LOC31, 0);
						add_161534(&result, LOC32);
						{
							NI LOC35;
							Ropeobj161009* LOC38;
							LOC35 = 0;
							LOC35 = len_191097(ri);
							if (!(((NI) 1) < LOC35)) goto LA36;
							LOC38 = 0;
							LOC38 = genotherarg_466928(p, ri, ((NI) 1), typ);
							add_161534(&result, LOC38);
						}
						LA36: ;
						{
							NI k_469604;
							NI HEX3Atmp_469726;
							NI HEX3Atmp_469727;
							NI LOC40;
							NI res_469730;
							k_469604 = 0;
							HEX3Atmp_469726 = 0;
							HEX3Atmp_469727 = 0;
							HEX3Atmp_469726 = (NI)(j + ((NI) 1));
							LOC40 = 0;
							LOC40 = len_191097(ri);
							HEX3Atmp_469727 = (LOC40 - 1);
							res_469730 = HEX3Atmp_469726;
							{
								while (1) {
									TY460664 LOC43;
									Ropeobj161009* LOC44;
									Ropeobj161009* LOC45;
									if (!(res_469730 <= HEX3Atmp_469727)) goto LA42;
									k_469604 = res_469730;
									memset((void*)LOC43, 0, sizeof(LOC43));
									LOC44 = 0;
									LOC44 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC43, 0);
									add_161534(&result, LOC44);
									LOC45 = 0;
									LOC45 = genotherarg_466928(p, ri, k_469604, typ);
									add_161534(&result, LOC45);
									res_469730 += ((NI) 1);
								} LA42: ;
							}
						}
						memset((void*)LOC46, 0, sizeof(LOC46));
						LOC47 = 0;
						LOC47 = HEX25_162235(((NimStringDesc*) &TMP3543), LOC46, 0);
						add_161534(&result, LOC47);
					}
					goto LA22;
					LA24: ;
					{
						localerror_165166((*ri).info, ((NimStringDesc*) &TMP3950));
					}
					LA22: ;
					i += ((NI) 1);
				}
				goto LA18;
				LA20: ;
				{
					Ropeobj161009* LOC52;
					if (!((NU8)(pat->data[(NI)(i + ((NI) 1))]) == (NU8)(46))) goto LA50;
					LOC52 = 0;
					LOC52 = genthisarg_469271(p, ri_469511, j, typ_469513);
					add_161534(&result, LOC52);
					i += ((NI) 1);
				}
				goto LA18;
				LA50: ;
				{
					Tnode190813* arg;
					Ropeobj161009* LOC58;
					if (!((NU8)(pat->data[(NI)(i + ((NI) 1))]) == (NU8)(91))) goto LA54;
					arg = skipaddrderef_469226((*ri_469511).kindU.S6.sons->data[j]);
					{
						while (1) {
							if (!((*arg).kind == ((NU8) 63) || (*arg).kind == ((NU8) 64) || (*arg).kind == ((NU8) 66))) goto LA57;
							arg = HEX5BHEX5D_191244(arg, ((NI) 0));
						} LA57: ;
					}
					LOC58 = 0;
					LOC58 = genargnoparam_467749(p, arg);
					add_161534(&result, LOC58);
				}
				goto LA18;
				LA54: ;
				{
					Ropeobj161009* LOC60;
					LOC60 = 0;
					LOC60 = genotherarg_466928(p, ri_469511, j, typ_469513);
					add_161534(&result, LOC60);
				}
				LA18: ;
				j += ((NI) 1);
				i += ((NI) 1);
			}
			break;
			case 39:
			{
				NI idx;
				NI stars;
				idx = 0;
				stars = 0;
				{
					NIM_BOOL LOC64;
					Ttype190849* t;
					LOC64 = 0;
					LOC64 = scancppgenericslot_462308(pat, (&i), (&idx), (&stars));
					if (!LOC64) goto LA65;
					t = resolvestarsincpptype_462381(typ_469513, idx, stars);
					{
						TY460664 LOC71;
						Ropeobj161009* LOC72;
						if (!(t == NIM_NIL)) goto LA69;
						memset((void*)LOC71, 0, sizeof(LOC71));
						LOC72 = 0;
						LOC72 = HEX25_162235(((NimStringDesc*) &TMP3501), LOC71, 0);
						add_161534(&result, LOC72);
					}
					goto LA67;
					LA69: ;
					{
						Ropeobj161009* LOC74;
						LOC74 = 0;
						LOC74 = gettypedesc_463073((*p).module, t);
						add_161534(&result, LOC74);
					}
					LA67: ;
				}
				LA65: ;
			}
			break;
			default:
			{
				NI start;
				start = i;
				{
					while (1) {
						if (!(i < (pat ? pat->Sup.len : 0))) goto LA77;
						{
							if (!!((((NU8)(pat->data[i])) == ((NU8)(64)) || ((NU8)(pat->data[i])) == ((NU8)(35)) || ((NU8)(pat->data[i])) == ((NU8)(39))))) goto LA80;
							i += ((NI) 1);
						}
						goto LA78;
						LA80: ;
						{
							goto LA76;
						}
						LA78: ;
					} LA77: ;
				} LA76: ;
				{
					NimStringDesc* LOC87;
					if (!(start <= (NI)(i - ((NI) 1)))) goto LA85;
					LOC87 = 0;
					LOC87 = copyStrLast(pat, start, (NI)(i - ((NI) 1)));
					add_161545(&result, LOC87);
				}
				LA85: ;
			}
			break;
			}
		} LA2: ;
	}
	return result;
}

N_NIMCALL(void, fixupcall_467098)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d, Ropeobj161009* callee, Ropeobj161009* params) {
	Ropeobj161009* pl;
	TY460664 LOC1;
	Ropeobj161009* LOC2;
	Ropeobj161009* LOC3;
	Ttype190849* typ;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = HEX25_162235(((NimStringDesc*) &TMP3544), LOC1, 0);
	LOC3 = 0;
	LOC3 = HEX26_161436(callee, LOC2);
	pl = HEX26_161436(LOC3, params);
	typ = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
	{
		if (!!(((*typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA6;
		{
			NIM_BOOL LOC10;
			LOC10 = 0;
			LOC10 = isinvalidreturntype_460948((*typ).sons->data[((NI) 0)]);
			if (!LOC10) goto LA11;
			{
				TY460664 LOC17;
				Ropeobj161009* LOC18;
				if (!!((params == NIM_NIL))) goto LA15;
				memset((void*)LOC17, 0, sizeof(LOC17));
				LOC18 = 0;
				LOC18 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC17, 0);
				add_161534(&pl, LOC18);
			}
			LA15: ;
			{
				NIM_BOOL LOC21;
				NIM_BOOL LOC23;
				Ropeobj161009* LOC36;
				TY460664 LOC37;
				Ropeobj161009* LOC38;
				LOC21 = 0;
				LOC21 = ((3 &(1<<(((*d).k)&15)))!=0);
				if (LOC21) goto LA22;
				LOC23 = 0;
				LOC23 = leftappearsonrightside_467001(le, ri);
				LOC21 = !(LOC23);
				LA22: ;
				if (!LOC21) goto LA24;
				{
					if (!((*d).k == ((NU8) 0))) goto LA28;
					gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_TRUE);
				}
				goto LA26;
				LA28: ;
				{
					NIM_BOOL LOC31;
					NIM_BOOL LOC33;
					LOC31 = 0;
					LOC31 = !(((66 &(1<<(((*d).k)&15)))!=0));
					if (!(LOC31)) goto LA32;
					LOC33 = 0;
					LOC33 = hasnoinit_467068(ri);
					LOC31 = !(LOC33);
					LA32: ;
					if (!LOC31) goto LA34;
					resetloc_465798(p, d);
				}
				goto LA26;
				LA34: ;
				LA26: ;
				LOC36 = 0;
				LOC36 = addrloc_465615((*d));
				add_161534(&pl, LOC36);
				memset((void*)LOC37, 0, sizeof(LOC37));
				LOC38 = 0;
				LOC38 = HEX25_162235(((NimStringDesc*) &TMP3953), LOC37, 0);
				add_161534(&pl, LOC38);
				line_459975(p, ((NU8) 2), pl);
			}
			goto LA19;
			LA24: ;
			{
				Tloc190827 tmp;
				Ropeobj161009* LOC40;
				TY460664 LOC41;
				Ropeobj161009* LOC42;
				memset((void*)(&tmp), 0, sizeof(tmp));
				gettemp_464444(p, (*typ).sons->data[((NI) 0)], (&tmp), NIM_TRUE);
				LOC40 = 0;
				LOC40 = addrloc_465615(tmp);
				add_161534(&pl, LOC40);
				memset((void*)LOC41, 0, sizeof(LOC41));
				LOC42 = 0;
				LOC42 = HEX25_162235(((NimStringDesc*) &TMP3953), LOC41, 0);
				add_161534(&pl, LOC42);
				line_459975(p, ((NU8) 2), pl);
				genassignment_466906(p, (*d), tmp, 0);
			}
			LA19: ;
		}
		goto LA8;
		LA11: ;
		{
			TY460664 LOC44;
			Ropeobj161009* LOC45;
			memset((void*)LOC44, 0, sizeof(LOC44));
			LOC45 = 0;
			LOC45 = HEX25_162235(((NimStringDesc*) &TMP3543), LOC44, 0);
			add_161534(&pl, LOC45);
			{
				NIM_BOOL LOC48;
				NIM_BOOL LOC49;
				LOC48 = 0;
				LOC49 = 0;
				LOC49 = (gcmd_154130 == ((NU8) 2));
				if (LOC49) goto LA50;
				LOC49 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
				LA50: ;
				LOC48 = LOC49;
				if (!(LOC48)) goto LA51;
				LOC48 = (((*d).flags &(1<<((((NU8) 8))&15)))!=0);
				LA51: ;
				if (!LOC48) goto LA52;
				(*d).k = ((NU8) 9);
				unsureAsgnRef((void**) (&(*d).r), pl);
				(*d).flags &= ~(((NI16)1) << ((((NU8) 8)) % (sizeof(NI16)*8)));
			}
			goto LA46;
			LA52: ;
			{
				Tloc190827 list;
				{
					if (!((*d).k == ((NU8) 0))) goto LA57;
					gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_FALSE);
				}
				LA57: ;
				memset((void*)(&list), 0, sizeof(list));
				initloc_459300((&list), ((NU8) 9), (*d).t, ((NU8) 0));
				list.r = pl;
				genassignment_466906(p, (*d), list, 0);
			}
			LA46: ;
		}
		LA8: ;
	}
	goto LA4;
	LA6: ;
	{
		TY460664 LOC60;
		Ropeobj161009* LOC61;
		memset((void*)LOC60, 0, sizeof(LOC60));
		LOC61 = 0;
		LOC61 = HEX25_162235(((NimStringDesc*) &TMP3953), LOC60, 0);
		add_161534(&pl, LOC61);
		line_459975(p, ((NU8) 2), pl);
	}
	LA4: ;
}

N_NIMCALL(void, geninfixcall_469779)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d) {
	Tloc190827 op;
	Tloc190827 a;
	Ttype190849* typ_469791;
	NI length;
	NimStringDesc* pat;
	memset((void*)(&op), 0, sizeof(op));
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*ri).kindU.S6.sons->data[((NI) 0)], (&op));
	typ_469791 = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
	length = sonslen_193403(ri);
	pat = (*(*(*(*ri).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).loc.r).data;
	{
		NimStringDesc* LOC5;
		if (!!(!((pat == NIM_NIL)))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_165306(TMP3947);
		internalerror_165218(LOC5);
	}
	LA3: ;
	{
		NIM_BOOL LOC8;
		Ropeobj161009* pl;
		Ttype190849* typ;
		LOC8 = 0;
		LOC8 = contains_99373(pat, TMP3949);
		if (!LOC8) goto LA9;
		pl = genpatterncall_469508(p, ri, pat, typ_469791);
		typ = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
		{
			if (!!(((*typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA13;
			{
				NIM_BOOL LOC17;
				NIM_BOOL LOC18;
				LOC17 = 0;
				LOC18 = 0;
				LOC18 = (gcmd_154130 == ((NU8) 2));
				if (LOC18) goto LA19;
				LOC18 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
				LA19: ;
				LOC17 = LOC18;
				if (!(LOC17)) goto LA20;
				LOC17 = (((*d).flags &(1<<((((NU8) 8))&15)))!=0);
				LA20: ;
				if (!LOC17) goto LA21;
				(*d).k = ((NU8) 9);
				unsureAsgnRef((void**) (&(*d).r), pl);
				(*d).flags &= ~(((NI16)1) << ((((NU8) 8)) % (sizeof(NI16)*8)));
			}
			goto LA15;
			LA21: ;
			{
				Tloc190827 list;
				{
					if (!((*d).k == ((NU8) 0))) goto LA26;
					gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_FALSE);
				}
				LA26: ;
				memset((void*)(&list), 0, sizeof(list));
				initloc_459300((&list), ((NU8) 9), (*d).t, ((NU8) 0));
				list.r = pl;
				genassignment_466906(p, (*d), list, 0);
			}
			LA15: ;
		}
		goto LA11;
		LA13: ;
		{
			TY460664 LOC29;
			Ropeobj161009* LOC30;
			memset((void*)LOC29, 0, sizeof(LOC29));
			LOC30 = 0;
			LOC30 = HEX25_162235(((NimStringDesc*) &TMP3946), LOC29, 0);
			add_161534(&pl, LOC30);
			line_459975(p, ((NU8) 2), pl);
		}
		LA11: ;
	}
	goto LA6;
	LA9: ;
	{
		Ropeobj161009* pl;
		Ropeobj161009* params;
		pl = NIM_NIL;
		{
			NI LOC34;
			Ropeobj161009* LOC37;
			LOC34 = 0;
			LOC34 = len_191097(ri);
			if (!(((NI) 1) < LOC34)) goto LA35;
			LOC37 = 0;
			LOC37 = genthisarg_469271(p, ri, ((NI) 1), typ_469791);
			add_161534(&pl, LOC37);
		}
		LA35: ;
		add_161534(&pl, op.r);
		params = 0;
		{
			NI i_470426;
			NI HEX3Atmp_470610;
			NI res_470613;
			i_470426 = 0;
			HEX3Atmp_470610 = 0;
			HEX3Atmp_470610 = (NI)(length - ((NI) 1));
			res_470613 = ((NI) 2);
			{
				while (1) {
					Ropeobj161009* LOC47;
					if (!(res_470613 <= HEX3Atmp_470610)) goto LA40;
					i_470426 = res_470613;
					{
						TY460664 LOC45;
						Ropeobj161009* LOC46;
						if (!!((params == NIM_NIL))) goto LA43;
						memset((void*)LOC45, 0, sizeof(LOC45));
						LOC46 = 0;
						LOC46 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC45, 0);
						add_161534(&params, LOC46);
					}
					LA43: ;
					LOC47 = 0;
					LOC47 = genotherarg_466928(p, ri, i_470426, typ_469791);
					add_161534(&params, LOC47);
					res_470613 += ((NI) 1);
				} LA40: ;
			}
		}
		fixupcall_467098(p, le, ri, d, pl, params);
	}
	LA6: ;
}

N_NIMCALL(void, gennamedparamcall_470629)(Tcproc456034* p, Tnode190813* ri, Tloc190827* d) {
	Tloc190827 op;
	Tloc190827 a;
	Ropeobj161009* pl;
	TY460664 LOC1;
	Ttype190849* typ;
	NI length;
	NimStringDesc* pat;
	NI start;
	memset((void*)(&op), 0, sizeof(op));
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*ri).kindU.S6.sons->data[((NI) 0)], (&op));
	memset((void*)LOC1, 0, sizeof(LOC1));
	pl = HEX25_162235(((NimStringDesc*) &TMP3954), LOC1, 0);
	typ = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
	length = sonslen_193403(ri);
	pat = (*(*(*(*ri).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).loc.r).data;
	{
		NimStringDesc* LOC6;
		if (!!(!((pat == NIM_NIL)))) goto LA4;
		LOC6 = 0;
		LOC6 = HEX24_165306(TMP3955);
		internalerror_165218(LOC6);
	}
	LA4: ;
	start = ((NI) 3);
	{
		NIM_BOOL LOC9;
		LOC9 = 0;
		LOC9 = contains_99351(pat, 32);
		if (!LOC9) goto LA10;
		start = ((NI) 1);
		add_161534(&pl, op.r);
		{
			TY460664 LOC16;
			Ropeobj161009* LOC17;
			Ropeobj161009* LOC18;
			if (!(((NI) 1) < length)) goto LA14;
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC17 = 0;
			LOC17 = HEX25_162235(((NimStringDesc*) &TMP3956), LOC16, 0);
			add_161534(&pl, LOC17);
			LOC18 = 0;
			LOC18 = genarg_467595(p, (*ri).kindU.S6.sons->data[((NI) 1)], (*(*(*typ).n).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym, ri);
			add_161534(&pl, LOC18);
			start = ((NI) 2);
		}
		LA14: ;
	}
	goto LA7;
	LA10: ;
	{
		{
			Ropeobj161009* LOC24;
			TY460664 LOC25;
			Ropeobj161009* LOC26;
			if (!(((NI) 1) < length)) goto LA22;
			LOC24 = 0;
			LOC24 = genarg_467595(p, (*ri).kindU.S6.sons->data[((NI) 1)], (*(*(*typ).n).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym, ri);
			add_161534(&pl, LOC24);
			memset((void*)LOC25, 0, sizeof(LOC25));
			LOC26 = 0;
			LOC26 = HEX25_162235(((NimStringDesc*) &TMP3537), LOC25, 0);
			add_161534(&pl, LOC26);
		}
		LA22: ;
		add_161534(&pl, op.r);
		{
			TY460664 LOC31;
			Ropeobj161009* LOC32;
			Ropeobj161009* LOC33;
			if (!(((NI) 2) < length)) goto LA29;
			memset((void*)LOC31, 0, sizeof(LOC31));
			LOC32 = 0;
			LOC32 = HEX25_162235(((NimStringDesc*) &TMP3956), LOC31, 0);
			add_161534(&pl, LOC32);
			LOC33 = 0;
			LOC33 = genarg_467595(p, (*ri).kindU.S6.sons->data[((NI) 2)], (*(*(*typ).n).kindU.S6.sons->data[((NI) 2)]).kindU.S4.sym, ri);
			add_161534(&pl, LOC33);
		}
		LA29: ;
	}
	LA7: ;
	{
		NI i_471051;
		NI HEX3Atmp_471618;
		NI res_471621;
		i_471051 = 0;
		HEX3Atmp_471618 = 0;
		HEX3Atmp_471618 = (NI)(length - ((NI) 1));
		res_471621 = start;
		{
			while (1) {
				Tsym190843* param;
				TY460664 LOC42;
				Ropeobj161009* LOC43;
				TY460664 LOC44;
				Ropeobj161009* LOC45;
				Ropeobj161009* LOC46;
				if (!(res_471621 <= HEX3Atmp_471618)) goto LA36;
				i_471051 = res_471621;
				{
					NI LOC39;
					LOC39 = 0;
					LOC39 = sonslen_193351(typ);
					if (!(LOC39 <= i_471051)) goto LA40;
					internalerror_165199((*ri).info, ((NimStringDesc*) &TMP3957));
				}
				LA40: ;
				param = (*(*(*typ).n).kindU.S6.sons->data[i_471051]).kindU.S4.sym;
				memset((void*)LOC42, 0, sizeof(LOC42));
				LOC43 = 0;
				LOC43 = HEX25_162235(((NimStringDesc*) &TMP3537), LOC42, 0);
				add_161534(&pl, LOC43);
				add_161545(&pl, (*(*param).name).s);
				memset((void*)LOC44, 0, sizeof(LOC44));
				LOC45 = 0;
				LOC45 = HEX25_162235(((NimStringDesc*) &TMP3956), LOC44, 0);
				add_161534(&pl, LOC45);
				LOC46 = 0;
				LOC46 = genarg_467595(p, (*ri).kindU.S6.sons->data[i_471051], param, ri);
				add_161534(&pl, LOC46);
				res_471621 += ((NI) 1);
			} LA36: ;
		}
	}
	{
		if (!!(((*typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA49;
		{
			NIM_BOOL LOC53;
			LOC53 = 0;
			LOC53 = isinvalidreturntype_460948((*typ).sons->data[((NI) 0)]);
			if (!LOC53) goto LA54;
			{
				NI LOC58;
				TY460664 LOC61;
				Ropeobj161009* LOC62;
				LOC58 = 0;
				LOC58 = sonslen_193403(ri);
				if (!(((NI) 1) < LOC58)) goto LA59;
				memset((void*)LOC61, 0, sizeof(LOC61));
				LOC62 = 0;
				LOC62 = HEX25_162235(((NimStringDesc*) &TMP3537), LOC61, 0);
				add_161534(&pl, LOC62);
			}
			LA59: ;
			{
				TY460664 LOC71;
				Ropeobj161009* LOC72;
				Ropeobj161009* LOC73;
				TY460664 LOC74;
				Ropeobj161009* LOC75;
				if (!((3 &(1<<(((*d).k)&15)))!=0)) goto LA65;
				{
					if (!((*d).k == ((NU8) 0))) goto LA69;
					gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_TRUE);
				}
				LA69: ;
				memset((void*)LOC71, 0, sizeof(LOC71));
				LOC72 = 0;
				LOC72 = HEX25_162235(((NimStringDesc*) &TMP3958), LOC71, 0);
				add_161534(&pl, LOC72);
				LOC73 = 0;
				LOC73 = addrloc_465615((*d));
				add_161534(&pl, LOC73);
				memset((void*)LOC74, 0, sizeof(LOC74));
				LOC75 = 0;
				LOC75 = HEX25_162235(((NimStringDesc*) &TMP3959), LOC74, 0);
				add_161534(&pl, LOC75);
				line_459975(p, ((NU8) 2), pl);
			}
			goto LA63;
			LA65: ;
			{
				Tloc190827 tmp;
				Ropeobj161009* LOC77;
				TY460664 LOC78;
				Ropeobj161009* LOC79;
				memset((void*)(&tmp), 0, sizeof(tmp));
				gettemp_464444(p, (*typ).sons->data[((NI) 0)], (&tmp), NIM_TRUE);
				LOC77 = 0;
				LOC77 = addrloc_465615(tmp);
				add_161534(&pl, LOC77);
				memset((void*)LOC78, 0, sizeof(LOC78));
				LOC79 = 0;
				LOC79 = HEX25_162235(((NimStringDesc*) &TMP3959), LOC78, 0);
				add_161534(&pl, LOC79);
				line_459975(p, ((NU8) 2), pl);
				genassignment_466906(p, (*d), tmp, 0);
			}
			LA63: ;
		}
		goto LA51;
		LA54: ;
		{
			TY460664 LOC81;
			Ropeobj161009* LOC82;
			Tloc190827 list;
			memset((void*)LOC81, 0, sizeof(LOC81));
			LOC82 = 0;
			LOC82 = HEX25_162235(((NimStringDesc*) &TMP3960), LOC81, 0);
			add_161534(&pl, LOC82);
			{
				if (!((*d).k == ((NU8) 0))) goto LA85;
				gettemp_464444(p, (*typ).sons->data[((NI) 0)], d, NIM_FALSE);
			}
			LA85: ;
			memset((void*)(&list), 0, sizeof(list));
			initloc_459300((&list), ((NU8) 9), NIM_NIL, ((NU8) 0));
			list.r = pl;
			genassignment_466906(p, (*d), list, 0);
		}
		LA51: ;
	}
	goto LA47;
	LA49: ;
	{
		TY460664 LOC88;
		Ropeobj161009* LOC89;
		memset((void*)LOC88, 0, sizeof(LOC88));
		LOC89 = 0;
		LOC89 = HEX25_162235(((NimStringDesc*) &TMP3959), LOC88, 0);
		add_161534(&pl, LOC89);
		line_459975(p, ((NU8) 2), pl);
	}
	LA47: ;
}

N_NIMCALL(void, genprefixcall_467769)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d) {
	Tloc190827 op;
	Ropeobj161009* params;
	Ttype190849* typ;
	NI length;
	memset((void*)(&op), 0, sizeof(op));
	initlocexpr_466937(p, (*ri).kindU.S6.sons->data[((NI) 0)], (&op));
	params = 0;
	typ = skiptypes_194167((*(*ri).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
	length = sonslen_193403(ri);
	{
		NI i_468014;
		NI HEX3Atmp_468212;
		NI res_468215;
		i_468014 = 0;
		HEX3Atmp_468212 = 0;
		HEX3Atmp_468212 = (NI)(length - ((NI) 1));
		res_468215 = ((NI) 1);
		{
			while (1) {
				if (!(res_468215 <= HEX3Atmp_468212)) goto LA3;
				i_468014 = res_468215;
				{
					{
						NIM_BOOL LOC7;
						LOC7 = 0;
						LOC7 = iscompiletimeonly_229712((*(*ri).kindU.S6.sons->data[i_468014]).typ);
						if (!LOC7) goto LA8;
						goto LA4;
					}
					LA8: ;
					{
						TY460664 LOC14;
						Ropeobj161009* LOC15;
						if (!!((params == NIM_NIL))) goto LA12;
						memset((void*)LOC14, 0, sizeof(LOC14));
						LOC15 = 0;
						LOC15 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC14, 0);
						add_161534(&params, LOC15);
					}
					LA12: ;
					{
						NI LOC18;
						Ropeobj161009* LOC21;
						LOC18 = 0;
						LOC18 = sonslen_193351(typ);
						if (!(i_468014 < LOC18)) goto LA19;
						LOC21 = 0;
						LOC21 = genarg_467595(p, (*ri).kindU.S6.sons->data[i_468014], (*(*(*typ).n).kindU.S6.sons->data[i_468014]).kindU.S4.sym, ri);
						add_161534(&params, LOC21);
					}
					goto LA16;
					LA19: ;
					{
						Ropeobj161009* LOC23;
						LOC23 = 0;
						LOC23 = genargnoparam_467749(p, (*ri).kindU.S6.sons->data[i_468014]);
						add_161534(&params, LOC23);
					}
					LA16: ;
				} LA4: ;
				res_468215 += ((NI) 1);
			} LA3: ;
		}
	}
	fixupcall_467098(p, le, ri, d, op.r, params);
}

static N_INLINE(void, poststmtactions_460366)(Tcproc456034* p) {
	Ropeobj161009** LOC1;
	LOC1 = 0;
	LOC1 = s_456184(p, ((NU8) 2));
	add_161534(LOC1, (*(*p).module).injectstmt);
}

N_NIMCALL(void, gencall_471645)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	{
		if (!((*(*(*e).kindU.S6.sons->data[((NI) 0)]).typ).callconv == ((NU8) 8))) goto LA3;
		genclosurecall_468234(p, NIM_NIL, e, d);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = ((*(*e).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
		if (!(LOC6)) goto LA7;
		LOC6 = (((*(*(*e).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 27))&31)))!=0);
		LA7: ;
		if (!LOC6) goto LA8;
		geninfixcall_469779(p, NIM_NIL, e, d);
	}
	goto LA1;
	LA8: ;
	{
		NIM_BOOL LOC11;
		LOC11 = 0;
		LOC11 = ((*(*e).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
		if (!(LOC11)) goto LA12;
		LOC11 = (((*(*(*e).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 28))&31)))!=0);
		LA12: ;
		if (!LOC11) goto LA13;
		gennamedparamcall_470629(p, e, d);
	}
	goto LA1;
	LA13: ;
	{
		genprefixcall_467769(p, NIM_NIL, e, d);
	}
	LA1: ;
	poststmtactions_460366(p);
}

N_NIMCALL(void, genreset_484144)(Tcproc456034* p, Tnode190813* n) {
	Tloc190827 a;
	TY490436 LOC1;
	Ttype190849* LOC2;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 1)], (&a));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = addrloc_465615(a);
	LOC2 = 0;
	LOC2 = skiptypes_194167(a.t, IL64(211106242013440));
	LOC1[1] = gentypeinfo_463368((*p).module, LOC2);
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3945), LOC1, 2);
}

N_NIMCALL(void, genecho_483599)(Tcproc456034* p, Tnode190813* n) {
	NIM_BOOL LOC6;
	Ropeobj161009* args;
	Tloc190827 a;
	TY490436 LOC18;
	NimStringDesc* LOC19;
	NI LOC20;
	NimStringDesc* LOC21;
	{
		NimStringDesc* LOC5;
		if (!!(((*n).kind == ((NU8) 41)))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_165306(TMP3961);
		internalerror_165218(LOC5);
	}
	LA3: ;
	LOC6 = 0;
	LOC6 = includestr_130279((&(*(*p).module).headerfiles), ((NimStringDesc*) &TMP3962));
	args = NIM_NIL;
	memset((void*)(&a), 0, sizeof(a));
	{
		NI i_483635;
		NI HEX3Atmp_483659;
		NI LOC8;
		NI res_483662;
		i_483635 = 0;
		HEX3Atmp_483659 = 0;
		LOC8 = 0;
		LOC8 = len_191097(n);
		HEX3Atmp_483659 = (NI)(LOC8 - ((NI) 1));
		res_483662 = ((NI) 0);
		{
			while (1) {
				if (!(res_483662 <= HEX3Atmp_483659)) goto LA10;
				i_483635 = res_483662;
				{
					Tnode190813* LOC13;
					LOC13 = 0;
					LOC13 = skipconv_229935((*n).kindU.S6.sons->data[i_483635]);
					if (!((*LOC13).kind == ((NU8) 23))) goto LA14;
					add_161545(&args, ((NimStringDesc*) &TMP3963));
				}
				goto LA11;
				LA14: ;
				{
					TY161572 LOC17;
					initlocexpr_466937(p, (*n).kindU.S6.sons->data[i_483635], (&a));
					memset((void*)LOC17, 0, sizeof(LOC17));
					LOC17[0] = rdloc_465593(a);
					addf_162635(&args, ((NimStringDesc*) &TMP3964), LOC17, 1);
				}
				LA11: ;
				res_483662 += ((NI) 1);
			} LA10: ;
		}
	}
	memset((void*)LOC18, 0, sizeof(LOC18));
	LOC19 = 0;
	LOC20 = 0;
	LOC20 = len_191097(n);
	LOC21 = 0;
	LOC21 = nsuRepeatStr(((NimStringDesc*) &TMP3966), ((NI) (LOC20)));
	LOC19 = rawNewString(LOC21->Sup.len + tnl_159626->Sup.len + 0);
appendString(LOC19, LOC21);
appendString(LOC19, tnl_159626);
	LOC18[0] = makecstring_163449(LOC19);
	LOC18[1] = args;
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3965), LOC18, 2);
}

N_NIMCALL(void, genseqconstr_484441)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	Tloc190827 arr;
	NI LOC5;
	Ropeobj161009* LOC6;
	memset((void*)(&arr), 0, sizeof(arr));
	{
		if (!((*d).k == ((NU8) 0))) goto LA3;
		gettemp_464444(p, (*t).typ, d, NIM_FALSE);
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = sonslen_193403(t);
	LOC6 = 0;
	LOC6 = intliteral_466915(((NI64) (LOC5)));
	gennewseqaux_484216(p, (*d), LOC6);
	{
		NI i_484469;
		NI HEX3Atmp_484477;
		NI LOC8;
		NI res_484480;
		i_484469 = 0;
		HEX3Atmp_484477 = 0;
		LOC8 = 0;
		LOC8 = sonslen_193403(t);
		HEX3Atmp_484477 = (NI)(LOC8 - ((NI) 1));
		res_484480 = ((NI) 0);
		{
			while (1) {
				Ttype190849* LOC11;
				Ttype190849* LOC12;
				TY490436 LOC13;
				if (!(res_484480 <= HEX3Atmp_484477)) goto LA10;
				i_484469 = res_484480;
				LOC11 = 0;
				LOC11 = skiptypes_194167((*t).typ, IL64(211106232576256));
				LOC12 = 0;
				LOC12 = elemtype_220522(LOC11);
				initloc_459300((&arr), ((NU8) 6), LOC12, ((NU8) 2));
				memset((void*)LOC13, 0, sizeof(LOC13));
				LOC13[0] = rdloc_465593((*d));
				LOC13[1] = intliteral_466915(((NI64) (i_484469)));
				arr.r = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3667), LOC13, 2);
				arr.s = ((NU8) 2);
				expr_466881(p, (*t).kindU.S6.sons->data[i_484469], (&arr));
				res_484480 += ((NI) 1);
			} LA10: ;
		}
	}
	gcusage_483678(t);
}

N_NIMCALL(void, genarrtoseq_484496)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	Tloc190827 elem;
	Tloc190827 a;
	Tloc190827 arr;
	NI L;
	NI64 LOC9;
	Ropeobj161009* LOC10;
{	memset((void*)(&elem), 0, sizeof(elem));
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&arr), 0, sizeof(arr));
	{
		if (!((*t).kind == ((NU8) 41))) goto LA3;
		asgnRefNoCycle((void**) (&(*(*t).kindU.S6.sons->data[((NI) 1)]).typ), (*t).typ);
		genseqconstr_484441(p, (*t).kindU.S6.sons->data[((NI) 1)], d);
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*d).k == ((NU8) 0))) goto LA7;
		gettemp_464444(p, (*t).typ, d, NIM_FALSE);
	}
	LA7: ;
	LOC9 = 0;
	LOC9 = lengthord_220016((*(*t).kindU.S6.sons->data[((NI) 1)]).typ);
	L = ((NI) (LOC9));
	LOC10 = 0;
	LOC10 = intliteral_466915(((NI64) (L)));
	gennewseqaux_484216(p, (*d), LOC10);
	initlocexpr_466937(p, (*t).kindU.S6.sons->data[((NI) 1)], (&a));
	{
		NI i_484541;
		NI HEX3Atmp_484554;
		NI res_484557;
		i_484541 = 0;
		HEX3Atmp_484554 = 0;
		HEX3Atmp_484554 = (NI)(L - ((NI) 1));
		res_484557 = ((NI) 0);
		{
			while (1) {
				Ttype190849* LOC14;
				Ttype190849* LOC15;
				TY490436 LOC16;
				Ttype190849* LOC17;
				Ttype190849* LOC18;
				TY490436 LOC19;
				if (!(res_484557 <= HEX3Atmp_484554)) goto LA13;
				i_484541 = res_484557;
				LOC14 = 0;
				LOC14 = skiptypes_194167((*t).typ, IL64(211106232576256));
				LOC15 = 0;
				LOC15 = elemtype_220522(LOC14);
				initloc_459300((&elem), ((NU8) 6), LOC15, ((NU8) 2));
				memset((void*)LOC16, 0, sizeof(LOC16));
				LOC16[0] = rdloc_465593((*d));
				LOC16[1] = intliteral_466915(((NI64) (i_484541)));
				elem.r = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3667), LOC16, 2);
				elem.s = ((NU8) 2);
				LOC17 = 0;
				LOC17 = skiptypes_194167((*(*t).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106232576256));
				LOC18 = 0;
				LOC18 = elemtype_220522(LOC17);
				initloc_459300((&arr), ((NU8) 6), LOC18, a.s);
				memset((void*)LOC19, 0, sizeof(LOC19));
				LOC19[0] = rdloc_465593(a);
				LOC19[1] = intliteral_466915(((NI64) (i_484541)));
				arr.r = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3611), LOC19, 2);
				genassignment_466906(p, elem, arr, 5);
				res_484557 += ((NI) 1);
			} LA13: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(void, gendeepcopy_479441)(Tcproc456034* p, Tloc190827 dest, Tloc190827 src) {
	Ttype190849* ty;
	ty = skiptypes_194167(dest.t, IL64(211106242013440));
	switch ((*ty).kind) {
	case ((NU8) 21):
	case ((NU8) 22):
	case ((NU8) 25):
	case ((NU8) 18):
	case ((NU8) 17):
	case ((NU8) 16):
	case ((NU8) 4):
	{
		TY462569 LOC2;
		memset((void*)LOC2, 0, sizeof(LOC2));
		LOC2[0] = addrloc_465615(dest);
		LOC2[1] = addrloc_465615(src);
		LOC2[2] = gentypeinfo_463368((*p).module, dest.t);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4028), LOC2, 3);
	}
	break;
	case ((NU8) 24):
	case ((NU8) 28):
	{
		TY462569 LOC4;
		memset((void*)LOC4, 0, sizeof(LOC4));
		LOC4[0] = addrloc_465615(dest);
		LOC4[1] = rdloc_465593(src);
		LOC4[2] = gentypeinfo_463368((*p).module, dest.t);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4029), LOC4, 3);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		TY462569 LOC6;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = addrloc_465615(dest);
		LOC6[1] = addrloc_465615(src);
		LOC6[2] = gentypeinfo_463368((*p).module, dest.t);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4030), LOC6, 3);
	}
	break;
	case ((NU8) 19):
	{
		{
			NU8 LOC10;
			TY462569 LOC13;
			NI64 LOC14;
			LOC10 = 0;
			LOC10 = maptype_460778(ty);
			if (!(LOC10 == ((NU8) 17))) goto LA11;
			usestringh_459390((*p).module);
			memset((void*)LOC13, 0, sizeof(LOC13));
			LOC13[0] = rdloc_465593(dest);
			LOC13[1] = rdloc_465593(src);
			LOC14 = 0;
			LOC14 = getsize_220190(dest.t);
			LOC13[2] = rope_161407(LOC14);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3714), LOC13, 3);
		}
		goto LA8;
		LA11: ;
		{
			TY490436 LOC16;
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC16[0] = rdloc_465593(dest);
			LOC16[1] = rdloc_465593(src);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC16, 2);
		}
		LA8: ;
	}
	break;
	case ((NU8) 26):
	case ((NU8) 2):
	case ((NU8) 1):
	case ((NU8) 14):
	case ((NU8) 29):
	case ((NU8) 31) ... ((NU8) 44):
	case ((NU8) 20):
	case ((NU8) 23):
	{
		TY490436 LOC18;
		memset((void*)LOC18, 0, sizeof(LOC18));
		LOC18[0] = rdloc_465593(dest);
		LOC18[1] = rdloc_465593(src);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP3693), LOC18, 2);
	}
	break;
	default:
	{
		NimStringDesc* LOC20;
		LOC20 = 0;
		LOC20 = rawNewString(reprEnum((*ty).kind, (&NTI190260))->Sup.len + 13);
appendString(LOC20, ((NimStringDesc*) &TMP4031));
appendString(LOC20, reprEnum((*ty).kind, (&NTI190260)));
		internalerror_165218(LOC20);
	}
	break;
	}
}

N_NIMCALL(void, genmagicexpr_486836)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NU16 op) {
	Ropeobj161009* line;
	Ropeobj161009* filen;
	line = 0;
	filen = 0;
	switch (op) {
	case ((NU16) 138):
	case ((NU16) 137):
	{
		genandor_483538(p, e, d, op);
	}
	break;
	case ((NU16) 109) ... ((NU16) 128):
	{
		unaryarith_481852(p, e, d, op);
	}
	break;
	case ((NU16) 105) ... ((NU16) 108):
	{
		unaryarithoverflow_480827(p, e, d, op);
	}
	break;
	case ((NU16) 53) ... ((NU16) 56):
	{
		binaryfloatarith_486366(p, e, d, op);
	}
	break;
	case ((NU16) 57) ... ((NU16) 103):
	{
		binaryarith_481022(p, e, d, op);
	}
	break;
	case ((NU16) 104):
	{
		geneqproc_481417(p, e, d);
	}
	break;
	case ((NU16) 41) ... ((NU16) 52):
	{
		binaryarithoverflow_480474(p, e, d, op);
	}
	break;
	case ((NU16) 160):
	{
		genrepr_484960(p, e, d);
	}
	break;
	case ((NU16) 262):
	{
		gengettypeinfo_485007(p, e, d);
	}
	break;
	case ((NU16) 167):
	{
		genswap_485244(p, e, d);
	}
	break;
	case ((NU16) 22):
	{
		{
			if (!!((((*p).options &(1<<((((NU8) 5))&31)))!=0))) goto LA14;
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3837));
		}
		goto LA12;
		LA14: ;
		{
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3838));
		}
		LA12: ;
	}
	break;
	case ((NU16) 23):
	case ((NU16) 24):
	{
		Ttype190849* underlying;
		underlying = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, 9439232);
		{
			NIM_BOOL LOC20;
			LOC20 = 0;
			LOC20 = !((((*p).options &(1<<((((NU8) 5))&31)))!=0));
			if (LOC20) goto LA21;
			LOC20 = ((*underlying).kind >= ((NU8) 40) && (*underlying).kind <= ((NU8) 44));
			LA21: ;
			if (!LOC20) goto LA22;
			binarystmt_479597(p, e, d, opr_486855[(op)- 23]);
		}
		goto LA18;
		LA22: ;
		{
			Tloc190827 a;
			Tloc190827 b;
			Ttype190849* ranged;
			Ropeobj161009* res;
			NimStringDesc* LOC25;
			TY490436 LOC31;
			Ropeobj161009* LOC32;
			memset((void*)(&a), 0, sizeof(a));
			memset((void*)(&b), 0, sizeof(b));
			initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 1)], (&a));
			initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
			ranged = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, 8390656);
			LOC25 = 0;
			{
				if (!((*underlying).kind == ((NU8) 35))) goto LA28;
				LOC25 = copyString(fun64_486860[(op)- 23]);
			}
			goto LA26;
			LA28: ;
			{
				LOC25 = copyString(fun_486865[(op)- 23]);
			}
			LA26: ;
			res = binaryarithoverflowraw_480444(p, ranged, a, b, LOC25);
			memset((void*)LOC31, 0, sizeof(LOC31));
			LOC31[0] = gettypedesc_463073((*p).module, ranged);
			LOC31[1] = res;
			LOC32 = 0;
			LOC32 = HEX25_162235(((NimStringDesc*) &TMP3823), LOC31, 2);
			putintodest_479562(p, (&a), ranged, LOC32);
		}
		LA18: ;
	}
	break;
	case ((NU16) 149):
	{
		genstrconcat_483694(p, e, d);
	}
	break;
	case ((NU16) 155):
	{
		binarystmt_479597(p, e, d, ((NimStringDesc*) &TMP3846));
	}
	break;
	case ((NU16) 156):
	{
		genstrappend_483808(p, e, d);
	}
	break;
	case ((NU16) 157):
	{
		genseqelemappend_484096(p, e, d);
	}
	break;
	case ((NU16) 139):
	{
		genstrequals_486301(p, e, d);
	}
	break;
	case ((NU16) 140):
	{
		binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3853));
	}
	break;
	case ((NU16) 141):
	{
		binaryexpr_479680(p, e, d, ((NimStringDesc*) &TMP3854));
	}
	break;
	case ((NU16) 168):
	{
		genisnil_481823(p, e, d);
	}
	break;
	case ((NU16) 131):
	{
		gendollar_485018(p, e, d, ((NimStringDesc*) &TMP3857));
	}
	break;
	case ((NU16) 132):
	{
		gendollar_485018(p, e, d, ((NimStringDesc*) &TMP3858));
	}
	break;
	case ((NU16) 130):
	{
		gendollar_485018(p, e, d, ((NimStringDesc*) &TMP3859));
	}
	break;
	case ((NU16) 129):
	{
		gendollar_485018(p, e, d, ((NimStringDesc*) &TMP3860));
	}
	break;
	case ((NU16) 133):
	{
		gendollar_485018(p, e, d, ((NimStringDesc*) &TMP3861));
	}
	break;
	case ((NU16) 134):
	{
		gendollar_485018(p, e, d, ((NimStringDesc*) &TMP3862));
	}
	break;
	case ((NU16) 135):
	{
		expr_466881(p, (*e).kindU.S6.sons->data[((NI) 1)], d);
	}
	break;
	case ((NU16) 136):
	{
		genrepr_484960(p, e, d);
	}
	break;
	case ((NU16) 9):
	{
		genof_484949(p, e, d);
	}
	break;
	case ((NU16) 26):
	{
		gennew_484200(p, e);
	}
	break;
	case ((NU16) 27):
	{
		gennewfinalize_484573(p, e);
	}
	break;
	case ((NU16) 28):
	{
		gennewseq_484247(p, e);
	}
	break;
	case ((NU16) 6):
	{
		Ttype190849* t;
		TY161572 LOC54;
		Ropeobj161009* LOC55;
		t = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, 256);
		memset((void*)LOC54, 0, sizeof(LOC54));
		LOC54[0] = gettypedesc_463073((*p).module, t);
		LOC55 = 0;
		LOC55 = HEX25_162235(((NimStringDesc*) &TMP3878), LOC54, 1);
		putintodest_479562(p, d, (*e).typ, LOC55);
	}
	break;
	case ((NU16) 38):
	{
		gensomecast_486098(p, e, d);
	}
	break;
	case ((NU16) 25):
	{
		genord_486089(p, e, d);
	}
	break;
	case ((NU16) 31):
	case ((NU16) 5):
	case ((NU16) 30):
	case ((NU16) 32):
	case ((NU16) 29):
	{
		genarraylen_485044(p, e, d, op);
	}
	break;
	case ((NU16) 33):
	case ((NU16) 34):
	{
		{
			NIM_BOOL LOC62;
			LOC62 = 0;
			LOC62 = (gcmd_154130 == ((NU8) 2));
			if (LOC62) goto LA63;
			LOC62 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA63: ;
			if (!!(LOC62)) goto LA64;
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3890));
		}
		goto LA60;
		LA64: ;
		{
			unaryexpr_480412(p, e, d, ((NimStringDesc*) &TMP3891));
		}
		LA60: ;
	}
	break;
	case ((NU16) 39):
	{
		unarystmt_479626(p, e, d, ((NimStringDesc*) &TMP3893));
	}
	break;
	case ((NU16) 40):
	{
		unarystmt_479626(p, e, d, ((NimStringDesc*) &TMP3894));
	}
	break;
	case ((NU16) 162):
	{
		gensetlengthstr_485235(p, e, d);
	}
	break;
	case ((NU16) 163):
	{
		gensetlengthseq_485132(p, e, d);
	}
	break;
	case ((NU16) 35):
	case ((NU16) 36):
	case ((NU16) 37):
	case ((NU16) 144):
	case ((NU16) 143):
	case ((NU16) 142):
	case ((NU16) 145):
	case ((NU16) 146):
	case ((NU16) 147):
	case ((NU16) 159):
	{
		gensetop_486031(p, e, d, op);
	}
	break;
	case ((NU16) 172):
	case ((NU16) 173):
	case ((NU16) 170):
	case ((NU16) 171):
	case ((NU16) 161):
	case ((NU16) 174):
	{
		Tsym190843* opr;
		opr = (*(*e).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			NimStringDesc* LOC77;
			Ropeobj161009* LOC78;
			if (!!((((*opr).loc.flags &(1<<((((NU8) 3))&15)))!=0))) goto LA75;
			LOC77 = 0;
			LOC77 = HEX24_162131((*opr).loc.r);
			LOC78 = 0;
			LOC78 = cgsym_459609((*p).module, LOC77);
		}
		LA75: ;
		gencall_471645(p, e, d);
	}
	break;
	case ((NU16) 175):
	{
		genreset_484144(p, e);
	}
	break;
	case ((NU16) 14):
	{
		Tnode190813* LOC81;
		Tnode190813* LOC82;
		LOC81 = 0;
		LOC81 = HEX5BHEX5D_191244(e, ((NI) 1));
		LOC82 = 0;
		LOC82 = skipconv_229935(LOC81);
		genecho_483599(p, LOC82);
	}
	break;
	case ((NU16) 169):
	{
		genarrtoseq_484496(p, e, d);
	}
	break;
	case ((NU16) 228) ... ((NU16) 260):
	case ((NU16) 16) ... ((NU16) 21):
	{
		localerror_165155((*e).info, ((NU16) 224), (*(*(*(*e).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).name).s);
	}
	break;
	case ((NU16) 213):
	{
		Tnode190813* n;
		n = wrapprocforspawn_359607((*(*p).module).module, e, (*e).typ, NIM_NIL, NIM_NIL);
		expr_466881(p, n, d);
	}
	break;
	case ((NU16) 166):
	{
		Tnode190813* n;
		n = liftparallel_405254((*(*p).module).module, e);
		expr_466881(p, n, d);
	}
	break;
	case ((NU16) 214):
	{
		Tloc190827 a;
		Tloc190827 b;
		Tnode190813* x;
		memset((void*)(&a), 0, sizeof(a));
		memset((void*)(&b), 0, sizeof(b));
		{
			Tnode190813* LOC90;
			Tnode190813* LOC93;
			LOC90 = 0;
			LOC90 = HEX5BHEX5D_191244(e, ((NI) 1));
			if (!((*LOC90).kind == ((NU8) 63) || (*LOC90).kind == ((NU8) 64))) goto LA91;
			LOC93 = 0;
			LOC93 = HEX5BHEX5D_191244(e, ((NI) 1));
			x = HEX5BHEX5D_191244(LOC93, ((NI) 0));
		}
		goto LA88;
		LA91: ;
		{
			x = HEX5BHEX5D_191244(e, ((NI) 1));
		}
		LA88: ;
		initlocexpr_466937(p, x, (&a));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 2)], (&b));
		gendeepcopy_479441(p, a, b);
	}
	break;
	case ((NU16) 151):
	{
		gencall_471645(p, e, d);
	}
	break;
	default:
	{
		NimStringDesc* LOC97;
		LOC97 = 0;
		LOC97 = rawNewString(reprEnum(op, (&NTI190529))->Sup.len + 14);
appendString(LOC97, ((NimStringDesc*) &TMP4032));
appendString(LOC97, reprEnum(op, (&NTI190529)));
		internalerror_165199((*e).info, LOC97);
	}
	break;
	}
}

N_NIMCALL(Ropeobj161009*, gensetnode_478690)(Tcproc456034* p, Tnode190813* n) {
	Ropeobj161009* result;
	Tbitset239012* cs;
	NI size;
	NI64 LOC1;
	result = 0;
	cs = 0;
	LOC1 = 0;
	LOC1 = getsize_220190((*n).typ);
	size = ((NI) (LOC1));
	tobitset_240004(n, (&cs));
	{
		NI id;
		Ropeobj161009* LOC6;
		if (!(((NI) 8) < size)) goto LA4;
		id = nodetabletestorset_242698((&(*(*p).module).datacache), n, gbackendid_189013);
		LOC6 = 0;
		LOC6 = rope_161407(((NI64) (id)));
		result = HEX26_161482(((NimStringDesc*) &TMP3648), LOC6);
		{
			TY462569 LOC11;
			if (!(id == gbackendid_189013)) goto LA9;
			gbackendid_189013 += ((NI) 1);
			memset((void*)LOC11, 0, sizeof(LOC11));
			LOC11[0] = gettypedesc_463073((*p).module, (*n).typ);
			LOC11[1] = result;
			LOC11[2] = genrawsetdata_478642(cs, size);
			addf_162635(&(*(*p).module).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP4033), LOC11, 3);
		}
		LA9: ;
	}
	goto LA2;
	LA4: ;
	{
		result = genrawsetdata_478642(cs, size);
	}
	LA2: ;
	return result;
}

N_NIMCALL(void, gensetconstr_487351)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Tloc190827 idx;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	memset((void*)(&idx), 0, sizeof(idx));
	{
		Ropeobj161009* LOC5;
		if (!(((*e).flags &(1<<((((NU8) 4))&15)))!=0)) goto LA3;
		LOC5 = 0;
		LOC5 = gensetnode_478690(p, e);
		putintodest_479562(p, d, (*e).typ, LOC5);
	}
	goto LA1;
	LA3: ;
	{
		{
			if (!((*d).k == ((NU8) 0))) goto LA9;
			gettemp_464444(p, (*e).typ, d, NIM_FALSE);
		}
		LA9: ;
		{
			NI64 LOC13;
			TY161572 LOC16;
			LOC13 = 0;
			LOC13 = getsize_220190((*e).typ);
			if (!(IL64(8) < LOC13)) goto LA14;
			usestringh_459390((*p).module);
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC16[0] = rdloc_465593((*d));
			linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4034), LOC16, 1);
			{
				NI i_487393;
				NI HEX3Atmp_487460;
				NI LOC18;
				NI res_487463;
				i_487393 = 0;
				HEX3Atmp_487460 = 0;
				LOC18 = 0;
				LOC18 = sonslen_193403(e);
				HEX3Atmp_487460 = (NI)(LOC18 - ((NI) 1));
				res_487463 = ((NI) 0);
				{
					while (1) {
						if (!(res_487463 <= HEX3Atmp_487460)) goto LA20;
						i_487393 = res_487463;
						{
							Ttype190849* LOC25;
							TY462566 LOC26;
							if (!((*(*e).kindU.S6.sons->data[i_487393]).kind == ((NU8) 44))) goto LA23;
							LOC25 = 0;
							LOC25 = getsystype_238030(((NU8) 31));
							gettemp_464444(p, LOC25, (&idx), NIM_FALSE);
							initlocexpr_466937(p, (*(*e).kindU.S6.sons->data[i_487393]).kindU.S6.sons->data[((NI) 0)], (&a));
							initlocexpr_466937(p, (*(*e).kindU.S6.sons->data[i_487393]).kindU.S6.sons->data[((NI) 1)], (&b));
							memset((void*)LOC26, 0, sizeof(LOC26));
							LOC26[0] = rdloc_465593(idx);
							LOC26[1] = rdloc_465593((*d));
							LOC26[2] = rdsetelemloc_485271(a, (*e).typ);
							LOC26[3] = rdsetelemloc_485271(b, (*e).typ);
							linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4035), LOC26, 4);
						}
						goto LA21;
						LA23: ;
						{
							TY490436 LOC28;
							initlocexpr_466937(p, (*e).kindU.S6.sons->data[i_487393], (&a));
							memset((void*)LOC28, 0, sizeof(LOC28));
							LOC28[0] = rdloc_465593((*d));
							LOC28[1] = rdsetelemloc_485271(a, (*e).typ);
							linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3923), LOC28, 2);
						}
						LA21: ;
						res_487463 += ((NI) 1);
					} LA20: ;
				}
			}
		}
		goto LA11;
		LA14: ;
		{
			NimStringDesc* ts;
			NimStringDesc* LOC30;
			NI64 LOC31;
			NimStringDesc* LOC32;
			TY161572 LOC33;
			LOC30 = 0;
			LOC31 = 0;
			LOC31 = getsize_220190((*e).typ);
			LOC32 = 0;
			LOC32 = nimInt64ToStr((NI64)(LOC31 * IL64(8)));
			LOC30 = rawNewString(LOC32->Sup.len + 2);
appendString(LOC30, ((NimStringDesc*) &TMP3516));
appendString(LOC30, LOC32);
			ts = LOC30;
			memset((void*)LOC33, 0, sizeof(LOC33));
			LOC33[0] = rdloc_465593((*d));
			linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3624), LOC33, 1);
			{
				NI i_487432;
				NI HEX3Atmp_487468;
				NI LOC35;
				NI res_487471;
				i_487432 = 0;
				HEX3Atmp_487468 = 0;
				LOC35 = 0;
				LOC35 = sonslen_193403(e);
				HEX3Atmp_487468 = (NI)(LOC35 - ((NI) 1));
				res_487471 = ((NI) 0);
				{
					while (1) {
						if (!(res_487471 <= HEX3Atmp_487468)) goto LA37;
						i_487432 = res_487471;
						{
							Ttype190849* LOC42;
							NimStringDesc* LOC43;
							TY462566 LOC44;
							if (!((*(*e).kindU.S6.sons->data[i_487432]).kind == ((NU8) 44))) goto LA40;
							LOC42 = 0;
							LOC42 = getsystype_238030(((NU8) 31));
							gettemp_464444(p, LOC42, (&idx), NIM_FALSE);
							initlocexpr_466937(p, (*(*e).kindU.S6.sons->data[i_487432]).kindU.S6.sons->data[((NI) 0)], (&a));
							initlocexpr_466937(p, (*(*e).kindU.S6.sons->data[i_487432]).kindU.S6.sons->data[((NI) 1)], (&b));
							LOC43 = 0;
							LOC43 = rawNewString(ts->Sup.len + ts->Sup.len + 66);
appendString(LOC43, ((NimStringDesc*) &TMP4036));
appendString(LOC43, ts);
appendString(LOC43, ((NimStringDesc*) &TMP4037));
appendString(LOC43, ts);
appendString(LOC43, ((NimStringDesc*) &TMP3904));
							memset((void*)LOC44, 0, sizeof(LOC44));
							LOC44[0] = rdloc_465593(idx);
							LOC44[1] = rdloc_465593((*d));
							LOC44[2] = rdsetelemloc_485271(a, (*e).typ);
							LOC44[3] = rdsetelemloc_485271(b, (*e).typ);
							linef_459997(p, ((NU8) 2), LOC43, LOC44, 4);
						}
						goto LA38;
						LA40: ;
						{
							NimStringDesc* LOC46;
							TY490436 LOC47;
							initlocexpr_466937(p, (*e).kindU.S6.sons->data[i_487432], (&a));
							LOC46 = 0;
							LOC46 = rawNewString(ts->Sup.len + ts->Sup.len + 34);
appendString(LOC46, ((NimStringDesc*) &TMP4038));
appendString(LOC46, ts);
appendString(LOC46, ((NimStringDesc*) &TMP4039));
appendString(LOC46, ts);
appendString(LOC46, ((NimStringDesc*) &TMP3904));
							memset((void*)LOC47, 0, sizeof(LOC47));
							LOC47[0] = rdloc_465593((*d));
							LOC47[1] = rdsetelemloc_485271(a, (*e).typ);
							linef_459997(p, ((NU8) 2), LOC46, LOC47, 2);
						}
						LA38: ;
						res_487471 += ((NI) 1);
					} LA37: ;
				}
			}
		}
		LA11: ;
	}
	LA1: ;
}

N_NIMCALL(void, exprcomplexconst_488334)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Ttype190849* t;
	Ropeobj161009* LOC1;
	NI id;
	Ropeobj161009* tmp;
	Ropeobj161009* LOC2;
	t = getuniquetype_454656((*n).typ);
	LOC1 = 0;
	LOC1 = gettypedesc_463073((*p).module, t);
	id = nodetabletestorset_242698((&(*(*p).module).datacache), n, gbackendid_189013);
	LOC2 = 0;
	LOC2 = rope_161407(((NI64) (id)));
	tmp = HEX26_161482(((NimStringDesc*) &TMP3648), LOC2);
	{
		TY462569 LOC7;
		if (!(id == gbackendid_189013)) goto LA5;
		gbackendid_189013 += ((NI) 1);
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = gettypedesc_463073((*p).module, t);
		LOC7[1] = tmp;
		LOC7[2] = genconstexpr_487301(p, n);
		addf_162635(&(*(*p).module).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3720), LOC7, 3);
	}
	LA5: ;
	{
		if (!((*d).k == ((NU8) 0))) goto LA10;
		fillloc_459315(d, ((NU8) 8), t, tmp, ((NU8) 2));
	}
	goto LA8;
	LA10: ;
	{
		putdataintodest_479527(p, d, t, tmp);
	}
	LA8: ;
}

N_NIMCALL(NIM_BOOL, handleconstexpr_487305)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	NIM_BOOL result;
	result = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NIM_BOOL LOC5;
		NI LOC8;
		Ttype190849* t;
		Ropeobj161009* LOC12;
		NI id;
		Ropeobj161009* LOC13;
		Ropeobj161009* LOC14;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC5 = (((*n).flags &(1<<((((NU8) 4))&15)))!=0);
		if (!(LOC5)) goto LA6;
		LOC5 = ((*d).k == ((NU8) 0));
		LA6: ;
		LOC4 = LOC5;
		if (!(LOC4)) goto LA7;
		LOC8 = 0;
		LOC8 = len_191097(n);
		LOC4 = (((NI) 0) < LOC8);
		LA7: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA9;
		LOC3 = isdeepconstexpr_219459(n);
		LA9: ;
		if (!LOC3) goto LA10;
		t = getuniquetype_454656((*n).typ);
		LOC12 = 0;
		LOC12 = gettypedesc_463073((*p).module, t);
		id = nodetabletestorset_242698((&(*(*p).module).datacache), n, gbackendid_189013);
		LOC13 = 0;
		LOC13 = rope_161407(((NI64) (id)));
		LOC14 = 0;
		LOC14 = HEX26_161482(((NimStringDesc*) &TMP3648), LOC13);
		fillloc_459315(d, ((NU8) 8), t, LOC14, ((NU8) 2));
		{
			TY462569 LOC19;
			if (!(id == gbackendid_189013)) goto LA17;
			gbackendid_189013 += ((NI) 1);
			memset((void*)LOC19, 0, sizeof(LOC19));
			LOC19[0] = gettypedesc_463073((*p).module, t);
			LOC19[1] = (*d).r;
			LOC19[2] = genconstexpr_487301(p, n);
			addf_162635(&(*(*p).module).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3720), LOC19, 3);
		}
		LA17: ;
		result = NIM_TRUE;
	}
	goto LA1;
	LA10: ;
	{
		result = NIM_FALSE;
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, genarrayconstr_487830)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Tloc190827 arr;
	memset((void*)(&arr), 0, sizeof(arr));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = handleconstexpr_487305(p, n, d);
		if (!!(LOC3)) goto LA4;
		{
			if (!((*d).k == ((NU8) 0))) goto LA8;
			gettemp_464444(p, (*n).typ, d, NIM_FALSE);
		}
		LA8: ;
		{
			NI i_487858;
			NI HEX3Atmp_487866;
			NI LOC11;
			NI res_487869;
			i_487858 = 0;
			HEX3Atmp_487866 = 0;
			LOC11 = 0;
			LOC11 = sonslen_193403(n);
			HEX3Atmp_487866 = (NI)(LOC11 - ((NI) 1));
			res_487869 = ((NI) 0);
			{
				while (1) {
					Ttype190849* LOC14;
					Ttype190849* LOC15;
					TY490436 LOC16;
					if (!(res_487869 <= HEX3Atmp_487866)) goto LA13;
					i_487858 = res_487869;
					LOC14 = 0;
					LOC14 = skiptypes_194167((*n).typ, IL64(211106232576256));
					LOC15 = 0;
					LOC15 = elemtype_220522(LOC14);
					initloc_459300((&arr), ((NU8) 6), LOC15, (*d).s);
					memset((void*)LOC16, 0, sizeof(LOC16));
					LOC16[0] = rdloc_465593((*d));
					LOC16[1] = intliteral_466915(((NI64) (i_487858)));
					arr.r = HEX25_162235(((NimStringDesc*) &TMP3611), LOC16, 2);
					expr_466881(p, (*n).kindU.S6.sons->data[i_487858], (&arr));
					res_487869 += ((NI) 1);
				} LA13: ;
			}
		}
	}
	LA4: ;
}

N_NIMCALL(void, gentupleconstr_487496)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Tloc190827 rec;
	memset((void*)(&rec), 0, sizeof(rec));
	{
		NIM_BOOL LOC3;
		Ttype190849* t;
		Ropeobj161009* LOC6;
		LOC3 = 0;
		LOC3 = handleconstexpr_487305(p, n, d);
		if (!!(LOC3)) goto LA4;
		t = getuniquetype_454656((*n).typ);
		LOC6 = 0;
		LOC6 = gettypedesc_463073((*p).module, t);
		{
			if (!((*d).k == ((NU8) 0))) goto LA9;
			gettemp_464444(p, t, d, NIM_FALSE);
		}
		LA9: ;
		{
			NI i_487525;
			NI HEX3Atmp_487603;
			NI LOC12;
			NI res_487606;
			i_487525 = 0;
			HEX3Atmp_487603 = 0;
			LOC12 = 0;
			LOC12 = sonslen_193403(n);
			HEX3Atmp_487603 = (NI)(LOC12 - ((NI) 1));
			res_487606 = ((NI) 0);
			{
				while (1) {
					Tnode190813* it;
					TY490436 LOC19;
					if (!(res_487606 <= HEX3Atmp_487603)) goto LA14;
					i_487525 = res_487606;
					it = (*n).kindU.S6.sons->data[i_487525];
					{
						if (!((*it).kind == ((NU8) 34))) goto LA17;
						it = (*it).kindU.S6.sons->data[((NI) 1)];
					}
					LA17: ;
					initloc_459300((&rec), ((NU8) 6), (*it).typ, (*d).s);
					memset((void*)LOC19, 0, sizeof(LOC19));
					LOC19[0] = rdloc_465593((*d));
					LOC19[1] = rope_161407(((NI64) (i_487525)));
					rec.r = HEX25_162235(((NimStringDesc*) &TMP3665), LOC19, 2);
					expr_466881(p, it, (&rec));
					res_487606 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	LA4: ;
}

N_NIMCALL(void, genfieldcheck_482496)(Tcproc456034* p, Tnode190813* e, Ropeobj161009* obj, Tsym190843* field) {
	Tloc190827 test;
	Tloc190827 u;
	Tloc190827 v;
	memset((void*)(&test), 0, sizeof(test));
	memset((void*)(&u), 0, sizeof(u));
	memset((void*)(&v), 0, sizeof(v));
	{
		NI i_482517;
		NI HEX3Atmp_483035;
		NI LOC2;
		NI res_483038;
		i_482517 = 0;
		HEX3Atmp_483035 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(e);
		HEX3Atmp_483035 = (NI)(LOC2 - ((NI) 1));
		res_483038 = ((NI) 1);
		{
			while (1) {
				Tnode190813* it;
				Tsym190843* op;
				Tnode190813* disc;
				TY490436 LOC9;
				NI id;
				Tnode190813* LOC10;
				Ropeobj161009* strlit;
				if (!(res_483038 <= HEX3Atmp_483035)) goto LA4;
				i_482517 = res_483038;
				it = (*e).kindU.S6.sons->data[i_482517];
				op = (*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
				{
					if (!((*op).magic == ((NU16) 109))) goto LA7;
					it = (*it).kindU.S6.sons->data[((NI) 1)];
				}
				LA7: ;
				disc = skipconv_229935((*it).kindU.S6.sons->data[((NI) 2)]);
				initloc_459300((&test), ((NU8) 0), (*it).typ, ((NU8) 1));
				initlocexpr_466937(p, (*it).kindU.S6.sons->data[((NI) 1)], (&u));
				initloc_459300((&v), ((NU8) 6), (*disc).typ, ((NU8) 0));
				memset((void*)LOC9, 0, sizeof(LOC9));
				LOC9[0] = obj;
				LOC9[1] = (*(*disc).kindU.S4.sym).loc.r;
				v.r = HEX25_162235(((NimStringDesc*) &TMP3570), LOC9, 2);
				geninexpraux_482488(p, it, (&u), (&v), (&test));
				LOC10 = 0;
				LOC10 = newstrnode_191644(((NU8) 20), (*(*field).name).s);
				id = nodetabletestorset_242698((&(*(*p).module).datacache), LOC10, gbackendid_189013);
				{
					if (!(id == gbackendid_189013)) goto LA13;
					strlit = getstrlit_478316((*p).module, (*(*field).name).s);
				}
				goto LA11;
				LA13: ;
				{
					Ropeobj161009* LOC16;
					LOC16 = 0;
					LOC16 = rope_161407(((NI64) (id)));
					strlit = HEX26_161482(((NimStringDesc*) &TMP3648), LOC16);
				}
				LA11: ;
				{
					TY490436 LOC21;
					if (!((*op).magic == ((NU16) 109))) goto LA19;
					memset((void*)LOC21, 0, sizeof(LOC21));
					LOC21[0] = rdloc_465593(test);
					LOC21[1] = strlit;
					linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4041), LOC21, 2);
				}
				goto LA17;
				LA19: ;
				{
					TY490436 LOC23;
					memset((void*)LOC23, 0, sizeof(LOC23));
					LOC23[0] = rdloc_465593(test);
					LOC23[1] = strlit;
					linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4042), LOC23, 2);
				}
				LA17: ;
				res_483038 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, genobjconstr_484262)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 tmp;
	Ttype190849* t;
	NIM_BOOL isref;
	Ropeobj161009* r;
	Ropeobj161009* LOC8;
	memset((void*)(&tmp), 0, sizeof(tmp));
	t = skiptypes_194167((*e).typ, IL64(211106232576256));
	gettemp_464444(p, t, (&tmp), NIM_FALSE);
	isref = ((*t).kind == ((NU8) 22));
	r = rdloc_465593(tmp);
	{
		Ttype190849* LOC5;
		TY161572 LOC6;
		if (!isref) goto LA3;
		rawgennew_484157(p, tmp, NIM_NIL);
		LOC5 = 0;
		LOC5 = lastson_193442(t);
		t = skiptypes_194167(LOC5, IL64(211106232576256));
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = r;
		r = HEX25_162235(((NimStringDesc*) &TMP3625), LOC6, 1);
		gcusage_483678(e);
	}
	goto LA1;
	LA3: ;
	{
		constructloc_465842(p, tmp, NIM_FALSE);
	}
	LA1: ;
	LOC8 = 0;
	LOC8 = gettypedesc_463073((*p).module, t);
	{
		NI i_484303;
		NI HEX3Atmp_484416;
		NI LOC10;
		NI res_484419;
		i_484303 = 0;
		HEX3Atmp_484416 = 0;
		LOC10 = 0;
		LOC10 = len_191097(e);
		HEX3Atmp_484416 = (LOC10 - 1);
		res_484419 = ((NI) 1);
		{
			while (1) {
				Tnode190813* it;
				Tloc190827 tmp2;
				Tsym190843* field;
				Ttype190849* ty;
				if (!(res_484419 <= HEX3Atmp_484416)) goto LA12;
				i_484303 = res_484419;
				it = (*e).kindU.S6.sons->data[i_484303];
				memset((void*)(&tmp2), 0, sizeof(tmp2));
				tmp2.r = r;
				field = NIM_NIL;
				ty = getuniquetype_454656(t);
				{
					while (1) {
						if (!!((ty == NIM_NIL))) goto LA14;
						field = lookupinrecord_198236((*ty).n, (*(*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).name);
						{
							if (!!((field == NIM_NIL))) goto LA17;
							goto LA13;
						}
						LA17: ;
						{
							NIM_BOOL LOC21;
							LOC21 = 0;
							LOC21 = (gcmd_154130 == ((NU8) 2));
							if (LOC21) goto LA22;
							LOC21 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
							LA22: ;
							if (!!(LOC21)) goto LA23;
							add_161545(&tmp2.r, ((NimStringDesc*) &TMP3628));
						}
						LA23: ;
						ty = getuniquetype_454656((*ty).sons->data[((NI) 0)]);
					} LA14: ;
				} LA13: ;
				{
					NIM_BOOL LOC27;
					LOC27 = 0;
					LOC27 = (field == NIM_NIL);
					if (LOC27) goto LA28;
					LOC27 = ((*field).loc.r == NIM_NIL);
					LA28: ;
					if (!LOC27) goto LA29;
					internalerror_165199((*e).info, ((NimStringDesc*) &TMP4040));
				}
				LA29: ;
				{
					NIM_BOOL LOC33;
					NI LOC34;
					LOC33 = 0;
					LOC34 = 0;
					LOC34 = len_191097(it);
					LOC33 = (LOC34 == ((NI) 3));
					if (!(LOC33)) goto LA35;
					LOC33 = (((*p).options &(1<<((((NU8) 2))&31)))!=0);
					LA35: ;
					if (!LOC33) goto LA36;
					genfieldcheck_482496(p, (*it).kindU.S6.sons->data[((NI) 2)], tmp2.r, field);
				}
				LA36: ;
				add_161545(&tmp2.r, ((NimStringDesc*) &TMP3702));
				add_161534(&tmp2.r, (*field).loc.r);
				tmp2.k = ((NU8) 1);
				tmp2.t = (*field).loc.t;
				{
					if (!isref) goto LA40;
					tmp2.s = ((NU8) 2);
				}
				goto LA38;
				LA40: ;
				{
					tmp2.s = ((NU8) 1);
				}
				LA38: ;
				tmp2.heaproot = tmp.r;
				expr_466881(p, (*it).kindU.S6.sons->data[((NI) 1)], (&tmp2));
				res_484419 += ((NI) 1);
			} LA12: ;
		}
	}
	{
		if (!((*d).k == ((NU8) 0))) goto LA45;
		genericAssign((void*)(&(*d)), (void*)(&tmp), (&NTI190827));
	}
	goto LA43;
	LA45: ;
	{
		genassignment_466906(p, (*d), tmp, 0);
	}
	LA43: ;
}

N_NIMCALL(void, gencast_486158)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Ttype190849* destt;
	Ttype190849* srct;
	destt = skiptypes_194167((*e).typ, IL64(211106233624832));
	srct = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106233624832));
	{
		NIM_BOOL LOC3;
		Ropeobj161009* lbl;
		Tloc190827 tmp;
		TY161572 LOC7;
		TY462569 LOC8;
		TY161572 LOC9;
		Ropeobj161009* LOC10;
		LOC3 = 0;
		LOC3 = ((*destt).kind >= ((NU8) 36) && (*destt).kind <= ((NU8) 39));
		if (LOC3) goto LA4;
		LOC3 = ((*srct).kind >= ((NU8) 36) && (*srct).kind <= ((NU8) 39));
		LA4: ;
		if (!LOC3) goto LA5;
		(*p).labels += ((NI) 1);
		lbl = rope_161407(((NI64) ((*p).labels)));
		memset((void*)(&tmp), 0, sizeof(tmp));
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = lbl;
		tmp.r = HEX25_162235(((NimStringDesc*) &TMP4043), LOC7, 1);
		memset((void*)LOC8, 0, sizeof(LOC8));
		LOC8[0] = gettypedesc_463073((*p).module, srct);
		LOC8[1] = gettypedesc_463073((*p).module, destt);
		LOC8[2] = lbl;
		linefmt_460023(p, ((NU8) 0), ((NimStringDesc*) &TMP4044), LOC8, 3);
		tmp.k = ((NU8) 6);
		tmp.t = srct;
		tmp.s = ((NU8) 1);
		tmp.flags = 0;
		expr_466881(p, (*e).kindU.S6.sons->data[((NI) 1)], (&tmp));
		memset((void*)LOC9, 0, sizeof(LOC9));
		LOC9[0] = lbl;
		LOC10 = 0;
		LOC10 = HEX25_162235(((NimStringDesc*) &TMP4045), LOC9, 1);
		putintodest_479562(p, d, (*e).typ, LOC10);
	}
	goto LA1;
	LA5: ;
	{
		gensomecast_486098(p, e, d);
	}
	LA1: ;
}

N_NIMCALL(void, genconv_486258)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Ttype190849* desttype;
	desttype = skiptypes_194167((*e).typ, 8390656);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = comparetypes_227047(desttype, (*(*e).kindU.S6.sons->data[((NI) 1)]).typ, ((NU8) 1), 0);
		if (!LOC3) goto LA4;
		expr_466881(p, (*e).kindU.S6.sons->data[((NI) 1)], d);
	}
	goto LA1;
	LA4: ;
	{
		gensomecast_486098(p, e, d);
	}
	LA1: ;
}

static N_INLINE(NIM_BOOL, iscppref_482010)(Tcproc456034* p, Ttype190849* typ) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	NIM_BOOL LOC3;
	Ttype190849* LOC6;
	Ttype190849* LOC8;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC3 = 0;
	LOC3 = (gcmd_154130 == ((NU8) 2));
	if (LOC3) goto LA4;
	LOC3 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
	LA4: ;
	LOC2 = LOC3;
	if (!(LOC2)) goto LA5;
	LOC6 = 0;
	LOC6 = skiptypes_194167(typ, IL64(211106232576256));
	LOC2 = ((*LOC6).kind == ((NU8) 23));
	LA5: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA7;
	LOC8 = 0;
	LOC8 = skiptypes_194167(typ, IL64(211106232576256));
	LOC1 = !((((*LOC8).flags &(1<<((((NU8) 18))&31)))!=0));
	LA7: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, genaddr_482201)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	{
		Ttype190849* LOC3;
		Tloc190827 a;
		Ropeobj161009* LOC6;
		LOC3 = 0;
		LOC3 = skiptypes_194167((*(*e).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
		if (!((*LOC3).kind == ((NU8) 22) || (*LOC3).kind == ((NU8) 21))) goto LA4;
		memset((void*)(&a), 0, sizeof(a));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 0)], (&a));
		LOC6 = 0;
		LOC6 = HEX26_161482(((NimStringDesc*) &TMP3527), a.r);
		putintodest_479562(p, d, (*e).typ, LOC6);
	}
	goto LA1;
	LA4: ;
	{
		NIM_BOOL LOC8;
		NU8 LOC9;
		LOC8 = 0;
		LOC9 = 0;
		LOC9 = maptype_460778((*(*e).kindU.S6.sons->data[((NI) 0)]).typ);
		LOC8 = (LOC9 == ((NU8) 17));
		if (LOC8) goto LA10;
		LOC8 = iscppref_482010(p, (*(*e).kindU.S6.sons->data[((NI) 0)]).typ);
		LA10: ;
		if (!LOC8) goto LA11;
		expr_466881(p, (*e).kindU.S6.sons->data[((NI) 0)], d);
	}
	goto LA1;
	LA11: ;
	{
		Tloc190827 a;
		Ropeobj161009* LOC14;
		memset((void*)(&a), 0, sizeof(a));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 0)], (&a));
		LOC14 = 0;
		LOC14 = addrloc_465615(a);
		putintodest_479562(p, d, (*e).typ, LOC14);
	}
	LA1: ;
}

N_NIMCALL(void, genarrayelem_483281)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Ttype190849* ty;
	Ttype190849* LOC1;
	Ropeobj161009* first;
	NI64 LOC2;
	Ttype190849* LOC56;
	Ttype190849* LOC57;
	TY462569 LOC58;
	Ropeobj161009* LOC59;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, x, (&a));
	initlocexpr_466937(p, y, (&b));
	LOC1 = 0;
	LOC1 = skiptypes_194167(a.t, IL64(211106242013440));
	ty = skiptypes_194167(LOC1, IL64(211106247256320));
	LOC2 = 0;
	LOC2 = firstord_220004(ty);
	first = intliteral_466915(LOC2);
	{
		NIM_BOOL LOC5;
		LOC5 = 0;
		LOC5 = (((*p).options &(1<<((((NU8) 4))&31)))!=0);
		if (!(LOC5)) goto LA6;
		LOC5 = !((((*ty).flags &(1<<((((NU8) 0))&31)))!=0));
		LA6: ;
		if (!LOC5) goto LA7;
		{
			NIM_BOOL LOC11;
			LOC11 = 0;
			LOC11 = isconstexpr_219428(y);
			if (!!(LOC11)) goto LA12;
			{
				NI64 LOC16;
				LOC16 = 0;
				LOC16 = firstord_220004(ty);
				if (!(LOC16 == IL64(0))) goto LA17;
				{
					NIM_BOOL LOC21;
					NI64 LOC22;
					NI64 LOC23;
					NI64 LOC25;
					NI64 LOC26;
					TY490436 LOC29;
					NI64 LOC30;
					LOC21 = 0;
					LOC22 = 0;
					LOC22 = firstord_220004(b.t);
					LOC23 = 0;
					LOC23 = firstord_220004(ty);
					LOC21 = (LOC22 < LOC23);
					if (LOC21) goto LA24;
					LOC25 = 0;
					LOC25 = lastord_220010(ty);
					LOC26 = 0;
					LOC26 = lastord_220010(b.t);
					LOC21 = (LOC25 < LOC26);
					LA24: ;
					if (!LOC21) goto LA27;
					memset((void*)LOC29, 0, sizeof(LOC29));
					LOC29[0] = rdcharloc_465644(b);
					LOC30 = 0;
					LOC30 = lastord_220010(ty);
					LOC29[1] = intliteral_466915(LOC30);
					linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4046), LOC29, 2);
				}
				LA27: ;
			}
			goto LA14;
			LA17: ;
			{
				TY462569 LOC32;
				NI64 LOC33;
				memset((void*)LOC32, 0, sizeof(LOC32));
				LOC32[0] = rdcharloc_465644(b);
				LOC32[1] = first;
				LOC33 = 0;
				LOC33 = lastord_220010(ty);
				LOC32[2] = intliteral_466915(LOC33);
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4047), LOC32, 3);
			}
			LA14: ;
		}
		goto LA9;
		LA12: ;
		{
			NI64 idx;
			idx = getordvalue_220178(y);
			{
				NIM_BOOL LOC37;
				NI64 LOC38;
				NI64 LOC40;
				LOC37 = 0;
				LOC38 = 0;
				LOC38 = firstord_220004(ty);
				LOC37 = (idx < LOC38);
				if (LOC37) goto LA39;
				LOC40 = 0;
				LOC40 = lastord_220010(ty);
				LOC37 = (LOC40 < idx);
				LA39: ;
				if (!LOC37) goto LA41;
				localerror_165155((*x).info, ((NU16) 82), ((NimStringDesc*) &TMP3940));
			}
			LA41: ;
		}
		LA9: ;
	}
	LA7: ;
	{
		if (!((*d).k == ((NU8) 0))) goto LA45;
		(*d).s = a.s;
	}
	LA45: ;
	{
		if (!((*d).heaproot == NIM_NIL)) goto LA49;
		{
			if (!!((a.heaproot == NIM_NIL))) goto LA53;
			unsureAsgnRef((void**) (&(*d).heaproot), a.heaproot);
		}
		goto LA51;
		LA53: ;
		{
			unsureAsgnRef((void**) (&(*d).heaproot), a.r);
		}
		LA51: ;
	}
	LA49: ;
	LOC56 = 0;
	LOC56 = skiptypes_194167(ty, IL64(211106240964864));
	LOC57 = 0;
	LOC57 = elemtype_220522(LOC56);
	memset((void*)LOC58, 0, sizeof(LOC58));
	LOC58[0] = rdloc_465593(a);
	LOC58[1] = rdcharloc_465644(b);
	LOC58[2] = first;
	LOC59 = 0;
	LOC59 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4048), LOC58, 3);
	putintodest_479562(p, d, LOC57, LOC59);
}

N_NIMCALL(void, genopenarrayelem_483387)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Ttype190849* LOC10;
	Ttype190849* LOC11;
	TY490436 LOC12;
	Ropeobj161009* LOC13;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, x, (&a));
	initlocexpr_466937(p, y, (&b));
	{
		TY490436 LOC5;
		if (!(((*p).options &(1<<((((NU8) 4))&31)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rdloc_465593(b);
		LOC5[1] = rdloc_465593(a);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4049), LOC5, 2);
	}
	LA3: ;
	{
		if (!((*d).k == ((NU8) 0))) goto LA8;
		(*d).s = a.s;
	}
	LA8: ;
	LOC10 = 0;
	LOC10 = skiptypes_194167(a.t, IL64(211106240964864));
	LOC11 = 0;
	LOC11 = elemtype_220522(LOC10);
	memset((void*)LOC12, 0, sizeof(LOC12));
	LOC12[0] = rdloc_465593(a);
	LOC12[1] = rdcharloc_465644(b);
	LOC13 = 0;
	LOC13 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3611), LOC12, 2);
	putintodest_479562(p, d, LOC11, LOC13);
}

N_NIMCALL(void, genseqelem_483426)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Ttype190849* ty;
	Ttype190849* LOC27;
	Ttype190849* LOC28;
	TY490436 LOC29;
	Ropeobj161009* LOC30;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, x, (&a));
	initlocexpr_466937(p, y, (&b));
	ty = skiptypes_194167(a.t, IL64(211106242013440));
	{
		Ttype190849* LOC5;
		if (!((*ty).kind == ((NU8) 22) || (*ty).kind == ((NU8) 21))) goto LA3;
		LOC5 = 0;
		LOC5 = lastson_193442(ty);
		ty = skiptypes_194167(LOC5, IL64(211106242013440));
	}
	LA3: ;
	{
		if (!(((*p).options &(1<<((((NU8) 4))&31)))!=0)) goto LA8;
		{
			TY462569 LOC14;
			if (!((*ty).kind == ((NU8) 28))) goto LA12;
			memset((void*)LOC14, 0, sizeof(LOC14));
			LOC14[0] = rdloc_465593(b);
			LOC14[1] = rdloc_465593(a);
			LOC14[2] = lenfield_466971(p);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4050), LOC14, 3);
		}
		goto LA10;
		LA12: ;
		{
			TY462569 LOC16;
			memset((void*)LOC16, 0, sizeof(LOC16));
			LOC16[0] = rdloc_465593(b);
			LOC16[1] = rdloc_465593(a);
			LOC16[2] = lenfield_466971(p);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4051), LOC16, 3);
		}
		LA10: ;
	}
	LA8: ;
	{
		if (!((*d).k == ((NU8) 0))) goto LA19;
		(*d).s = ((NU8) 2);
	}
	LA19: ;
	unsureAsgnRef((void**) (&(*d).heaproot), a.r);
	{
		Ttype190849* LOC23;
		TY161572 LOC26;
		LOC23 = 0;
		LOC23 = skiptypes_194167(a.t, IL64(211106240964864));
		if (!((*LOC23).kind == ((NU8) 22) || (*LOC23).kind == ((NU8) 21))) goto LA24;
		memset((void*)LOC26, 0, sizeof(LOC26));
		LOC26[0] = a.r;
		a.r = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3625), LOC26, 1);
	}
	LA24: ;
	LOC27 = 0;
	LOC27 = skiptypes_194167(a.t, IL64(211106240964864));
	LOC28 = 0;
	LOC28 = elemtype_220522(LOC27);
	memset((void*)LOC29, 0, sizeof(LOC29));
	LOC29[0] = rdloc_465593(a);
	LOC29[1] = rdcharloc_465644(b);
	LOC30 = 0;
	LOC30 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3667), LOC29, 2);
	putintodest_479562(p, d, LOC28, LOC30);
}

N_NIMCALL(void, gencstringelem_483359)(Tcproc456034* p, Tnode190813* x, Tnode190813* y, Tloc190827* d) {
	Tloc190827 a;
	Tloc190827 b;
	Ttype190849* ty;
	Ttype190849* LOC5;
	Ttype190849* LOC6;
	TY490436 LOC7;
	Ropeobj161009* LOC8;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&b), 0, sizeof(b));
	initlocexpr_466937(p, x, (&a));
	initlocexpr_466937(p, y, (&b));
	ty = skiptypes_194167(a.t, IL64(211106242013440));
	{
		if (!((*d).k == ((NU8) 0))) goto LA3;
		(*d).s = a.s;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = skiptypes_194167(ty, IL64(211106240964864));
	LOC6 = 0;
	LOC6 = elemtype_220522(LOC5);
	memset((void*)LOC7, 0, sizeof(LOC7));
	LOC7[0] = rdloc_465593(a);
	LOC7[1] = rdcharloc_465644(b);
	LOC8 = 0;
	LOC8 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3611), LOC7, 2);
	putintodest_479562(p, d, LOC6, LOC8);
}

N_NIMCALL(void, gentupleelem_482305)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	NI i;
	Ropeobj161009* LOC14;
	Ttype190849* ty;
	Ropeobj161009* r;
	TY161572 LOC17;
	memset((void*)(&a), 0, sizeof(a));
	i = 0;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 0)], (&a));
	{
		if (!((*d).k == ((NU8) 0))) goto LA3;
		(*d).s = a.s;
	}
	LA3: ;
	{
		if (!((*d).heaproot == NIM_NIL)) goto LA7;
		{
			if (!!((a.heaproot == NIM_NIL))) goto LA11;
			unsureAsgnRef((void**) (&(*d).heaproot), a.heaproot);
		}
		goto LA9;
		LA11: ;
		{
			unsureAsgnRef((void**) (&(*d).heaproot), a.r);
		}
		LA9: ;
	}
	LA7: ;
	LOC14 = 0;
	LOC14 = gettypedesc_463073((*p).module, a.t);
	ty = getuniquetype_454656(a.t);
	r = rdloc_465593(a);
	switch ((*(*e).kindU.S6.sons->data[((NI) 1)]).kind) {
	case ((NU8) 6) ... ((NU8) 15):
	{
		i = ((NI) ((*(*e).kindU.S6.sons->data[((NI) 1)]).kindU.S1.intval));
	}
	break;
	default:
	{
		internalerror_165199((*e).info, ((NimStringDesc*) &TMP4052));
	}
	break;
	}
	memset((void*)LOC17, 0, sizeof(LOC17));
	LOC17[0] = rope_161407(((NI64) (i)));
	addf_162635(&r, ((NimStringDesc*) &TMP4053), LOC17, 1);
	putintodest_479562(p, d, (*ty).sons->data[i], r);
}

N_NIMCALL(void, genbracketexpr_483501)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Ttype190849* ty;
	ty = skiptypes_194167((*(*n).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106242013440));
	{
		Ttype190849* LOC5;
		if (!((*ty).kind == ((NU8) 22) || (*ty).kind == ((NU8) 21))) goto LA3;
		LOC5 = 0;
		LOC5 = lastson_193442(ty);
		ty = skiptypes_194167(LOC5, IL64(211106242013440));
	}
	LA3: ;
	switch ((*ty).kind) {
	case ((NU8) 16):
	case ((NU8) 4):
	{
		genarrayelem_483281(p, (*n).kindU.S6.sons->data[((NI) 0)], (*n).kindU.S6.sons->data[((NI) 1)], d);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		genopenarrayelem_483387(p, (*n).kindU.S6.sons->data[((NI) 0)], (*n).kindU.S6.sons->data[((NI) 1)], d);
	}
	break;
	case ((NU8) 24):
	case ((NU8) 28):
	{
		genseqelem_483426(p, (*n).kindU.S6.sons->data[((NI) 0)], (*n).kindU.S6.sons->data[((NI) 1)], d);
	}
	break;
	case ((NU8) 29):
	{
		gencstringelem_483359(p, (*n).kindU.S6.sons->data[((NI) 0)], (*n).kindU.S6.sons->data[((NI) 1)], d);
	}
	break;
	case ((NU8) 18):
	{
		gentupleelem_482305(p, n, d);
	}
	break;
	default:
	{
		NimStringDesc* LOC12;
		LOC12 = 0;
		LOC12 = rawNewString(reprEnum((*ty).kind, (&NTI190260))->Sup.len + 21);
appendString(LOC12, ((NimStringDesc*) &TMP4054));
appendString(LOC12, reprEnum((*ty).kind, (&NTI190260)));
appendChar(LOC12, 41);
		internalerror_165199((*n).info, LOC12);
	}
	break;
	}
}

N_NIMCALL(void, genderef_472198)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, NIM_BOOL enforcederef) {
	NU8 mt;
{	mt = maptype_460778((*(*e).kindU.S6.sons->data[((NI) 0)]).typ);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((393216 &(1<<((mt)&31)))!=0);
		if (!(LOC3)) goto LA4;
		LOC3 = !(enforcederef);
		LA4: ;
		if (!LOC3) goto LA5;
		expr_466881(p, (*e).kindU.S6.sons->data[((NI) 0)], d);
	}
	goto LA1;
	LA5: ;
	{
		Tloc190827 a;
		memset((void*)(&a), 0, sizeof(a));
		initlocexprsingleuse_466949(p, (*e).kindU.S6.sons->data[((NI) 0)], (&a));
		{
			Ttype190849* typ;
			if (!((*d).k == ((NU8) 0))) goto LA10;
			typ = skiptypes_194167(a.t, IL64(211106232576256));
			switch ((*typ).kind) {
			case ((NU8) 22):
			{
				(*d).s = ((NU8) 2);
			}
			break;
			case ((NU8) 23):
			{
				(*d).s = ((NU8) 0);
				{
					NIM_BOOL LOC16;
					NIM_BOOL LOC17;
					NIM_BOOL LOC19;
					Ropeobj161009* LOC24;
					LOC16 = 0;
					LOC17 = 0;
					LOC17 = !((((*typ).flags &(1<<((((NU8) 18))&31)))!=0));
					if (!(LOC17)) goto LA18;
					LOC19 = 0;
					LOC19 = (gcmd_154130 == ((NU8) 2));
					if (LOC19) goto LA20;
					LOC19 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
					LA20: ;
					LOC17 = LOC19;
					LA18: ;
					LOC16 = LOC17;
					if (!(LOC16)) goto LA21;
					LOC16 = ((*e).kind == ((NU8) 65));
					LA21: ;
					if (!LOC16) goto LA22;
					LOC24 = 0;
					LOC24 = rdloc_465593(a);
					putintodest_479562(p, d, (*e).typ, LOC24);
					goto BeforeRet;
				}
				LA22: ;
			}
			break;
			case ((NU8) 21):
			{
				(*d).s = ((NU8) 0);
			}
			break;
			default:
			{
				NimStringDesc* LOC27;
				LOC27 = 0;
				LOC27 = rawNewString(reprEnum((*a.t).kind, (&NTI190260))->Sup.len + 9);
appendString(LOC27, ((NimStringDesc*) &TMP4055));
appendString(LOC27, reprEnum((*a.t).kind, (&NTI190260)));
				internalerror_165199((*e).info, LOC27);
			}
			break;
			}
		}
		goto LA8;
		LA10: ;
		{
			NIM_BOOL LOC29;
			Ttype190849* typ;
			LOC29 = 0;
			LOC29 = (gcmd_154130 == ((NU8) 2));
			if (LOC29) goto LA30;
			LOC29 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA30: ;
			if (!LOC29) goto LA31;
			typ = skiptypes_194167(a.t, IL64(211106232576256));
			{
				NIM_BOOL LOC35;
				NIM_BOOL LOC36;
				Ropeobj161009* LOC41;
				LOC35 = 0;
				LOC36 = 0;
				LOC36 = ((*typ).kind == ((NU8) 23));
				if (!(LOC36)) goto LA37;
				LOC36 = !((((*typ).flags &(1<<((((NU8) 18))&31)))!=0));
				LA37: ;
				LOC35 = LOC36;
				if (!(LOC35)) goto LA38;
				LOC35 = ((*e).kind == ((NU8) 65));
				LA38: ;
				if (!LOC35) goto LA39;
				LOC41 = 0;
				LOC41 = rdloc_465593(a);
				putintodest_479562(p, d, (*e).typ, LOC41);
				goto BeforeRet;
			}
			LA39: ;
		}
		goto LA8;
		LA31: ;
		LA8: ;
		{
			NIM_BOOL LOC44;
			Ropeobj161009* LOC48;
			LOC44 = 0;
			LOC44 = enforcederef;
			if (!(LOC44)) goto LA45;
			LOC44 = (mt == ((NU8) 18));
			LA45: ;
			if (!LOC44) goto LA46;
			LOC48 = 0;
			LOC48 = rdloc_465593(a);
			putintodest_479562(p, d, (*a.t).sons->data[((NI) 0)], LOC48);
		}
		goto LA42;
		LA46: ;
		{
			TY161572 LOC50;
			Ropeobj161009* LOC51;
			memset((void*)LOC50, 0, sizeof(LOC50));
			LOC50[0] = rdloc_465593(a);
			LOC51 = 0;
			LOC51 = HEX25_162235(((NimStringDesc*) &TMP3625), LOC50, 1);
			putintodest_479562(p, d, (*e).typ, LOC51);
		}
		LA42: ;
	}
	LA1: ;
	}BeforeRet: ;
}

N_NIMCALL(Ttype190849*, genrecordfieldaux_482250)(Tcproc456034* p, Tnode190813* e, Tloc190827* d, Tloc190827* a) {
	Ttype190849* result;
	Ropeobj161009* LOC18;
	result = 0;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 0)], a);
	{
		if (!!(((*(*e).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 3)))) goto LA3;
		internalerror_165199((*e).info, ((NimStringDesc*) &TMP4056));
	}
	LA3: ;
	{
		if (!((*d).k == ((NU8) 0))) goto LA7;
		(*d).s = (*a).s;
	}
	LA7: ;
	{
		if (!((*d).heaproot == NIM_NIL)) goto LA11;
		{
			if (!!(((*a).heaproot == NIM_NIL))) goto LA15;
			unsureAsgnRef((void**) (&(*d).heaproot), (*a).heaproot);
		}
		goto LA13;
		LA15: ;
		{
			unsureAsgnRef((void**) (&(*d).heaproot), (*a).r);
		}
		LA13: ;
	}
	LA11: ;
	LOC18 = 0;
	LOC18 = gettypedesc_463073((*p).module, (*a).t);
	result = getuniquetype_454656((*a).t);
	return result;
}

N_NIMCALL(void, genrecordfield_482361)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* ty;
	Ropeobj161009* r;
	Tsym190843* f;
	memset((void*)(&a), 0, sizeof(a));
	ty = genrecordfieldaux_482250(p, e, d, (&a));
	r = rdloc_465593(a);
	f = (*(*e).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym;
	{
		TY161572 LOC5;
		if (!((*ty).kind == ((NU8) 18))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rope_161407(((NI64) ((*f).position)));
		addf_162635(&r, ((NimStringDesc*) &TMP4053), LOC5, 1);
		putintodest_479562(p, d, (*f).typ, r);
	}
	goto LA1;
	LA3: ;
	{
		Tsym190843* field;
		TY161572 LOC31;
		field = NIM_NIL;
		{
			while (1) {
				if (!!((ty == NIM_NIL))) goto LA8;
				{
					if (!!(((*ty).kind == ((NU8) 18) || (*ty).kind == ((NU8) 17)))) goto LA11;
					internalerror_165199((*e).info, ((NimStringDesc*) &TMP4057));
				}
				LA11: ;
				field = lookupinrecord_198236((*ty).n, (*f).name);
				{
					if (!!((field == NIM_NIL))) goto LA15;
					goto LA7;
				}
				LA15: ;
				{
					NIM_BOOL LOC19;
					LOC19 = 0;
					LOC19 = (gcmd_154130 == ((NU8) 2));
					if (LOC19) goto LA20;
					LOC19 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
					LA20: ;
					if (!!(LOC19)) goto LA21;
					add_161545(&r, ((NimStringDesc*) &TMP3628));
				}
				LA21: ;
				ty = getuniquetype_454656((*ty).sons->data[((NI) 0)]);
			} LA8: ;
		} LA7: ;
		{
			if (!(field == NIM_NIL)) goto LA25;
			internalerror_165199((*e).info, ((NimStringDesc*) &TMP4058));
		}
		LA25: ;
		{
			if (!((*field).loc.r == NIM_NIL)) goto LA29;
			internalerror_165199((*e).info, ((NimStringDesc*) &TMP4059));
		}
		LA29: ;
		memset((void*)LOC31, 0, sizeof(LOC31));
		LOC31[0] = (*field).loc.r;
		addf_162635(&r, ((NimStringDesc*) &TMP4060), LOC31, 1);
		putintodest_479562(p, d, (*field).typ, r);
	}
	LA1: ;
}

N_NIMCALL(void, gencheckedrecordfield_483054)(Tcproc456034* p, Tnode190813* e, Tloc190827* d) {
	{
		Tloc190827 a;
		Tsym190843* f;
		Tsym190843* field;
		Ttype190849* ty;
		Ropeobj161009* r;
		TY161572 LOC25;
		Ropeobj161009* LOC26;
		if (!(((*p).options &(1<<((((NU8) 2))&31)))!=0)) goto LA3;
		memset((void*)(&a), 0, sizeof(a));
		f = 0;
		field = 0;
		ty = 0;
		r = 0;
		ty = genrecordfieldaux_482250(p, (*e).kindU.S6.sons->data[((NI) 0)], d, (&a));
		r = rdloc_465593(a);
		f = (*(*(*e).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym;
		field = NIM_NIL;
		{
			while (1) {
				if (!!((ty == NIM_NIL))) goto LA6;
				field = lookupinrecord_198236((*ty).n, (*f).name);
				{
					if (!!((field == NIM_NIL))) goto LA9;
					goto LA5;
				}
				LA9: ;
				{
					NIM_BOOL LOC13;
					LOC13 = 0;
					LOC13 = (gcmd_154130 == ((NU8) 2));
					if (LOC13) goto LA14;
					LOC13 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
					LA14: ;
					if (!!(LOC13)) goto LA15;
					add_161545(&r, ((NimStringDesc*) &TMP3628));
				}
				LA15: ;
				ty = getuniquetype_454656((*ty).sons->data[((NI) 0)]);
			} LA6: ;
		} LA5: ;
		{
			if (!(field == NIM_NIL)) goto LA19;
			internalerror_165199((*e).info, ((NimStringDesc*) &TMP4061));
		}
		LA19: ;
		{
			if (!((*field).loc.r == NIM_NIL)) goto LA23;
			internalerror_165199((*e).info, ((NimStringDesc*) &TMP4061));
		}
		LA23: ;
		genfieldcheck_482496(p, e, r, field);
		memset((void*)LOC25, 0, sizeof(LOC25));
		LOC25[0] = (*field).loc.r;
		LOC26 = 0;
		LOC26 = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4060), LOC25, 1);
		add_161534(&r, LOC26);
		putintodest_479562(p, d, (*field).typ, r);
	}
	goto LA1;
	LA3: ;
	{
		genrecordfield_482361(p, (*e).kindU.S6.sons->data[((NI) 0)], d);
	}
	LA1: ;
}

N_NIMCALL(NI, startblock_472258)(Tcproc456034* p, NimStringDesc* start, Ropeobj161009** args, NI argsLen0) {
	NI result;
	result = 0;
	linecg_460010(p, ((NU8) 2), start, args, argsLen0);
	(*p).labels += ((NI) 1);
	result = ((*p).blocks ? (*p).blocks->Sup.len : 0);
	(*p).blocks = (TY456106*) setLengthSeq(&((*p).blocks)->Sup, sizeof(Tblock456032), ((NI) ((NI)(result + ((NI) 1)))));
	(*p).blocks->data[result].id = ((NI) ((*p).labels));
	(*p).blocks->data[result].nestedtrystmts = ((NI16) (((*p).nestedtrystmts ? (*p).nestedtrystmts->Sup.len : 0)));
	(*p).blocks->data[result].nestedexceptstmts = ((NI16) ((*p).inexceptblock));
	return result;
}

N_NIMCALL(Ropeobj161009*, blockbody_472311)(Tblock456032* b) {
	Ropeobj161009* result;
	result = 0;
	result = (*b).sections[(((NU8) 0))- 0];
	{
		TY161572 LOC5;
		if (!(((NI16) 0) < (*b).framelen)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rope_161407(((NI64) ((*b).framelen)));
		addf_162635(&result, ((NimStringDesc*) &TMP4064), LOC5, 1);
	}
	LA3: ;
	add_161534(&result, (*b).sections[(((NU8) 1))- 0]);
	add_161534(&result, (*b).sections[(((NU8) 2))- 0]);
	return result;
}

N_NIMCALL(void, endblock_472324)(Tcproc456034* p, Ropeobj161009* blockend) {
	NI topblock;
	Ropeobj161009* LOC1;
	topblock = (NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1));
	LOC1 = 0;
	LOC1 = blockbody_472311((&(*p).blocks->data[topblock]));
	add_161534(&(*p).blocks->data[(NI)(topblock - ((NI) 1))].sections[(((NU8) 2))- 0], LOC1);
	(*p).blocks = (TY456106*) setLengthSeq(&((*p).blocks)->Sup, sizeof(Tblock456032), ((NI) (topblock)));
	line_459975(p, ((NU8) 2), blockend);
}

N_NIMCALL(void, endblock_472352)(Tcproc456034* p) {
	NI topblock;
	Ropeobj161009* blockend;
	NI16 framelen;
	topblock = (NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1));
	{
		TY161572 LOC5;
		if (!!(((*p).blocks->data[topblock].label == NIM_NIL))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = (*p).blocks->data[topblock].label;
		blockend = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4062), LOC5, 1);
	}
	goto LA1;
	LA3: ;
	{
		TY460664 LOC7;
		memset((void*)LOC7, 0, sizeof(LOC7));
		blockend = HEX25_162235(((NimStringDesc*) &TMP3635), LOC7, 0);
	}
	LA1: ;
	framelen = (*p).blocks->data[topblock].framelen;
	{
		TY161572 LOC12;
		if (!(((NI16) 0) < framelen)) goto LA10;
		memset((void*)LOC12, 0, sizeof(LOC12));
		LOC12[0] = rope_161407(((NI64) (framelen)));
		addf_162635(&blockend, ((NimStringDesc*) &TMP4063), LOC12, 1);
	}
	LA10: ;
	endblock_472324(p, blockend);
}

N_NIMCALL(void, genblock_474687)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	NI oldbreakidx_474694;
	TY460664 LOC1;
	oldbreakidx_474694 = (*p).breakidx;
	memset((void*)LOC1, 0, sizeof(LOC1));
	(*p).breakidx = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC1, 0);
	{
		Tsym190843* sym;
		if (!!(((*(*t).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA4;
		sym = (*(*t).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		(*sym).loc.k = ((NU8) 10);
		(*sym).position = (NI)((*p).breakidx + ((NI) 1));
	}
	LA4: ;
	expr_466881(p, (*t).kindU.S6.sons->data[((NI) 1)], d);
	endblock_472352(p);
	(*p).breakidx = oldbreakidx_474694;
}

N_NIMCALL(void, genstmtlistexpr_488005)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	NI length;
	length = sonslen_193403(n);
	{
		NI i_488024;
		NI HEX3Atmp_488028;
		NI res_488031;
		i_488024 = 0;
		HEX3Atmp_488028 = 0;
		HEX3Atmp_488028 = (NI)(length - ((NI) 2));
		res_488031 = ((NI) 0);
		{
			while (1) {
				if (!(res_488031 <= HEX3Atmp_488028)) goto LA3;
				i_488024 = res_488031;
				genstmts_466874(p, (*n).kindU.S6.sons->data[i_488024]);
				res_488031 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		if (!(((NI) 0) < length)) goto LA6;
		expr_466881(p, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], d);
	}
	LA6: ;
}

N_NIMCALL(void, genif_473440)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Tloc190827 a;
	Ropeobj161009* lelse;
	Ropeobj161009* lend;
	memset((void*)(&a), 0, sizeof(a));
	lelse = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isemptytype_195933((*n).typ);
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = ((*d).k == ((NU8) 0));
		LA5: ;
		if (!LOC3) goto LA6;
		gettemp_464444(p, (*n).typ, d, NIM_FALSE);
	}
	LA6: ;
	genlinedir_460241(p, n);
	lend = getlabel_466829(p);
	{
		NI i_473470;
		NI HEX3Atmp_473835;
		NI LOC9;
		NI res_473838;
		i_473470 = 0;
		HEX3Atmp_473835 = 0;
		LOC9 = 0;
		LOC9 = sonslen_193403(n);
		HEX3Atmp_473835 = (NI)(LOC9 - ((NI) 1));
		res_473838 = ((NI) 0);
		{
			while (1) {
				Tnode190813* it;
				if (!(res_473838 <= HEX3Atmp_473835)) goto LA11;
				i_473470 = res_473838;
				it = (*n).kindU.S6.sons->data[i_473470];
				{
					NI LOC14;
					TY460664 LOC17;
					NI LOC18;
					TY490436 LOC19;
					LOC14 = 0;
					LOC14 = len_191097(it);
					if (!(LOC14 == ((NI) 2))) goto LA15;
					memset((void*)LOC17, 0, sizeof(LOC17));
					LOC18 = 0;
					LOC18 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC17, 0);
					initlocexprsingleuse_466949(p, (*it).kindU.S6.sons->data[((NI) 0)], (&a));
					lelse = getlabel_466829(p);
					(*p).labels += ((NI) 1);
					memset((void*)LOC19, 0, sizeof(LOC19));
					LOC19[0] = rdloc_465593(a);
					LOC19[1] = lelse;
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4065), LOC19, 2);
					{
						NIM_BOOL LOC22;
						Ropeobj161009** LOC26;
						Ropeobj161009** LOC27;
						LOC22 = 0;
						LOC22 = (gcmd_154130 == ((NU8) 2));
						if (LOC22) goto LA23;
						LOC22 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
						LA23: ;
						if (!LOC22) goto LA24;
						LOC26 = 0;
						LOC26 = s_456184(p, ((NU8) 2));
						add_161545(LOC26, ((NimStringDesc*) &TMP3732));
						expr_466881(p, (*it).kindU.S6.sons->data[((NI) 1)], d);
						LOC27 = 0;
						LOC27 = s_456184(p, ((NU8) 2));
						add_161545(LOC27, ((NimStringDesc*) &TMP3728));
					}
					goto LA20;
					LA24: ;
					{
						expr_466881(p, (*it).kindU.S6.sons->data[((NI) 1)], d);
					}
					LA20: ;
					endblock_472352(p);
					{
						NI LOC31;
						TY161572 LOC34;
						LOC31 = 0;
						LOC31 = sonslen_193403(n);
						if (!(((NI) 1) < LOC31)) goto LA32;
						memset((void*)LOC34, 0, sizeof(LOC34));
						LOC34[0] = lend;
						linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4066), LOC34, 1);
					}
					LA32: ;
					fixlabel_466848(p, lelse);
				}
				goto LA12;
				LA15: ;
				{
					NI LOC36;
					TY460664 LOC39;
					NI LOC40;
					LOC36 = 0;
					LOC36 = len_191097(it);
					if (!(LOC36 == ((NI) 1))) goto LA37;
					memset((void*)LOC39, 0, sizeof(LOC39));
					LOC40 = 0;
					LOC40 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC39, 0);
					expr_466881(p, (*it).kindU.S6.sons->data[((NI) 0)], d);
					endblock_472352(p);
				}
				goto LA12;
				LA37: ;
				{
					internalerror_165199((*n).info, ((NimStringDesc*) &TMP4067));
				}
				LA12: ;
				res_473838 += ((NI) 1);
			} LA11: ;
		}
	}
	{
		NI LOC44;
		LOC44 = 0;
		LOC44 = sonslen_193403(n);
		if (!(((NI) 1) < LOC44)) goto LA45;
		fixlabel_466848(p, lend);
	}
	LA45: ;
}

N_NIMCALL(void, downconv_488212)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_154130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		expr_466881(p, (*n).kindU.S6.sons->data[((NI) 0)], d);
	}
	goto LA1;
	LA5: ;
	{
		Ttype190849* dest;
		Tnode190813* arg;
		Ttype190849* src;
		Tloc190827 a;
		Ropeobj161009* r;
		NIM_BOOL isref;
		Ttype190849* LOC10;
		dest = skiptypes_194167((*n).typ, IL64(211106247256320));
		arg = (*n).kindU.S6.sons->data[((NI) 0)];
		{
			while (1) {
				if (!((*arg).kind == ((NU8) 66))) goto LA9;
				arg = (*arg).kindU.S6.sons->data[((NI) 0)];
			} LA9: ;
		}
		src = skiptypes_194167((*arg).typ, IL64(211106247256320));
		memset((void*)(&a), 0, sizeof(a));
		initlocexpr_466937(p, arg, (&a));
		r = rdloc_465593(a);
		LOC10 = 0;
		LOC10 = skiptypes_194167((*arg).typ, IL64(211106232576256));
		isref = ((*LOC10).kind == ((NU8) 22) || (*LOC10).kind == ((NU8) 21) || (*LOC10).kind == ((NU8) 23));
		{
			if (!isref) goto LA13;
			add_161545(&r, ((NimStringDesc*) &TMP4068));
		}
		goto LA11;
		LA13: ;
		{
			add_161545(&r, ((NimStringDesc*) &TMP3628));
		}
		LA11: ;
		{
			NI i_488282;
			NI HEX3Atmp_488309;
			NI LOC17;
			NI res_488312;
			i_488282 = 0;
			HEX3Atmp_488309 = 0;
			LOC17 = 0;
			LOC17 = inheritancediff_227064(dest, src);
			HEX3Atmp_488309 = (LOC17 > 0? (LOC17) : -(LOC17));
			res_488312 = ((NI) 2);
			{
				while (1) {
					if (!(res_488312 <= HEX3Atmp_488309)) goto LA19;
					i_488282 = res_488312;
					add_161545(&r, ((NimStringDesc*) &TMP3628));
					res_488312 += ((NI) 1);
				} LA19: ;
			}
		}
		{
			if (!isref) goto LA22;
			{
				NIM_BOOL LOC26;
				Ttype190849* LOC28;
				TY490436 LOC31;
				LOC26 = 0;
				LOC26 = ((*d).k == ((NU8) 0));
				if (!(LOC26)) goto LA27;
				LOC28 = 0;
				LOC28 = skiptypes_194167((*n).typ, IL64(211106232576256));
				LOC26 = ((*LOC28).kind == ((NU8) 22) || (*LOC28).kind == ((NU8) 21) || (*LOC28).kind == ((NU8) 23));
				LA27: ;
				if (!LOC26) goto LA29;
				gettemp_464444(p, (*n).typ, d, NIM_FALSE);
				memset((void*)LOC31, 0, sizeof(LOC31));
				LOC31[0] = rdloc_465593((*d));
				LOC31[1] = r;
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4069), LOC31, 2);
			}
			goto LA24;
			LA29: ;
			{
				r = HEX26_161482(((NimStringDesc*) &TMP3527), r);
				putintodest_479562(p, d, (*n).typ, r);
			}
			LA24: ;
		}
		goto LA20;
		LA22: ;
		{
			putintodest_479562(p, d, (*n).typ, r);
		}
		LA20: ;
	}
	LA1: ;
}

N_NIMCALL(void, upconv_488047)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* dest;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
	dest = skiptypes_194167((*n).typ, IL64(211106247256320));
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		Ropeobj161009* r;
		Ropeobj161009* nilcheck;
		Ttype190849* t;
		LOC3 = 0;
		LOC3 = (((*p).options &(1<<((((NU8) 1))&31)))!=0);
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = isobjlackingtypefield_460910(dest);
		LOC3 = !(LOC5);
		LA4: ;
		if (!LOC3) goto LA6;
		r = rdloc_465593(a);
		nilcheck = NIM_NIL;
		t = skiptypes_194167(a.t, IL64(211106232576256));
		{
			while (1) {
				Ttype190849* LOC23;
				if (!((*t).kind == ((NU8) 23) || (*t).kind == ((NU8) 21) || (*t).kind == ((NU8) 22))) goto LA9;
				{
					if (!!(((*t).kind == ((NU8) 23)))) goto LA12;
					nilcheck = r;
				}
				LA12: ;
				{
					NIM_BOOL LOC16;
					NIM_BOOL LOC18;
					TY161572 LOC22;
					LOC16 = 0;
					LOC16 = !(((*t).kind == ((NU8) 23)));
					if (LOC16) goto LA17;
					LOC18 = 0;
					LOC18 = (gcmd_154130 == ((NU8) 2));
					if (LOC18) goto LA19;
					LOC18 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
					LA19: ;
					LOC16 = !(LOC18);
					LA17: ;
					if (!LOC16) goto LA20;
					memset((void*)LOC22, 0, sizeof(LOC22));
					LOC22[0] = r;
					r = HEX25_162235(((NimStringDesc*) &TMP3625), LOC22, 1);
				}
				LA20: ;
				LOC23 = 0;
				LOC23 = lastson_193442(t);
				t = skiptypes_194167(LOC23, IL64(211106232576256));
			} LA9: ;
		}
		{
			NIM_BOOL LOC26;
			LOC26 = 0;
			LOC26 = (gcmd_154130 == ((NU8) 2));
			if (LOC26) goto LA27;
			LOC26 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA27: ;
			if (!!(LOC26)) goto LA28;
			{
				while (1) {
					NIM_BOOL LOC32;
					LOC32 = 0;
					LOC32 = ((*t).kind == ((NU8) 17));
					if (!(LOC32)) goto LA33;
					LOC32 = !(((*t).sons->data[((NI) 0)] == NIM_NIL));
					LA33: ;
					if (!LOC32) goto LA31;
					add_161545(&r, ((NimStringDesc*) &TMP3628));
					t = skiptypes_194167((*t).sons->data[((NI) 0)], IL64(211106232576256));
				} LA31: ;
			}
		}
		LA28: ;
		{
			TY462569 LOC38;
			if (!!((nilcheck == NIM_NIL))) goto LA36;
			memset((void*)LOC38, 0, sizeof(LOC38));
			LOC38[0] = nilcheck;
			LOC38[1] = r;
			LOC38[2] = gentypeinfo_463368((*p).module, dest);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4070), LOC38, 3);
		}
		goto LA34;
		LA36: ;
		{
			TY490436 LOC40;
			memset((void*)LOC40, 0, sizeof(LOC40));
			LOC40[0] = r;
			LOC40[1] = gentypeinfo_463368((*p).module, dest);
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4071), LOC40, 2);
		}
		LA34: ;
	}
	LA6: ;
	{
		TY490436 LOC45;
		Ropeobj161009* LOC46;
		if (!!(((*(*(*n).kindU.S6.sons->data[((NI) 0)]).typ).kind == ((NU8) 17)))) goto LA43;
		memset((void*)LOC45, 0, sizeof(LOC45));
		LOC45[0] = gettypedesc_463073((*p).module, (*n).typ);
		LOC45[1] = rdloc_465593(a);
		LOC46 = 0;
		LOC46 = HEX25_162235(((NimStringDesc*) &TMP3880), LOC45, 2);
		putintodest_479562(p, d, (*n).typ, LOC46);
	}
	goto LA41;
	LA43: ;
	{
		TY490436 LOC48;
		Ropeobj161009* LOC49;
		memset((void*)LOC48, 0, sizeof(LOC48));
		LOC48[0] = gettypedesc_463073((*p).module, dest);
		LOC48[1] = addrloc_465615(a);
		LOC49 = 0;
		LOC49 = HEX25_162235(((NimStringDesc*) &TMP3879), LOC48, 2);
		putintodest_479562(p, d, (*n).typ, LOC49);
	}
	LA41: ;
}

N_NIMCALL(void, genrangechck_486214)(Tcproc456034* p, Tnode190813* n, Tloc190827* d, NimStringDesc* magic) {
	Tloc190827 a;
	Ttype190849* dest;
	memset((void*)(&a), 0, sizeof(a));
	dest = skiptypes_194167((*n).typ, IL64(211106240964864));
	{
		NIM_BOOL LOC3;
		TY490436 LOC7;
		Ropeobj161009* LOC8;
		LOC3 = 0;
		LOC3 = !((((*p).options &(1<<((((NU8) 3))&31)))!=0));
		if (LOC3) goto LA4;
		LOC3 = ((*dest).kind >= ((NU8) 40) && (*dest).kind <= ((NU8) 44));
		LA4: ;
		if (!LOC3) goto LA5;
		initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = gettypedesc_463073((*p).module, dest);
		LOC7[1] = rdcharloc_465644(a);
		LOC8 = 0;
		LOC8 = HEX25_162235(((NimStringDesc*) &TMP3880), LOC7, 2);
		putintodest_479562(p, d, (*n).typ, LOC8);
	}
	goto LA1;
	LA5: ;
	{
		TY463876 LOC10;
		Ropeobj161009* LOC11;
		initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
		memset((void*)LOC10, 0, sizeof(LOC10));
		LOC10[0] = gettypedesc_463073((*p).module, dest);
		LOC10[1] = rdcharloc_465644(a);
		LOC10[2] = genliteral_478327(p, (*n).kindU.S6.sons->data[((NI) 1)], dest);
		LOC10[3] = genliteral_478327(p, (*n).kindU.S6.sons->data[((NI) 2)], dest);
		LOC10[4] = rope_161320(magic);
		LOC11 = 0;
		LOC11 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP4072), LOC10, 5);
		putintodest_479562(p, d, dest, LOC11);
	}
	LA1: ;
}

N_NIMCALL(void, convstrtocstr_486271)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* LOC1;
	TY161572 LOC2;
	Ropeobj161009* LOC3;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
	LOC1 = 0;
	LOC1 = skiptypes_194167((*n).typ, IL64(211106240964864));
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = rdloc_465593(a);
	LOC3 = 0;
	LOC3 = HEX25_162235(((NimStringDesc*) &TMP3935), LOC2, 1);
	putintodest_479562(p, d, LOC1, LOC3);
}

N_NIMCALL(void, convcstrtostr_486286)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	Tloc190827 a;
	Ttype190849* LOC1;
	TY161572 LOC2;
	Ropeobj161009* LOC3;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
	LOC1 = 0;
	LOC1 = skiptypes_194167((*n).typ, IL64(211106240964864));
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = rdloc_465593(a);
	LOC3 = 0;
	LOC3 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP3862), LOC2, 1);
	putintodest_479562(p, d, LOC1, LOC3);
	gcusage_483678(n);
}

static N_INLINE(NIM_BOOL, isroutine_195764)(Tsym190843* s) {
	NIM_BOOL result;
	result = 0;
	result = ((520192 &(1<<(((*s).kind)&31)))!=0);
	return result;
}

static N_INLINE(NIM_BOOL, isconstclosure_487622)(Tnode190813* n) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
	if (!(LOC2)) goto LA3;
	LOC2 = isroutine_195764((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 23));
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, genclosure_487651)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	{
		NIM_BOOL LOC3;
		Ropeobj161009* tmp;
		Ropeobj161009* LOC6;
		TY462569 LOC7;
		LOC3 = 0;
		LOC3 = isconstclosure_487622(n);
		if (!LOC3) goto LA4;
		(*p).labels += ((NI) 1);
		LOC6 = 0;
		LOC6 = rope_161407(((NI64) ((*p).labels)));
		tmp = HEX26_161482(((NimStringDesc*) &TMP3623), LOC6);
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = gettypedesc_463073((*p).module, (*n).typ);
		LOC7[1] = tmp;
		LOC7[2] = genconstexpr_487301(p, n);
		addf_162635(&(*(*p).module).s[(((NU8) 8))- 0], ((NimStringDesc*) &TMP3720), LOC7, 3);
		putintodest_479562(p, d, (*n).typ, tmp);
	}
	goto LA1;
	LA4: ;
	{
		Tloc190827 tmp;
		Tloc190827 a;
		Tloc190827 b;
		TY462569 LOC9;
		memset((void*)(&tmp), 0, sizeof(tmp));
		memset((void*)(&a), 0, sizeof(a));
		memset((void*)(&b), 0, sizeof(b));
		initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
		initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 1)], (&b));
		gettemp_464444(p, (*n).typ, (&tmp), NIM_FALSE);
		memset((void*)LOC9, 0, sizeof(LOC9));
		LOC9[0] = rdloc_465593(tmp);
		LOC9[1] = rdloc_465593(a);
		LOC9[2] = rdloc_465593(b);
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4076), LOC9, 3);
		putlocintodest_466897(p, d, tmp);
	}
	LA1: ;
}

static N_INLINE(Ropeobj161009*, assignlabel_472303)(Tblock456032* b) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = rope_161407(((NI64) ((*b).id)));
	unsureAsgnRef((void**) (&(*b).label), HEX26_161482(((NimStringDesc*) &TMP3747), LOC1));
	result = (*b).label;
	return result;
}

N_NIMCALL(void, gencomputedgoto_474227)(Tcproc456034* p, Tnode190813* n) {
	NI casepos;
	NI arraysize;
	NI id;
	Ropeobj161009* tmp;
	TY161572 LOC27;
	Ropeobj161009* gotoarray;
	TY490436 LOC28;
	TY161572 LOC33;
	NI topblock;
	Ropeobj161009* oldbody;
	Ropeobj161009* tailb;
	Ropeobj161009* taila;
	Tnode190813* casestmt;
	Tloc190827 a_474358;
	TY490436 LOC41;
{	casepos = ((NI) -1);
	arraysize = 0;
	{
		NI i_474252;
		NI HEX3Atmp_474422;
		NI LOC2;
		NI res_474425;
		i_474252 = 0;
		HEX3Atmp_474422 = 0;
		LOC2 = 0;
		LOC2 = len_191097(n);
		HEX3Atmp_474422 = (LOC2 - 1);
		res_474425 = ((NI) 0);
		{
			while (1) {
				Tnode190813* it;
				if (!(res_474425 <= HEX3Atmp_474422)) goto LA4;
				i_474252 = res_474425;
				it = (*n).kindU.S6.sons->data[i_474252];
				{
					NI64 asize;
					if (!((*it).kind == ((NU8) 97))) goto LA7;
					{
						Tnode190813* LOC11;
						LOC11 = 0;
						LOC11 = lastson_193431(it);
						if (!!(((*LOC11).kind == ((NU8) 85)))) goto LA12;
						localerror_165166((*it).info, ((NimStringDesc*) &TMP4078));
						goto BeforeRet;
					}
					LA12: ;
					casepos = i_474252;
					asize = lengthord_220016((*(*it).kindU.S6.sons->data[((NI) 0)]).typ);
					{
						if (!(IL64(10000) < asize)) goto LA16;
						localerror_165166((*it).info, ((NimStringDesc*) &TMP4079));
						goto BeforeRet;
					}
					LA16: ;
					arraysize = ((NI) (asize));
					{
						NI64 LOC20;
						LOC20 = 0;
						LOC20 = firstord_220004((*(*it).kindU.S6.sons->data[((NI) 0)]).typ);
						if (!!((LOC20 == IL64(0)))) goto LA21;
						localerror_165166((*it).info, ((NimStringDesc*) &TMP4080));
						goto BeforeRet;
					}
					LA21: ;
				}
				LA7: ;
				res_474425 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		if (!(casepos < ((NI) 0))) goto LA25;
		localerror_165166((*n).info, ((NimStringDesc*) &TMP4081));
		goto BeforeRet;
	}
	LA25: ;
	id = (NI)(((NI) ((*p).labels)) + ((NI) 1));
	(*p).labels += (NI)(arraysize + ((NI) 1));
	memset((void*)LOC27, 0, sizeof(LOC27));
	LOC27[0] = rope_161407(((NI64) (id)));
	tmp = HEX25_162235(((NimStringDesc*) &TMP3618), LOC27, 1);
	memset((void*)LOC28, 0, sizeof(LOC28));
	LOC28[0] = tmp;
	LOC28[1] = rope_161407(((NI64) (arraysize)));
	gotoarray = HEX25_162235(((NimStringDesc*) &TMP4082), LOC28, 2);
	{
		NI i_474304;
		NI HEX3Atmp_474430;
		NI res_474433;
		i_474304 = 0;
		HEX3Atmp_474430 = 0;
		HEX3Atmp_474430 = (NI)(arraysize - ((NI) 1));
		res_474433 = ((NI) 1);
		{
			while (1) {
				TY161572 LOC32;
				if (!(res_474433 <= HEX3Atmp_474430)) goto LA31;
				i_474304 = res_474433;
				memset((void*)LOC32, 0, sizeof(LOC32));
				LOC32[0] = rope_161407(((NI64) ((NI)(((NI) (id)) + i_474304))));
				addf_162635(&gotoarray, ((NimStringDesc*) &TMP4083), LOC32, 1);
				res_474433 += ((NI) 1);
			} LA31: ;
		}
	}
	memset((void*)LOC33, 0, sizeof(LOC33));
	LOC33[0] = rope_161407(((NI64) ((NI)(((NI) (id)) + arraysize))));
	addf_162635(&gotoarray, ((NimStringDesc*) &TMP4084), LOC33, 1);
	line_459975(p, ((NU8) 0), gotoarray);
	topblock = (NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1));
	oldbody = (*p).blocks->data[topblock].sections[(((NU8) 2))- 0];
	asgnRefNoCycle((void**) (&(*p).blocks->data[topblock].sections[(((NU8) 2))- 0]), NIM_NIL);
	{
		NI j_474340;
		NI HEX3Atmp_474438;
		NI HEX3Atmp_474439;
		NI LOC35;
		NI res_474442;
		j_474340 = 0;
		HEX3Atmp_474438 = 0;
		HEX3Atmp_474439 = 0;
		HEX3Atmp_474438 = (NI)(casepos + ((NI) 1));
		LOC35 = 0;
		LOC35 = len_191097(n);
		HEX3Atmp_474439 = (LOC35 - 1);
		res_474442 = HEX3Atmp_474438;
		{
			while (1) {
				if (!(res_474442 <= HEX3Atmp_474439)) goto LA37;
				j_474340 = res_474442;
				genstmts_466874(p, (*n).kindU.S6.sons->data[j_474340]);
				res_474442 += ((NI) 1);
			} LA37: ;
		}
	}
	tailb = (*p).blocks->data[topblock].sections[(((NU8) 2))- 0];
	asgnRefNoCycle((void**) (&(*p).blocks->data[topblock].sections[(((NU8) 2))- 0]), NIM_NIL);
	{
		NI j_474353;
		NI HEX3Atmp_474447;
		NI res_474450;
		j_474353 = 0;
		HEX3Atmp_474447 = 0;
		HEX3Atmp_474447 = (NI)(casepos - ((NI) 1));
		res_474450 = ((NI) 0);
		{
			while (1) {
				if (!(res_474450 <= HEX3Atmp_474447)) goto LA40;
				j_474353 = res_474450;
				genstmts_466874(p, (*n).kindU.S6.sons->data[j_474353]);
				res_474450 += ((NI) 1);
			} LA40: ;
		}
	}
	taila = (*p).blocks->data[topblock].sections[(((NU8) 2))- 0];
	asgnRefNoCycle((void**) (&(*p).blocks->data[topblock].sections[(((NU8) 2))- 0]), HEX26_161436(oldbody, taila));
	casestmt = (*n).kindU.S6.sons->data[casepos];
	memset((void*)(&a_474358), 0, sizeof(a_474358));
	initlocexpr_466937(p, (*casestmt).kindU.S6.sons->data[((NI) 0)], (&a_474358));
	memset((void*)LOC41, 0, sizeof(LOC41));
	LOC41[0] = tmp;
	LOC41[1] = rdloc_465593(a_474358);
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4085), LOC41, 2);
	{
		NI i_474382;
		NI HEX3Atmp_474466;
		NI LOC43;
		NI res_474469;
		i_474382 = 0;
		HEX3Atmp_474466 = 0;
		LOC43 = 0;
		LOC43 = len_191097(casestmt);
		HEX3Atmp_474466 = (LOC43 - 1);
		res_474469 = ((NI) 1);
		{
			while (1) {
				TY460664 LOC46;
				NI LOC47;
				Tnode190813* it;
				Tnode190813* LOC57;
				Ropeobj161009** LOC58;
				Ropeobj161009** LOC59;
				Tloc190827 a;
				TY490436 LOC60;
				if (!(res_474469 <= HEX3Atmp_474466)) goto LA45;
				i_474382 = res_474469;
				memset((void*)LOC46, 0, sizeof(LOC46));
				LOC47 = 0;
				LOC47 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC46, 0);
				it = (*casestmt).kindU.S6.sons->data[i_474382];
				{
					NI j_474399;
					NI HEX3Atmp_474458;
					NI LOC49;
					NI res_474461;
					j_474399 = 0;
					HEX3Atmp_474458 = 0;
					LOC49 = 0;
					LOC49 = len_191097(it);
					HEX3Atmp_474458 = (NI)(LOC49 - ((NI) 2));
					res_474461 = ((NI) 0);
					{
						while (1) {
							NI64 val;
							TY161572 LOC56;
							if (!(res_474461 <= HEX3Atmp_474458)) goto LA51;
							j_474399 = res_474461;
							{
								if (!((*(*it).kindU.S6.sons->data[j_474399]).kind == ((NU8) 44))) goto LA54;
								localerror_165166((*it).info, ((NimStringDesc*) &TMP4086));
								goto BeforeRet;
							}
							LA54: ;
							val = getordvalue_220178((*it).kindU.S6.sons->data[j_474399]);
							memset((void*)LOC56, 0, sizeof(LOC56));
							LOC56[0] = intliteral_466915((NI64)((NI64)(val + ((NI64) (id))) + IL64(1)));
							linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4087), LOC56, 1);
							res_474461 += ((NI) 1);
						} LA51: ;
					}
				}
				LOC57 = 0;
				LOC57 = lastson_193431(it);
				genstmts_466874(p, LOC57);
				LOC58 = 0;
				LOC58 = s_456184(p, ((NU8) 2));
				add_161534(LOC58, tailb);
				LOC59 = 0;
				LOC59 = s_456184(p, ((NU8) 2));
				add_161534(LOC59, taila);
				memset((void*)(&a), 0, sizeof(a));
				initlocexpr_466937(p, (*casestmt).kindU.S6.sons->data[((NI) 0)], (&a));
				memset((void*)LOC60, 0, sizeof(LOC60));
				LOC60[0] = tmp;
				LOC60[1] = rdloc_465593(a);
				linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4085), LOC60, 2);
				endblock_472352(p);
				res_474469 += ((NI) 1);
			} LA45: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(void, genwhilestmt_474530)(Tcproc456034* p, Tnode190813* t) {
	Tloc190827 a;
	Ropeobj161009* labl;
	NI oldbreakidx_474611;
	TY460664 LOC1;
	Tnode190813* loopbody;
	memset((void*)(&a), 0, sizeof(a));
	labl = 0;
	(*p).withinloop += ((NI) 1);
	genlinedir_460241(p, t);
	oldbreakidx_474611 = (*p).breakidx;
	memset((void*)LOC1, 0, sizeof(LOC1));
	(*p).breakidx = startblock_472258(p, ((NimStringDesc*) &TMP4077), LOC1, 0);
	(*p).blocks->data[(*p).breakidx].isloop = NIM_TRUE;
	initlocexpr_466937(p, (*t).kindU.S6.sons->data[((NI) 0)], (&a));
	{
		NIM_BOOL LOC4;
		Ropeobj161009* label;
		TY490436 LOC8;
		LOC4 = 0;
		LOC4 = !(((*(*t).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 6)));
		if (LOC4) goto LA5;
		LOC4 = ((*(*t).kindU.S6.sons->data[((NI) 0)]).kindU.S1.intval == IL64(0));
		LA5: ;
		if (!LOC4) goto LA6;
		label = assignlabel_472303((&(*p).blocks->data[(*p).breakidx]));
		memset((void*)LOC8, 0, sizeof(LOC8));
		LOC8[0] = rdloc_465593(a);
		LOC8[1] = label;
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4065), LOC8, 2);
	}
	LA6: ;
	loopbody = (*t).kindU.S6.sons->data[((NI) 1)];
	{
		NIM_BOOL LOC11;
		LOC11 = 0;
		LOC11 = stmtscontainpragma_454123(loopbody, ((NU16) 177));
		if (!(LOC11)) goto LA12;
		LOC11 = ((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 1))&7)))!=0);
		LA12: ;
		if (!LOC11) goto LA13;
		{
			NIM_BOOL LOC17;
			NI LOC18;
			LOC17 = 0;
			LOC18 = 0;
			LOC18 = len_191097(loopbody);
			LOC17 = (LOC18 == ((NI) 2));
			if (!(LOC17)) goto LA19;
			LOC17 = ((*(*loopbody).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1));
			LA19: ;
			if (!LOC17) goto LA20;
			loopbody = (*loopbody).kindU.S6.sons->data[((NI) 1)];
		}
		LA20: ;
		gencomputedgoto_474227(p, loopbody);
	}
	goto LA9;
	LA13: ;
	{
		genstmts_466874(p, loopbody);
	}
	LA9: ;
	{
		TY460664 LOC27;
		if (!(((*p).options &(1<<((((NU8) 19))&31)))!=0)) goto LA25;
		memset((void*)LOC27, 0, sizeof(LOC27));
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4088), LOC27, 0);
	}
	LA25: ;
	endblock_472352(p);
	(*p).breakidx = oldbreakidx_474611;
	(*p).withinloop -= ((NI) 1);
}

N_NIMCALL(void, gengotovar_472682)(Tcproc456034* p, Tnode190813* value) {
	{
		if (!!(((*value).kind >= ((NU8) 5) && (*value).kind <= ((NU8) 15)))) goto LA3;
		localerror_165166((*value).info, ((NimStringDesc*) &TMP4089));
	}
	goto LA1;
	LA3: ;
	{
		TY161572 LOC6;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = rope_161407((*value).kindU.S1.intval);
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4090), LOC6, 1);
	}
	LA1: ;
}

N_NIMCALL(void, loaddynamiclib_489101)(Tcgen456038* m, Tlib190831* lib) {
	{
		Ropeobj161009* tmp;
		TY161572 LOC5;
		if (!!((*lib).generated)) goto LA3;
		(*lib).generated = NIM_TRUE;
		tmp = getglobaltempname_461010();
		asgnRefNoCycle((void**) (&(*lib).name), tmp);
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = tmp;
		addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP4091), LOC5, 1);
		{
			TY122008* s;
			Ropeobj161009* loadlib;
			TY490436 LOC23;
			if (!((*(*lib).path).kind >= ((NU8) 20) && (*(*lib).path).kind <= ((NU8) 22))) goto LA8;
			s = (TY122008*) newSeq((&NTI122008), 0);
			libcandidates_155409((*(*lib).path).kindU.S3.strval, (&s));
			{
				NimStringDesc* LOC14;
				if (!(((NI) 2) <= gverbosity_154137)) goto LA12;
				LOC14 = 0;
				LOC14 = rawNewString((*(*lib).path).kindU.S3.strval->Sup.len + 12);
appendString(LOC14, ((NimStringDesc*) &TMP4092));
appendString(LOC14, (*(*lib).path).kindU.S3.strval);
				msgwriteln_164536(LOC14);
			}
			LA12: ;
			loadlib = NIM_NIL;
			{
				NI i_489448;
				NI HEX3Atmp_489503;
				NI res_489506;
				i_489448 = 0;
				HEX3Atmp_489503 = 0;
				HEX3Atmp_489503 = (s ? (s->Sup.len-1) : -1);
				res_489506 = ((NI) 0);
				{
					while (1) {
						TY490436 LOC22;
						if (!(res_489506 <= HEX3Atmp_489503)) goto LA17;
						i_489448 = res_489506;
						(*m).labels += ((NI) 1);
						{
							if (!(((NI) 0) < i_489448)) goto LA20;
							add_161545(&loadlib, ((NimStringDesc*) &TMP4093));
						}
						LA20: ;
						memset((void*)LOC22, 0, sizeof(LOC22));
						LOC22[0] = tmp;
						LOC22[1] = getstrlit_478316(m, s->data[i_489448]);
						appcg_459880(m, &loadlib, ((NimStringDesc*) &TMP4094), LOC22, 2);
						res_489506 += ((NI) 1);
					} LA17: ;
				}
			}
			memset((void*)LOC23, 0, sizeof(LOC23));
			LOC23[0] = loadlib;
			LOC23[1] = getstrlit_478316(m, (*(*lib).path).kindU.S3.strval);
			appcg_459880(m, &(*m).s[(((NU8) 16))- 0], ((NimStringDesc*) &TMP4095), LOC23, 2);
		}
		goto LA6;
		LA8: ;
		{
			Tcproc456034* p;
			Tloc190827 dest;
			Ropeobj161009** LOC25;
			Ropeobj161009** LOC26;
			Ropeobj161009** LOC27;
			TY490436 LOC28;
			p = newproc_456229(NIM_NIL, m);
			(*p).options = ((*p).options & ~ 163840);
			memset((void*)(&dest), 0, sizeof(dest));
			initlocexpr_466937(p, (*lib).path, (&dest));
			LOC25 = 0;
			LOC25 = s_456184(p, ((NU8) 0));
			add_161534(&(*m).s[(((NU8) 9))- 0], (*LOC25));
			LOC26 = 0;
			LOC26 = s_456184(p, ((NU8) 1));
			add_161534(&(*m).s[(((NU8) 16))- 0], (*LOC26));
			LOC27 = 0;
			LOC27 = s_456184(p, ((NU8) 2));
			add_161534(&(*m).s[(((NU8) 16))- 0], (*LOC27));
			memset((void*)LOC28, 0, sizeof(LOC28));
			LOC28[0] = tmp;
			LOC28[1] = rdloc_465593(dest);
			appcg_459880(m, &(*m).s[(((NU8) 16))- 0], ((NimStringDesc*) &TMP4096), LOC28, 2);
		}
		LA6: ;
	}
	LA3: ;
	{
		if (!((*lib).name == NIM_NIL)) goto LA31;
		internalerror_165218(((NimStringDesc*) &TMP4097));
	}
	LA31: ;
}

N_NIMCALL(void, varindynamiclib_466419)(Tcgen456038* m, Tsym190843* sym) {
	Tlib190831* lib;
	Ropeobj161009* extname;
	Ropeobj161009* tmp;
	TY462566 LOC1;
	NimStringDesc* LOC2;
	TY490436 LOC3;
	lib = (*sym).annex;
	extname = (*sym).loc.r;
	loaddynamiclib_489101(m, lib);
	(*sym).loc.flags |= ((NI16)1)<<((((NU8) 0))%(sizeof(NI16)*8));
	tmp = mangledynlibproc_466426(sym);
	asgnRefNoCycle((void**) (&(*sym).loc.r), tmp);
	(*m).labels += ((NI) 2);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = tmp;
	LOC1[1] = gettypedesc_463073(m, (*sym).typ);
	LOC1[2] = (*lib).name;
	LOC2 = 0;
	LOC2 = HEX24_162131(extname);
	LOC1[3] = makecstring_163449(LOC2);
	appcg_459880(m, &(*m).s[(((NU8) 16))- 0], ((NimStringDesc*) &TMP4098), LOC1, 4);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = (*sym).loc.r;
	LOC3[1] = gettypedesc_463073(m, (*sym).loc.t);
	addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP4099), LOC3, 2);
}

N_NIMCALL(void, assignglobalvar_466432)(Tcproc456034* p, Tsym190843* s) {
{	{
		Ropeobj161009* LOC5;
		if (!((*s).loc.k == ((NU8) 0))) goto LA3;
		LOC5 = 0;
		LOC5 = manglename_460425(s);
		fillloc_459315((&(*s).loc), ((NU8) 3), (*s).typ, LOC5, ((NU8) 2));
	}
	LA3: ;
	{
		Tcgen456038* q;
		if (!(((*s).loc.flags &(1<<((((NU8) 4))&15)))!=0)) goto LA8;
		q = findpendingmodule_459256((*p).module, s);
		{
			NIM_BOOL LOC12;
			NIM_BOOL LOC14;
			LOC12 = 0;
			LOC12 = !((q == NIM_NIL));
			if (!(LOC12)) goto LA13;
			LOC14 = 0;
			LOC14 = containsorincl_187898((&(*q).declaredthings), (*s).Sup.id);
			LOC12 = !(LOC14);
			LA13: ;
			if (!LOC12) goto LA15;
			varindynamiclib_466419(q, s);
		}
		goto LA10;
		LA15: ;
		{
			asgnRefNoCycle((void**) (&(*s).loc.r), mangledynlibproc_466426(s));
		}
		LA10: ;
		goto BeforeRet;
	}
	LA8: ;
	useheader_459400((*p).module, s);
	{
		if (!(((*s).loc.flags &(1<<((((NU8) 3))&15)))!=0)) goto LA20;
		goto BeforeRet;
	}
	LA20: ;
	{
		if (!(((*s).flags &(1<<((((NU8) 22))&31)))!=0)) goto LA24;
		declarethreadvar_466271((*p).module, s, (((*s).flags &(1<<((((NU8) 5))&31)))!=0));
	}
	goto LA22;
	LA24: ;
	{
		Ropeobj161009* decl;
		Ropeobj161009* td;
		decl = NIM_NIL;
		td = gettypedesc_463073((*p).module, (*s).loc.t);
		{
			TY161572 LOC43;
			if (!(*s).constraint == 0) goto LA29;
			{
				if (!(((*s).flags &(1<<((((NU8) 5))&31)))!=0)) goto LA33;
				add_161545(&decl, ((NimStringDesc*) &TMP3717));
			}
			LA33: ;
			add_161534(&decl, td);
			{
				if (!(((*s).flags &(1<<((((NU8) 8))&31)))!=0)) goto LA37;
				add_161545(&decl, ((NimStringDesc*) &TMP3597));
			}
			LA37: ;
			{
				if (!(((*s).flags &(1<<((((NU8) 7))&31)))!=0)) goto LA41;
				add_161545(&decl, ((NimStringDesc*) &TMP3598));
			}
			LA41: ;
			memset((void*)LOC43, 0, sizeof(LOC43));
			LOC43[0] = (*s).loc.r;
			addf_162635(&decl, ((NimStringDesc*) &TMP3719), LOC43, 1);
		}
		goto LA27;
		LA29: ;
		{
			NimStringDesc* LOC45;
			TY490436 LOC46;
			LOC45 = 0;
			LOC45 = rawNewString((*(*s).constraint).kindU.S3.strval->Sup.len + 3);
appendString(LOC45, (*(*s).constraint).kindU.S3.strval);
appendString(LOC45, ((NimStringDesc*) &TMP3946));
			memset((void*)LOC46, 0, sizeof(LOC46));
			LOC46[0] = td;
			LOC46[1] = (*s).loc.r;
			decl = HEX25_162235(LOC45, LOC46, 2);
		}
		LA27: ;
		add_161534(&(*(*p).module).s[(((NU8) 9))- 0], decl);
	}
	LA22: ;
	{
		if (!(((NI) 0) < (*p).withinloop)) goto LA49;
		resetloc_465798(p, (&(*s).loc));
	}
	LA49: ;
	{
		TY462569 LOC55;
		NimStringDesc* LOC56;
		NimStringDesc* LOC57;
		if (!(((*(*(*p).module).module).options & 163840) == 163840)) goto LA53;
		memset((void*)LOC55, 0, sizeof(LOC55));
		LOC56 = 0;
		LOC56 = rawNewString((*(*(*s).owner).name).s->Sup.len + (*(*s).name).s->Sup.len + 1);
appendString(LOC56, (*(*(*s).owner).name).s);
appendChar(LOC56, 46);
appendString(LOC56, (*(*s).name).s);
		LOC57 = 0;
		LOC57 = nsuNormalize(LOC56);
		LOC55[0] = makecstring_163449(LOC57);
		LOC55[1] = (*s).loc.r;
		LOC55[2] = gentypeinfo_463368((*p).module, (*s).typ);
		appcg_459880((*p).module, &(*(*p).module).s[(((NU8) 15))- 0], ((NimStringDesc*) &TMP4100), LOC55, 3);
	}
	LA53: ;
	}BeforeRet: ;
}

N_NIMCALL(Ropeobj161009*, gentraverseprocforglobal_465435)(Tcgen456038* m, Tsym190843* s) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	Ttraversalclosure464431 c;
	Tcproc456034* p;
	Ropeobj161009* sloc;
	Ropeobj161009* header;
	TY161572 LOC8;
	Ropeobj161009* generatedproc;
	TY462566 LOC9;
	Ropeobj161009** LOC10;
	Ropeobj161009** LOC11;
	Ropeobj161009** LOC12;
	TY161572 LOC13;
	result = 0;
	LOC1 = 0;
	LOC1 = gentypeinfo_463368(m, (*s).loc.t);
	memset((void*)(&c), 0, sizeof(c));
	p = newproc_456229(NIM_NIL, m);
	sloc = (*s).loc.r;
	result = getglobaltempname_461010();
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = (((*s).flags &(1<<((((NU8) 22))&31)))!=0);
		if (!(LOC4)) goto LA5;
		LOC4 = emulatedthreadvars_460382();
		LA5: ;
		if (!LOC4) goto LA6;
		accessthreadlocalvar_460375(p, s);
		sloc = HEX26_161482(((NimStringDesc*) &TMP3738), sloc);
	}
	LA6: ;
	c.visitorfrmt = copyString(((NimStringDesc*) &TMP4101));
	c.p = p;
	memset((void*)LOC8, 0, sizeof(LOC8));
	LOC8[0] = result;
	header = HEX25_162235(((NimStringDesc*) &TMP4102), LOC8, 1);
	gentraverseproc_464434((&c), sloc, (*s).loc.t);
	memset((void*)LOC9, 0, sizeof(LOC9));
	LOC9[0] = header;
	LOC10 = 0;
	LOC10 = s_456184(p, ((NU8) 0));
	LOC9[1] = (*LOC10);
	LOC11 = 0;
	LOC11 = s_456184(p, ((NU8) 1));
	LOC9[2] = (*LOC11);
	LOC12 = 0;
	LOC12 = s_456184(p, ((NU8) 2));
	LOC9[3] = (*LOC12);
	generatedproc = HEX25_162235(((NimStringDesc*) &TMP3670), LOC9, 4);
	memset((void*)LOC13, 0, sizeof(LOC13));
	LOC13[0] = header;
	addf_162635(&(*m).s[(((NU8) 7))- 0], ((NimStringDesc*) &TMP3595), LOC13, 1);
	add_161534(&(*m).s[(((NU8) 10))- 0], generatedproc);
	return result;
}

N_NIMCALL(void, registergcroot_472007)(Tcproc456034* p, Tsym190843* v) {
	{
		NIM_BOOL LOC3;
		Ropeobj161009* prc;
		TY161572 LOC7;
		LOC3 = 0;
		LOC3 = ((36 &(1<<((gselectedgc_154131)&7)))!=0);
		if (!(LOC3)) goto LA4;
		LOC3 = containsgarbagecollectedref_220154((*v).loc.t);
		LA4: ;
		if (!LOC3) goto LA5;
		prc = gentraverseprocforglobal_465435((*p).module, v);
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = prc;
		linefmt_460023((*(*p).module).initproc, ((NU8) 2), ((NimStringDesc*) &TMP4103), LOC7, 1);
	}
	LA5: ;
}

static N_INLINE(NIM_BOOL, isassignedimmediately_472029)(Tnode190813* n) {
	NIM_BOOL result;
{	result = 0;
	{
		if (!((*n).kind == ((NU8) 1))) goto LA3;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = isinvalidreturntype_460948((*n).typ);
		if (!LOC7) goto LA8;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA8: ;
	result = NIM_TRUE;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, genasgncall_471804)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* d) {
	{
		if (!((*(*(*ri).kindU.S6.sons->data[((NI) 0)]).typ).callconv == ((NU8) 8))) goto LA3;
		genclosurecall_468234(p, le, ri, d);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = ((*(*ri).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
		if (!(LOC6)) goto LA7;
		LOC6 = (((*(*(*ri).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 27))&31)))!=0);
		LA7: ;
		if (!LOC6) goto LA8;
		geninfixcall_469779(p, le, ri, d);
	}
	goto LA1;
	LA8: ;
	{
		NIM_BOOL LOC11;
		LOC11 = 0;
		LOC11 = ((*(*ri).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
		if (!(LOC11)) goto LA12;
		LOC11 = (((*(*(*ri).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 28))&31)))!=0);
		LA12: ;
		if (!LOC11) goto LA13;
		gennamedparamcall_470629(p, ri, d);
	}
	goto LA1;
	LA13: ;
	{
		genprefixcall_467769(p, le, ri, d);
	}
	LA1: ;
	poststmtactions_460366(p);
}

static N_INLINE(void, loadinto_472205)(Tcproc456034* p, Tnode190813* le, Tnode190813* ri, Tloc190827* a) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		LOC3 = 0;
		LOC3 = ((*ri).kind == ((NU8) 27) || (*ri).kind == ((NU8) 29) || (*ri).kind == ((NU8) 30) || (*ri).kind == ((NU8) 31) || (*ri).kind == ((NU8) 26) || (*ri).kind == ((NU8) 28) || (*ri).kind == ((NU8) 32));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = !(((*(*ri).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)));
		if (LOC5) goto LA6;
		LOC5 = ((*(*(*ri).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic == ((NU16) 0));
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA7;
		genasgncall_471804(p, le, ri, a);
	}
	goto LA1;
	LA7: ;
	{
		if (!((*ri).kind == ((NU8) 47) || (*ri).kind == ((NU8) 65))) goto LA10;
		genderef_472198(p, ri, a, NIM_TRUE);
	}
	goto LA1;
	LA10: ;
	{
		expr_466881(p, ri, a);
	}
	LA1: ;
}

N_NIMCALL(void, gensinglevar_472703)(Tcproc456034* p, Tnode190813* a) {
	Tsym190843* v;
	Tcproc456034* targetproc;
{	v = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	{
		if (!!(((1082130432 & (*v).flags) == 0))) goto LA3;
		{
			if (!(((*v).flags &(1<<((((NU8) 30))&31)))!=0)) goto LA7;
			gengotovar_472682(p, (*a).kindU.S6.sons->data[((NI) 2)]);
		}
		LA7: ;
		goto BeforeRet;
	}
	LA3: ;
	targetproc = p;
	{
		if (!(((*v).flags &(1<<((((NU8) 3))&31)))!=0)) goto LA11;
		{
			NIM_BOOL LOC15;
			NIM_BOOL LOC16;
			LOC15 = 0;
			LOC16 = 0;
			LOC16 = (((*v).flags & 96) == 32);
			if (!(LOC16)) goto LA17;
			LOC16 = ((*(*a).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1));
			LA17: ;
			LOC15 = LOC16;
			if (!(LOC15)) goto LA18;
			LOC15 = !((((*v).loc.flags & 72) == 0));
			LA18: ;
			if (!LOC15) goto LA19;
			goto BeforeRet;
		}
		LA19: ;
		{
			if (!(((*v).flags &(1<<((((NU8) 9))&31)))!=0)) goto LA23;
			targetproc = (*(*p).module).preinitproc;
		}
		LA23: ;
		assignglobalvar_466432(targetproc, v);
		genobjectinit_465665((*(*p).module).preinitproc, ((NU8) 1), (*v).typ, (*v).loc, NIM_TRUE);
		{
			NIM_BOOL LOC27;
			LOC27 = 0;
			LOC27 = (((*v).flags &(1<<((((NU8) 6))&31)))!=0);
			if (!(LOC27)) goto LA28;
			LOC27 = !((generatedheader_459201 == NIM_NIL));
			LA28: ;
			if (!LOC27) goto LA29;
			genvarprototypeaux_472678(generatedheader_459201, v);
		}
		LA29: ;
		registergcroot_472007(p, v);
	}
	goto LA9;
	LA11: ;
	{
		Tnode190813* value;
		NIM_BOOL imm;
		value = (*a).kindU.S6.sons->data[((NI) 2)];
		imm = isassignedimmediately_472029(value);
		{
			NIM_BOOL LOC34;
			NIM_BOOL LOC35;
			NIM_BOOL LOC36;
			NIM_BOOL LOC38;
			NIM_BOOL LOC42;
			Ropeobj161009* decl;
			Tloc190827 tmp;
			LOC34 = 0;
			LOC35 = 0;
			LOC36 = 0;
			LOC36 = imm;
			if (!(LOC36)) goto LA37;
			LOC38 = 0;
			LOC38 = (gcmd_154130 == ((NU8) 2));
			if (LOC38) goto LA39;
			LOC38 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA39: ;
			LOC36 = LOC38;
			LA37: ;
			LOC35 = LOC36;
			if (!(LOC35)) goto LA40;
			LOC35 = ((*p).splitdecls == ((NI) 0));
			LA40: ;
			LOC34 = LOC35;
			if (!(LOC34)) goto LA41;
			LOC42 = 0;
			LOC42 = containshiddenpointer_220160((*v).typ);
			LOC34 = !(LOC42);
			LA41: ;
			if (!LOC34) goto LA43;
			genlinedir_460241(p, a);
			decl = localvardecl_466119(p, v);
			memset((void*)(&tmp), 0, sizeof(tmp));
			{
				NIM_BOOL LOC47;
				NIM_BOOL LOC48;
				Tnode190813* LOC50;
				Tnode190813* LOC52;
				Ropeobj161009* params;
				Ttype190849* typ;
				TY490436 LOC66;
				LOC47 = 0;
				LOC48 = 0;
				LOC48 = ((*value).kind == ((NU8) 27) || (*value).kind == ((NU8) 29) || (*value).kind == ((NU8) 30) || (*value).kind == ((NU8) 31) || (*value).kind == ((NU8) 26) || (*value).kind == ((NU8) 28) || (*value).kind == ((NU8) 32));
				if (!(LOC48)) goto LA49;
				LOC50 = 0;
				LOC50 = HEX5BHEX5D_191244(value, ((NI) 0));
				LOC48 = ((*LOC50).kind == ((NU8) 3));
				LA49: ;
				LOC47 = LOC48;
				if (!(LOC47)) goto LA51;
				LOC52 = 0;
				LOC52 = HEX5BHEX5D_191244(value, ((NI) 0));
				LOC47 = (((*(*LOC52).kindU.S4.sym).flags &(1<<((((NU8) 24))&31)))!=0);
				LA51: ;
				if (!LOC47) goto LA53;
				params = 0;
				typ = skiptypes_194167((*(*value).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106232576256));
				{
					NI i_473020;
					NI HEX3Atmp_473225;
					NI LOC56;
					NI res_473228;
					i_473020 = 0;
					HEX3Atmp_473225 = 0;
					LOC56 = 0;
					LOC56 = len_191097(value);
					HEX3Atmp_473225 = (LOC56 - 1);
					res_473228 = ((NI) 1);
					{
						while (1) {
							Ropeobj161009* LOC65;
							if (!(res_473228 <= HEX3Atmp_473225)) goto LA58;
							i_473020 = res_473228;
							{
								TY460664 LOC63;
								Ropeobj161009* LOC64;
								if (!!((params == NIM_NIL))) goto LA61;
								memset((void*)LOC63, 0, sizeof(LOC63));
								LOC64 = 0;
								LOC64 = HEX25_162235(((NimStringDesc*) &TMP3536), LOC63, 0);
								add_161534(&params, LOC64);
							}
							LA61: ;
							LOC65 = 0;
							LOC65 = genotherarg_466928(p, value, i_473020, typ);
							add_161534(&params, LOC65);
							res_473228 += ((NI) 1);
						} LA58: ;
					}
				}
				memset((void*)LOC66, 0, sizeof(LOC66));
				LOC66[0] = decl;
				LOC66[1] = params;
				linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4104), LOC66, 2);
			}
			goto LA45;
			LA53: ;
			{
				TY490436 LOC68;
				initlocexprsingleuse_466949(p, value, (&tmp));
				memset((void*)LOC68, 0, sizeof(LOC68));
				LOC68[0] = decl;
				LOC68[1] = rdloc_465593(tmp);
				linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4105), LOC68, 2);
			}
			LA45: ;
			goto BeforeRet;
		}
		LA43: ;
		assignlocalvar_466207(p, v);
		initlocalvar_465858(p, v, imm);
	}
	LA9: ;
	{
		if (!!(((*(*a).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1)))) goto LA71;
		genlinedir_460241(targetproc, a);
		loadinto_472205(targetproc, (*a).kindU.S6.sons->data[((NI) 0)], (*a).kindU.S6.sons->data[((NI) 2)], (&(*v).loc));
	}
	LA71: ;
	}BeforeRet: ;
}

N_NIMCALL(void, genclosurevar_473244)(Tcproc456034* p, Tnode190813* a) {
	NIM_BOOL immediateasgn;
	immediateasgn = !(((*(*a).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1)));
	{
		Tloc190827 v;
		if (!immediateasgn) goto LA3;
		memset((void*)(&v), 0, sizeof(v));
		initlocexpr_466937(p, (*a).kindU.S6.sons->data[((NI) 0)], (&v));
		genlinedir_460241(p, a);
		loadinto_472205(p, (*a).kindU.S6.sons->data[((NI) 0)], (*a).kindU.S6.sons->data[((NI) 2)], (&v));
	}
	LA3: ;
}

N_NIMCALL(void, genvartuple_472045)(Tcproc456034* p, Tnode190813* n) {
	Tloc190827 tup;
	Tloc190827 field;
	NI L;
	NIM_BOOL uselowering;
	Ttype190849* t;
{	memset((void*)(&tup), 0, sizeof(tup));
	memset((void*)(&field), 0, sizeof(field));
	{
		if (!!(((*n).kind == ((NU8) 36)))) goto LA3;
		internalerror_165199((*n).info, ((NimStringDesc*) &TMP4106));
	}
	LA3: ;
	L = sonslen_193403(n);
	uselowering = NIM_FALSE;
	{
		NI i_472074;
		NI HEX3Atmp_472158;
		NI res_472161;
		i_472074 = 0;
		HEX3Atmp_472158 = 0;
		HEX3Atmp_472158 = (NI)(L - ((NI) 3));
		res_472161 = ((NI) 0);
		{
			while (1) {
				if (!(res_472161 <= HEX3Atmp_472158)) goto LA7;
				i_472074 = res_472161;
				{
					Tnode190813* LOC10;
					LOC10 = 0;
					LOC10 = HEX5BHEX5D_191244(n, i_472074);
					if (!!(((*LOC10).kind == ((NU8) 3)))) goto LA11;
					uselowering = NIM_TRUE;
					goto LA5;
				}
				LA11: ;
				res_472161 += ((NI) 1);
			} LA7: ;
		}
	} LA5: ;
	{
		Tnode190813* LOC17;
		if (!uselowering) goto LA15;
		LOC17 = 0;
		LOC17 = lowertupleunpacking_357087(n, (*p).prc);
		genstmts_466874(p, LOC17);
		goto BeforeRet;
	}
	LA15: ;
	genlinedir_460241(p, n);
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))], (&tup));
	t = getuniquetype_454656(tup.t);
	{
		NI i_472099;
		NI HEX3Atmp_472167;
		NI res_472170;
		i_472099 = 0;
		HEX3Atmp_472167 = 0;
		HEX3Atmp_472167 = (NI)(L - ((NI) 3));
		res_472170 = ((NI) 0);
		{
			while (1) {
				if (!(res_472170 <= HEX3Atmp_472167)) goto LA20;
				i_472099 = res_472170;
				{
					Tsym190843* v;
					v = (*(*n).kindU.S6.sons->data[i_472099]).kindU.S4.sym;
					{
						if (!(((*v).flags &(1<<((((NU8) 23))&31)))!=0)) goto LA24;
						goto LA21;
					}
					LA24: ;
					{
						if (!(((*v).flags &(1<<((((NU8) 3))&31)))!=0)) goto LA28;
						assignglobalvar_466432(p, v);
						genobjectinit_465665(p, ((NU8) 1), (*v).typ, (*v).loc, NIM_TRUE);
						registergcroot_472007(p, v);
					}
					goto LA26;
					LA28: ;
					{
						Tnode190813* LOC31;
						NIM_BOOL LOC32;
						assignlocalvar_466207(p, v);
						LOC31 = 0;
						LOC31 = HEX5BHEX5D_191244(n, (NI)(L - ((NI) 1)));
						LOC32 = 0;
						LOC32 = isassignedimmediately_472029(LOC31);
						initlocalvar_465858(p, v, LOC32);
					}
					LA26: ;
					initloc_459300((&field), ((NU8) 6), (*t).sons->data[i_472099], tup.s);
					{
						TY490436 LOC37;
						if (!((*t).kind == ((NU8) 18))) goto LA35;
						memset((void*)LOC37, 0, sizeof(LOC37));
						LOC37[0] = rdloc_465593(tup);
						LOC37[1] = rope_161407(((NI64) (i_472099)));
						field.r = HEX25_162235(((NimStringDesc*) &TMP3665), LOC37, 2);
					}
					goto LA33;
					LA35: ;
					{
						TY490436 LOC43;
						{
							if (!!(((*(*(*t).n).kindU.S6.sons->data[i_472099]).kind == ((NU8) 3)))) goto LA41;
							internalerror_165199((*n).info, ((NimStringDesc*) &TMP4106));
						}
						LA41: ;
						memset((void*)LOC43, 0, sizeof(LOC43));
						LOC43[0] = rdloc_465593(tup);
						LOC43[1] = manglerecfieldname_461803((*(*(*t).n).kindU.S6.sons->data[i_472099]).kindU.S4.sym, t);
						field.r = HEX25_162235(((NimStringDesc*) &TMP3570), LOC43, 2);
					}
					LA33: ;
					putlocintodest_466897(p, (&(*v).loc), field);
				} LA21: ;
				res_472170 += ((NI) 1);
			} LA20: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(void, genvarstmt_473269)(Tcproc456034* p, Tnode190813* n) {
	{
		NI i_473285;
		NI HEX3Atmp_473318;
		NI LOC2;
		NI res_473321;
		i_473285 = 0;
		HEX3Atmp_473318 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(n);
		HEX3Atmp_473318 = (NI)(LOC2 - ((NI) 1));
		res_473321 = ((NI) 0);
		{
			while (1) {
				if (!(res_473321 <= HEX3Atmp_473318)) goto LA4;
				i_473285 = res_473321;
				{
					Tnode190813* a;
					a = (*n).kindU.S6.sons->data[i_473285];
					{
						if (!((*a).kind == ((NU8) 125))) goto LA8;
						goto LA5;
					}
					LA8: ;
					{
						if (!((*a).kind == ((NU8) 35))) goto LA12;
						{
							if (!((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA16;
							gensinglevar_472703(p, a);
						}
						goto LA14;
						LA16: ;
						{
							genclosurevar_473244(p, a);
						}
						LA14: ;
					}
					goto LA10;
					LA12: ;
					{
						genvartuple_472045(p, a);
					}
					LA10: ;
				} LA5: ;
				res_473321 += ((NI) 1);
			} LA4: ;
		}
	}
}

static N_INLINE(NIM_BOOL, emitlazily_459269)(Tsym190843* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	Tsym190843* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = ((gglobaloptions_154128 &(1<<((((NU8) 2))&31)))!=0);
	if (LOC1) goto LA2;
	LOC3 = 0;
	LOC3 = getmodule_198243(s);
	LOC1 = (((*LOC3).flags &(1<<((((NU8) 25))&31)))!=0);
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, genconststmt_473340)(Tcproc456034* p, Tnode190813* t) {
	{
		NI i_473356;
		NI HEX3Atmp_473418;
		NI LOC2;
		NI res_473421;
		i_473356 = 0;
		HEX3Atmp_473418 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(t);
		HEX3Atmp_473418 = (NI)(LOC2 - ((NI) 1));
		res_473421 = ((NI) 0);
		{
			while (1) {
				if (!(res_473421 <= HEX3Atmp_473418)) goto LA4;
				i_473356 = res_473421;
				{
					Tnode190813* it;
					Tsym190843* c;
					it = (*t).kindU.S6.sons->data[i_473356];
					{
						if (!((*it).kind == ((NU8) 125))) goto LA8;
						goto LA5;
					}
					LA8: ;
					{
						if (!!(((*it).kind == ((NU8) 102)))) goto LA12;
						internalerror_165199((*t).info, ((NimStringDesc*) &TMP4107));
					}
					LA12: ;
					c = (*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
					{
						NIM_BOOL LOC16;
						LOC16 = 0;
						LOC16 = containscompiletimeonly_229733((*c).typ);
						if (!LOC16) goto LA17;
						goto LA5;
					}
					LA17: ;
					{
						if (!(((*c).flags &(1<<((((NU8) 25))&31)))!=0)) goto LA21;
						gensinglevar_472703(p, it);
					}
					goto LA19;
					LA21: ;
					{
						NIM_BOOL LOC24;
						NIM_BOOL LOC25;
						NI LOC28;
						LOC24 = 0;
						LOC25 = 0;
						LOC25 = ((*(*c).typ).kind == ((NU8) 4) || (*(*c).typ).kind == ((NU8) 16) || (*(*c).typ).kind == ((NU8) 19) || (*(*c).typ).kind == ((NU8) 18) || (*(*c).typ).kind == ((NU8) 24));
						if (!(LOC25)) goto LA26;
						LOC25 = !((((*c).loc.flags &(1<<((((NU8) 3))&15)))!=0));
						LA26: ;
						LOC24 = LOC25;
						if (!(LOC24)) goto LA27;
						LOC28 = 0;
						LOC28 = len_191097((*c).ast);
						LOC24 = !((LOC28 == ((NI) 0)));
						LA27: ;
						if (!LOC24) goto LA29;
						{
							NIM_BOOL LOC33;
							LOC33 = 0;
							LOC33 = emitlazily_459269(c);
							if (!!(LOC33)) goto LA34;
							requestconstimpl_466867(p, c);
						}
						LA34: ;
					}
					goto LA19;
					LA29: ;
					LA19: ;
				} LA5: ;
				res_473421 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, gencasestringbranch_475738)(Tcproc456034* p, Tnode190813* b, Tloc190827 e, Ropeobj161009* labl, Ropeobj161009** branches, NI branchesLen0) {
	Tloc190827 x;
	NI length;
	memset((void*)(&x), 0, sizeof(x));
	length = sonslen_193403(b);
	{
		NI i_475761;
		NI HEX3Atmp_476009;
		NI res_476012;
		i_475761 = 0;
		HEX3Atmp_476009 = 0;
		HEX3Atmp_476009 = (NI)(length - ((NI) 2));
		res_476012 = ((NI) 0);
		{
			while (1) {
				NI j;
				NI64 LOC4;
				TY462569 LOC5;
				if (!(res_476012 <= HEX3Atmp_476009)) goto LA3;
				i_475761 = res_476012;
				initlocexpr_466937(p, (*b).kindU.S6.sons->data[i_475761], (&x));
				LOC4 = 0;
				LOC4 = hashstring_454146((*(*b).kindU.S6.sons->data[i_475761]).kindU.S3.strval);
				j = ((NI) ((NI64)(LOC4 & ((NI64) ((branchesLen0-1))))));
				memset((void*)LOC5, 0, sizeof(LOC5));
				LOC5[0] = rdloc_465593(e);
				LOC5[1] = rdloc_465593(x);
				LOC5[2] = labl;
				appcg_459880((*p).module, &branches[j], ((NimStringDesc*) &TMP4109), LOC5, 3);
				res_476012 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(void, exprblock_472401)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	TY460664 LOC1;
	NI LOC2;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC1, 0);
	expr_466881(p, n, d);
	endblock_472352(p);
}

N_NIMCALL(Ropeobj161009*, gencasesecondpass_475583)(Tcproc456034* p, Tnode190813* t, Tloc190827* d, NI labid, NI until) {
	Ropeobj161009* result;
	Ropeobj161009* lend;
	result = 0;
	lend = getlabel_466829(p);
	{
		NI i_475603;
		NI res_475627;
		i_475603 = 0;
		res_475627 = ((NI) 1);
		{
			while (1) {
				TY161572 LOC4;
				if (!(res_475627 <= until)) goto LA3;
				i_475603 = res_475627;
				memset((void*)LOC4, 0, sizeof(LOC4));
				LOC4[0] = rope_161407(((NI64) ((NI)(labid + i_475603))));
				linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4113), LOC4, 1);
				{
					NI length;
					TY161572 LOC9;
					if (!((*(*t).kindU.S6.sons->data[i_475603]).kind == ((NU8) 85))) goto LA7;
					length = sonslen_193403((*t).kindU.S6.sons->data[i_475603]);
					exprblock_472401(p, (*(*t).kindU.S6.sons->data[i_475603]).kindU.S6.sons->data[(NI)(length - ((NI) 1))], d);
					memset((void*)LOC9, 0, sizeof(LOC9));
					LOC9[0] = lend;
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4066), LOC9, 1);
				}
				goto LA5;
				LA7: ;
				{
					exprblock_472401(p, (*(*t).kindU.S6.sons->data[i_475603]).kindU.S6.sons->data[((NI) 0)], d);
				}
				LA5: ;
				res_475627 += ((NI) 1);
			} LA3: ;
		}
	}
	result = lend;
	return result;
}

N_NIMCALL(void, gencasegenericbranch_475515)(Tcproc456034* p, Tnode190813* b, Tloc190827 e, NimStringDesc* rangeformat, NimStringDesc* eqformat, Ropeobj161009* labl) {
	Tloc190827 x;
	Tloc190827 y;
	NI length;
	memset((void*)(&x), 0, sizeof(x));
	memset((void*)(&y), 0, sizeof(y));
	length = sonslen_193403(b);
	{
		NI i_475538;
		NI HEX3Atmp_475564;
		NI res_475567;
		i_475538 = 0;
		HEX3Atmp_475564 = 0;
		HEX3Atmp_475564 = (NI)(length - ((NI) 2));
		res_475567 = ((NI) 0);
		{
			while (1) {
				if (!(res_475567 <= HEX3Atmp_475564)) goto LA3;
				i_475538 = res_475567;
				{
					TY462566 LOC8;
					if (!((*(*b).kindU.S6.sons->data[i_475538]).kind == ((NU8) 44))) goto LA6;
					initlocexpr_466937(p, (*(*b).kindU.S6.sons->data[i_475538]).kindU.S6.sons->data[((NI) 0)], (&x));
					initlocexpr_466937(p, (*(*b).kindU.S6.sons->data[i_475538]).kindU.S6.sons->data[((NI) 1)], (&y));
					memset((void*)LOC8, 0, sizeof(LOC8));
					LOC8[0] = rdcharloc_465644(e);
					LOC8[1] = rdcharloc_465644(x);
					LOC8[2] = rdcharloc_465644(y);
					LOC8[3] = labl;
					linecg_460010(p, ((NU8) 2), rangeformat, LOC8, 4);
				}
				goto LA4;
				LA6: ;
				{
					TY462569 LOC10;
					initlocexpr_466937(p, (*b).kindU.S6.sons->data[i_475538], (&x));
					memset((void*)LOC10, 0, sizeof(LOC10));
					LOC10[0] = rdcharloc_465644(e);
					LOC10[1] = rdcharloc_465644(x);
					LOC10[2] = labl;
					linecg_460010(p, ((NU8) 2), eqformat, LOC10, 3);
				}
				LA4: ;
				res_475567 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(Ropeobj161009*, genifforcaseuntil_475643)(Tcproc456034* p, Tnode190813* t, Tloc190827* d, NimStringDesc* rangeformat, NimStringDesc* eqformat, NI until, Tloc190827 a) {
	Ropeobj161009* result;
	NI labid;
	result = 0;
	labid = (*p).labels;
	{
		NI i_475665;
		NI res_475706;
		i_475665 = 0;
		res_475706 = ((NI) 1);
		{
			while (1) {
				if (!(res_475706 <= until)) goto LA3;
				i_475665 = res_475706;
				(*p).labels += ((NI) 1);
				{
					Ropeobj161009* LOC8;
					Ropeobj161009* LOC9;
					if (!((*(*t).kindU.S6.sons->data[i_475665]).kind == ((NU8) 85))) goto LA6;
					LOC8 = 0;
					LOC8 = rope_161407(((NI64) ((*p).labels)));
					LOC9 = 0;
					LOC9 = HEX26_161482(((NimStringDesc*) &TMP3747), LOC8);
					gencasegenericbranch_475515(p, (*t).kindU.S6.sons->data[i_475665], a, rangeformat, eqformat, LOC9);
				}
				goto LA4;
				LA6: ;
				{
					TY161572 LOC11;
					memset((void*)LOC11, 0, sizeof(LOC11));
					LOC11[0] = rope_161407(((NI64) ((*p).labels)));
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4112), LOC11, 1);
				}
				LA4: ;
				res_475706 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI LOC14;
		NI gototarget;
		TY161572 LOC17;
		TY161572 LOC18;
		LOC14 = 0;
		LOC14 = len_191097(t);
		if (!(until < (NI)(LOC14 - ((NI) 1)))) goto LA15;
		(*p).labels += ((NI) 1);
		gototarget = (*p).labels;
		memset((void*)LOC17, 0, sizeof(LOC17));
		LOC17[0] = rope_161407(((NI64) (gototarget)));
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4112), LOC17, 1);
		result = gencasesecondpass_475583(p, t, d, ((NI) (labid)), until);
		memset((void*)LOC18, 0, sizeof(LOC18));
		LOC18[0] = rope_161407(((NI64) (gototarget)));
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4113), LOC18, 1);
	}
	goto LA12;
	LA15: ;
	{
		result = gencasesecondpass_475583(p, t, d, ((NI) (labid)), until);
	}
	LA12: ;
	return result;
}

N_NIMCALL(void, gencasegeneric_475722)(Tcproc456034* p, Tnode190813* t, Tloc190827* d, NimStringDesc* rangeformat, NimStringDesc* eqformat) {
	Tloc190827 a;
	Ropeobj161009* lend;
	NI LOC1;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*t).kindU.S6.sons->data[((NI) 0)], (&a));
	LOC1 = 0;
	LOC1 = sonslen_193403(t);
	lend = genifforcaseuntil_475643(p, t, d, rangeformat, eqformat, (NI)(LOC1 - ((NI) 1)), a);
	fixlabel_466848(p, lend);
}

N_NIMCALL(void, genstringcase_476028)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	NI strings;
	strings = ((NI) 0);
	{
		NI i_476047;
		NI HEX3Atmp_476164;
		NI LOC2;
		NI res_476167;
		i_476047 = 0;
		HEX3Atmp_476164 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(t);
		HEX3Atmp_476164 = (NI)(LOC2 - ((NI) 1));
		res_476167 = ((NI) 1);
		{
			while (1) {
				if (!(res_476167 <= HEX3Atmp_476164)) goto LA4;
				i_476047 = res_476167;
				{
					NI LOC9;
					if (!((*(*t).kindU.S6.sons->data[i_476047]).kind == ((NU8) 85))) goto LA7;
					LOC9 = 0;
					LOC9 = sonslen_193403((*t).kindU.S6.sons->data[i_476047]);
					strings += (NI)(LOC9 - ((NI) 1));
				}
				LA7: ;
				res_476167 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		NI bitmask;
		NI LOC14;
		TY163351* branches;
		Tloc190827 a;
		NI labid;
		TY490436 LOC26;
		TY460664 LOC35;
		Ropeobj161009* lend;
		NI LOC42;
		if (!(((NI) 8) < strings)) goto LA12;
		LOC14 = 0;
		LOC14 = nextpoweroftwo_149531(strings);
		bitmask = (NI)(LOC14 - ((NI) 1));
		branches = 0;
		branches = (TY163351*) newSeq((&NTI163351), ((NI) ((NI)(bitmask + ((NI) 1)))));
		memset((void*)(&a), 0, sizeof(a));
		initlocexpr_466937(p, (*t).kindU.S6.sons->data[((NI) 0)], (&a));
		labid = (*p).labels;
		{
			NI i_476097;
			NI HEX3Atmp_476174;
			NI LOC16;
			NI res_476177;
			i_476097 = 0;
			HEX3Atmp_476174 = 0;
			LOC16 = 0;
			LOC16 = sonslen_193403(t);
			HEX3Atmp_476174 = (NI)(LOC16 - ((NI) 1));
			res_476177 = ((NI) 1);
			{
				while (1) {
					if (!(res_476177 <= HEX3Atmp_476174)) goto LA18;
					i_476097 = res_476177;
					(*p).labels += ((NI) 1);
					{
						Ropeobj161009* LOC23;
						Ropeobj161009* LOC24;
						if (!((*(*t).kindU.S6.sons->data[i_476097]).kind == ((NU8) 85))) goto LA21;
						LOC23 = 0;
						LOC23 = rope_161407(((NI64) ((*p).labels)));
						LOC24 = 0;
						LOC24 = HEX26_161482(((NimStringDesc*) &TMP3747), LOC23);
						gencasestringbranch_475738(p, (*t).kindU.S6.sons->data[i_476097], a, LOC24, branches->data, branches->Sup.len);
					}
					goto LA19;
					LA21: ;
					{
					}
					LA19: ;
					res_476177 += ((NI) 1);
				} LA18: ;
			}
		}
		memset((void*)LOC26, 0, sizeof(LOC26));
		LOC26[0] = rdloc_465593(a);
		LOC26[1] = rope_161407(((NI64) (bitmask)));
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4110), LOC26, 2);
		{
			NI j_476132;
			NI HEX3Atmp_476182;
			NI res_476185;
			j_476132 = 0;
			HEX3Atmp_476182 = 0;
			HEX3Atmp_476182 = (branches ? (branches->Sup.len-1) : -1);
			res_476185 = ((NI) 0);
			{
				while (1) {
					if (!(res_476185 <= HEX3Atmp_476182)) goto LA29;
					j_476132 = res_476185;
					{
						TY490436 LOC34;
						if (!!((branches->data[j_476132] == NIM_NIL))) goto LA32;
						memset((void*)LOC34, 0, sizeof(LOC34));
						LOC34[0] = intliteral_466915(((NI64) (j_476132)));
						LOC34[1] = branches->data[j_476132];
						linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4111), LOC34, 2);
					}
					LA32: ;
					res_476185 += ((NI) 1);
				} LA29: ;
			}
		}
		memset((void*)LOC35, 0, sizeof(LOC35));
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3635), LOC35, 0);
		{
			NI LOC38;
			TY161572 LOC41;
			LOC38 = 0;
			LOC38 = sonslen_193403(t);
			if (!!(((*(*t).kindU.S6.sons->data[(NI)(LOC38 - ((NI) 1))]).kind == ((NU8) 85)))) goto LA39;
			memset((void*)LOC41, 0, sizeof(LOC41));
			LOC41[0] = rope_161407(((NI64) ((*p).labels)));
			linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4112), LOC41, 1);
		}
		LA39: ;
		LOC42 = 0;
		LOC42 = sonslen_193403(t);
		lend = gencasesecondpass_475583(p, t, d, ((NI) (labid)), (NI)(LOC42 - ((NI) 1)));
		fixlabel_466848(p, lend);
	}
	goto LA10;
	LA12: ;
	{
		gencasegeneric_475722(p, t, d, ((NimStringDesc*) &TMP3940), ((NimStringDesc*) &TMP4109));
	}
	LA10: ;
}

N_NIMCALL(void, gengotoforcase_474133)(Tcproc456034* p, Tnode190813* casestmt) {
{	{
		NI i_474156;
		NI HEX3Atmp_474199;
		NI LOC2;
		NI res_474202;
		i_474156 = 0;
		HEX3Atmp_474199 = 0;
		LOC2 = 0;
		LOC2 = len_191097(casestmt);
		HEX3Atmp_474199 = (LOC2 - 1);
		res_474202 = ((NI) 1);
		{
			while (1) {
				TY460664 LOC5;
				NI LOC6;
				Tnode190813* it;
				Tnode190813* LOC16;
				if (!(res_474202 <= HEX3Atmp_474199)) goto LA4;
				i_474156 = res_474202;
				memset((void*)LOC5, 0, sizeof(LOC5));
				LOC6 = 0;
				LOC6 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC5, 0);
				it = (*casestmt).kindU.S6.sons->data[i_474156];
				{
					NI j_474173;
					NI HEX3Atmp_474192;
					NI LOC8;
					NI res_474195;
					j_474173 = 0;
					HEX3Atmp_474192 = 0;
					LOC8 = 0;
					LOC8 = len_191097(it);
					HEX3Atmp_474192 = (NI)(LOC8 - ((NI) 2));
					res_474195 = ((NI) 0);
					{
						while (1) {
							NI64 val;
							TY161572 LOC15;
							if (!(res_474195 <= HEX3Atmp_474192)) goto LA10;
							j_474173 = res_474195;
							{
								if (!((*(*it).kindU.S6.sons->data[j_474173]).kind == ((NU8) 44))) goto LA13;
								localerror_165166((*it).info, ((NimStringDesc*) &TMP4086));
								goto BeforeRet;
							}
							LA13: ;
							val = getordvalue_220178((*it).kindU.S6.sons->data[j_474173]);
							memset((void*)LOC15, 0, sizeof(LOC15));
							LOC15[0] = rope_161407(val);
							linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4116), LOC15, 1);
							res_474195 += ((NI) 1);
						} LA10: ;
					}
				}
				LOC16 = 0;
				LOC16 = lastson_193431(it);
				genstmts_466874(p, LOC16);
				endblock_472352(p);
				res_474202 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, branchhastoobigrange_476220)(Tnode190813* b) {
	NIM_BOOL result;
{	result = 0;
	{
		NI i_476236;
		NI HEX3Atmp_476254;
		NI LOC2;
		NI res_476257;
		i_476236 = 0;
		HEX3Atmp_476254 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(b);
		HEX3Atmp_476254 = (NI)(LOC2 - ((NI) 2));
		res_476257 = ((NI) 0);
		{
			while (1) {
				if (!(res_476257 <= HEX3Atmp_476254)) goto LA4;
				i_476236 = res_476257;
				{
					NIM_BOOL LOC7;
					LOC7 = 0;
					LOC7 = ((*(*b).kindU.S6.sons->data[i_476236]).kind == ((NU8) 44));
					if (!(LOC7)) goto LA8;
					LOC7 = (IL64(256) < (NI64)((*(*(*b).kindU.S6.sons->data[i_476236]).kindU.S6.sons->data[((NI) 1)]).kindU.S1.intval - (*(*(*b).kindU.S6.sons->data[i_476236]).kindU.S6.sons->data[((NI) 0)]).kindU.S1.intval));
					LA8: ;
					if (!LOC7) goto LA9;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA9: ;
				res_476257 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, ifswitchsplitpoint_476273)(Tcproc456034* p, Tnode190813* n) {
	NI result;
	result = 0;
	{
		NI i_476289;
		NI HEX3Atmp_476313;
		NI LOC2;
		NI res_476316;
		i_476289 = 0;
		HEX3Atmp_476313 = 0;
		LOC2 = 0;
		LOC2 = len_191097(n);
		HEX3Atmp_476313 = (NI)(LOC2 - ((NI) 1));
		res_476316 = ((NI) 1);
		{
			while (1) {
				Tnode190813* branch;
				Tnode190813* stmtblock;
				if (!(res_476316 <= HEX3Atmp_476313)) goto LA4;
				i_476289 = res_476316;
				branch = HEX5BHEX5D_191244(n, i_476289);
				stmtblock = lastson_193431(branch);
				{
					NIM_BOOL LOC7;
					LOC7 = 0;
					LOC7 = stmtscontainpragma_454123(stmtblock, ((NU16) 176));
					if (!LOC7) goto LA8;
					result = i_476289;
				}
				goto LA5;
				LA8: ;
				{
					if (!!(((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 0))&7)))!=0))) goto LA11;
					{
						NIM_BOOL LOC15;
						LOC15 = 0;
						LOC15 = ((*branch).kind == ((NU8) 85));
						if (!(LOC15)) goto LA16;
						LOC15 = branchhastoobigrange_476220(branch);
						LA16: ;
						if (!LOC15) goto LA17;
						result = i_476289;
					}
					LA17: ;
				}
				goto LA5;
				LA11: ;
				LA5: ;
				res_476316 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(void, genordinalcase_476414)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	NI splitpoint;
	Tloc190827 a;
	Ropeobj161009* lend;
	splitpoint = ifswitchsplitpoint_476273(p, n);
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
	{
		if (!(((NI) 0) < splitpoint)) goto LA3;
		lend = genifforcaseuntil_475643(p, n, d, ((NimStringDesc*) &TMP4114), ((NimStringDesc*) &TMP4115), splitpoint, a);
	}
	goto LA1;
	LA3: ;
	{
		lend = NIM_NIL;
	}
	LA1: ;
	{
		NI LOC8;
		TY161572 LOC11;
		NIM_BOOL hasdefault;
		TY460664 LOC31;
		LOC8 = 0;
		LOC8 = len_191097(n);
		if (!((NI)(splitpoint + ((NI) 1)) < LOC8)) goto LA9;
		memset((void*)LOC11, 0, sizeof(LOC11));
		LOC11[0] = rdcharloc_465644(a);
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4117), LOC11, 1);
		hasdefault = NIM_FALSE;
		{
			NI i_476448;
			NI HEX3Atmp_476498;
			NI HEX3Atmp_476499;
			NI LOC13;
			NI res_476502;
			i_476448 = 0;
			HEX3Atmp_476498 = 0;
			HEX3Atmp_476499 = 0;
			HEX3Atmp_476498 = (NI)(splitpoint + ((NI) 1));
			LOC13 = 0;
			LOC13 = len_191097(n);
			HEX3Atmp_476499 = (LOC13 - 1);
			res_476502 = HEX3Atmp_476498;
			{
				while (1) {
					Tnode190813* branch;
					Tnode190813* LOC22;
					TY460664 LOC23;
					if (!(res_476502 <= HEX3Atmp_476499)) goto LA15;
					i_476448 = res_476502;
					branch = HEX5BHEX5D_191244(n, i_476448);
					{
						if (!((*branch).kind == ((NU8) 85))) goto LA18;
						gencaserange_464440(p, branch);
					}
					goto LA16;
					LA18: ;
					{
						TY460664 LOC21;
						memset((void*)LOC21, 0, sizeof(LOC21));
						linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3661), LOC21, 0);
						hasdefault = NIM_TRUE;
					}
					LA16: ;
					LOC22 = 0;
					LOC22 = lastson_193431(branch);
					exprblock_472401(p, LOC22, d);
					memset((void*)LOC23, 0, sizeof(LOC23));
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3662), LOC23, 0);
					res_476502 += ((NI) 1);
				} LA15: ;
			}
		}
		{
			NIM_BOOL LOC26;
			TY460664 LOC30;
			LOC26 = 0;
			LOC26 = ((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 3))&7)))!=0);
			if (!(LOC26)) goto LA27;
			LOC26 = !(hasdefault);
			LA27: ;
			if (!LOC26) goto LA28;
			memset((void*)LOC30, 0, sizeof(LOC30));
			linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4118), LOC30, 0);
		}
		LA28: ;
		memset((void*)LOC31, 0, sizeof(LOC31));
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3635), LOC31, 0);
	}
	LA9: ;
	{
		if (!!((lend == NIM_NIL))) goto LA34;
		fixlabel_466848(p, lend);
	}
	LA34: ;
}

N_NIMCALL(void, gencase_476520)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	Ttype190849* LOC8;
	genlinedir_460241(p, t);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isemptytype_195933((*t).typ);
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = ((*d).k == ((NU8) 0));
		LA5: ;
		if (!LOC3) goto LA6;
		gettemp_464444(p, (*t).typ, d, NIM_FALSE);
	}
	LA6: ;
	LOC8 = 0;
	LOC8 = skiptypes_194167((*(*t).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106242013440));
	switch ((*LOC8).kind) {
	case ((NU8) 28):
	{
		genstringcase_476028(p, t, d);
	}
	break;
	case ((NU8) 36) ... ((NU8) 39):
	{
		gencasegeneric_475722(p, t, d, ((NimStringDesc*) &TMP4114), ((NimStringDesc*) &TMP4115));
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC14;
			LOC14 = 0;
			LOC14 = ((*(*t).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
			if (!(LOC14)) goto LA15;
			LOC14 = (((*(*(*t).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 30))&31)))!=0);
			LA15: ;
			if (!LOC14) goto LA16;
			gengotoforcase_474133(p, t);
		}
		goto LA12;
		LA16: ;
		{
			genordinalcase_476414(p, t, d);
		}
		LA12: ;
	}
	break;
	}
}

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

N_NIMCALL(void, blockleaveactions_473854)(Tcproc456034* p, NI howmanytrys, NI howmanyexcepts) {
	Tnodeseq190807* stack;
	NI alreadypoppedcnt;
	stack = 0;
	stack = (Tnodeseq190807*) newSeq((&NTI190807), ((NI) 0));
	alreadypoppedcnt = (*p).inexceptblock;
	{
		NI i_473884;
		NI res_474033;
		i_473884 = 0;
		res_474033 = ((NI) 1);
		{
			while (1) {
				Tnode190813* trystmt;
				Tnode190813* finallystmt;
				if (!(res_474033 <= howmanytrys)) goto LA3;
				i_473884 = res_474033;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = (gcmd_154130 == ((NU8) 2));
					if (LOC6) goto LA7;
					LOC6 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
					LA7: ;
					if (!!(LOC6)) goto LA8;
					{
						if (!(((NI) 0) < alreadypoppedcnt)) goto LA12;
						alreadypoppedcnt -= ((NI) 1);
					}
					goto LA10;
					LA12: ;
					{
						TY460664 LOC15;
						memset((void*)LOC15, 0, sizeof(LOC15));
						linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4119), LOC15, 0);
					}
					LA10: ;
				}
				LA8: ;
				trystmt = pop_473918((&(*p).nestedtrystmts));
				stack = (Tnodeseq190807*) incrSeq(&(stack)->Sup, sizeof(Tnode190813*));
				asgnRefNoCycle((void**) (&stack->data[stack->Sup.len-1]), trystmt);
				finallystmt = lastson_193431(trystmt);
				{
					if (!((*finallystmt).kind == ((NU8) 107))) goto LA18;
					genstmts_466874(p, (*finallystmt).kindU.S6.sons->data[((NI) 0)]);
				}
				LA18: ;
				res_474033 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NI i_473982;
		NI HEX3Atmp_474038;
		NI res_474041;
		i_473982 = 0;
		HEX3Atmp_474038 = 0;
		HEX3Atmp_474038 = (NI)(howmanytrys - ((NI) 1));
		res_474041 = HEX3Atmp_474038;
		{
			while (1) {
				if (!(((NI) 0) <= res_474041)) goto LA22;
				i_473982 = res_474041;
				(*p).nestedtrystmts = (Tnodeseq190807*) incrSeq(&((*p).nestedtrystmts)->Sup, sizeof(Tnode190813*));
				asgnRefNoCycle((void**) (&(*p).nestedtrystmts->data[(*p).nestedtrystmts->Sup.len-1]), stack->data[i_473982]);
				res_474041 -= ((NI) 1);
			} LA22: ;
		}
	}
	{
		NIM_BOOL LOC25;
		LOC25 = 0;
		LOC25 = (gcmd_154130 == ((NU8) 2));
		if (LOC25) goto LA26;
		LOC25 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA26: ;
		if (!!(LOC25)) goto LA27;
		{
			NI i_474024;
			NI HEX3Atmp_474047;
			NI res_474050;
			i_474024 = 0;
			HEX3Atmp_474047 = 0;
			HEX3Atmp_474047 = (NI)(howmanyexcepts - ((NI) 1));
			res_474050 = HEX3Atmp_474047;
			{
				while (1) {
					TY460664 LOC32;
					if (!(((NI) 0) <= res_474050)) goto LA31;
					i_474024 = res_474050;
					memset((void*)LOC32, 0, sizeof(LOC32));
					linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4120), LOC32, 0);
					res_474050 -= ((NI) 1);
				} LA31: ;
			}
		}
	}
	LA27: ;
}

N_NIMCALL(void, genreturnstmt_474084)(Tcproc456034* p, Tnode190813* t) {
	TY460664 LOC10;
	(*p).beforeretneeded = NIM_TRUE;
	genlinedir_460241(p, t);
	{
		if (!!(((*(*t).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA3;
		genstmts_466874(p, (*t).kindU.S6.sons->data[((NI) 0)]);
	}
	LA3: ;
	blockleaveactions_473854(p, ((*p).nestedtrystmts ? (*p).nestedtrystmts->Sup.len : 0), (*p).inexceptblock);
	{
		Ropeobj161009* safepoint;
		TY161572 LOC9;
		if (!(((NI) 0) < ((*p).finallysafepoints ? (*p).finallysafepoints->Sup.len : 0))) goto LA7;
		safepoint = (*p).finallysafepoints->data[(NI)(((*p).finallysafepoints ? (*p).finallysafepoints->Sup.len : 0) - ((NI) 1))];
		memset((void*)LOC9, 0, sizeof(LOC9));
		LOC9[0] = safepoint;
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4121), LOC9, 1);
	}
	LA7: ;
	memset((void*)LOC10, 0, sizeof(LOC10));
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4122), LOC10, 0);
}

N_NIMCALL(void, genbreakstmt_475047)(Tcproc456034* p, Tnode190813* t) {
	NI idx;
	Ropeobj161009* label;
	TY161572 LOC16;
	idx = (*p).breakidx;
	{
		Tsym190843* sym;
		if (!!(((*(*t).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA3;
		sym = (*(*t).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		idx = (NI)((*sym).position - ((NI) 1));
	}
	goto LA1;
	LA3: ;
	{
		{
			while (1) {
				NIM_BOOL LOC8;
				LOC8 = 0;
				LOC8 = (((NI) 0) <= idx);
				if (!(LOC8)) goto LA9;
				LOC8 = !((*p).blocks->data[idx].isloop);
				LA9: ;
				if (!LOC8) goto LA7;
				idx -= ((NI) 1);
			} LA7: ;
		}
		{
			NIM_BOOL LOC12;
			LOC12 = 0;
			LOC12 = (idx < ((NI) 0));
			if (LOC12) goto LA13;
			LOC12 = !((*p).blocks->data[idx].isloop);
			LA13: ;
			if (!LOC12) goto LA14;
			internalerror_165199((*t).info, ((NimStringDesc*) &TMP4123));
		}
		LA14: ;
	}
	LA1: ;
	label = assignlabel_472303((&(*p).blocks->data[idx]));
	blockleaveactions_473854(p, (NI)(((*p).nestedtrystmts ? (*p).nestedtrystmts->Sup.len : 0) - ((NI) ((*p).blocks->data[idx].nestedtrystmts))), (NI)((*p).inexceptblock - ((NI) ((*p).blocks->data[idx].nestedexceptstmts))));
	genlinedir_460241(p, t);
	memset((void*)LOC16, 0, sizeof(LOC16));
	LOC16[0] = label;
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4066), LOC16, 1);
}

N_NIMCALL(NIM_BOOL, fielddiscriminantcheckneeded_477899)(Tcproc456034* p, Tnode190813* asgn) {
	NIM_BOOL result;
	result = 0;
	{
		Tnode190813* le;
		if (!(((*p).options &(1<<((((NU8) 2))&31)))!=0)) goto LA3;
		le = (*asgn).kindU.S6.sons->data[((NI) 0)];
		{
			Tsym190843* field;
			if (!((*le).kind == ((NU8) 46))) goto LA7;
			field = (*(*(*le).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym;
			result = (((*field).flags &(1<<((((NU8) 18))&31)))!=0);
		}
		goto LA5;
		LA7: ;
		{
			Tsym190843* field;
			if (!((*le).kind == ((NU8) 45))) goto LA10;
			field = (*(*le).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym;
			result = (((*field).flags &(1<<((((NU8) 18))&31)))!=0);
		}
		goto LA5;
		LA10: ;
		LA5: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, discriminatortabledecl_463529)(Tcgen456038* m, Ttype190849* objtype, Tsym190843* d) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	Ropeobj161009* tmp;
	TY490436 LOC2;
	NI64 LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = cgsym_459609(m, ((NimStringDesc*) &TMP3604));
	tmp = discriminatortablename_463483(m, objtype, d);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = tmp;
	LOC3 = 0;
	LOC3 = lengthord_220016((*d).typ);
	LOC2[1] = rope_161407((NI64)(LOC3 + IL64(1)));
	result = HEX25_162235(((NimStringDesc*) &TMP3682), LOC2, 2);
	return result;
}

N_NIMCALL(void, gendiscriminantcheck_477966)(Tcproc456034* p, Tloc190827 a, Tloc190827 tmp, Ttype190849* objtype, Tsym190843* field) {
	Ttype190849* t;
	Ropeobj161009* LOC1;
	NI64 L;
	TY462566 LOC8;
	t = skiptypes_194167(objtype, IL64(211106240964864));
	LOC1 = 0;
	LOC1 = gentypeinfo_463368((*p).module, t);
	L = lengthord_220016((*field).typ);
	{
		NIM_BOOL LOC4;
		TY161572 LOC7;
		LOC4 = 0;
		LOC4 = containsorincl_187898((&(*(*p).module).declaredthings), (*field).Sup.id);
		if (!!(LOC4)) goto LA5;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = discriminatortabledecl_463529((*p).module, t, field);
		appcg_459894((*p).module, ((NU8) 9), ((NimStringDesc*) &TMP4124), LOC7, 1);
	}
	LA5: ;
	memset((void*)LOC8, 0, sizeof(LOC8));
	LOC8[0] = rdloc_465593(a);
	LOC8[1] = rdloc_465593(tmp);
	LOC8[2] = discriminatortablename_463483((*p).module, t, field);
	LOC8[3] = intliteral_466915((NI64)(L + IL64(1)));
	linecg_460010(p, ((NU8) 2), ((NimStringDesc*) &TMP4125), LOC8, 4);
}

N_NIMCALL(void, asgnfielddiscriminant_478012)(Tcproc456034* p, Tnode190813* e) {
	Tloc190827 a;
	Tloc190827 tmp;
	Tnode190813* dotexpr;
	Tsym190843* d;
	memset((void*)(&a), 0, sizeof(a));
	memset((void*)(&tmp), 0, sizeof(tmp));
	dotexpr = (*e).kindU.S6.sons->data[((NI) 0)];
	d = 0;
	{
		if (!((*dotexpr).kind == ((NU8) 46))) goto LA3;
		dotexpr = (*dotexpr).kindU.S6.sons->data[((NI) 0)];
	}
	LA3: ;
	initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 0)], (&a));
	gettemp_464444(p, a.t, (&tmp), NIM_FALSE);
	expr_466881(p, (*e).kindU.S6.sons->data[((NI) 1)], (&tmp));
	gendiscriminantcheck_477966(p, a, tmp, (*(*dotexpr).kindU.S6.sons->data[((NI) 0)]).typ, (*(*dotexpr).kindU.S6.sons->data[((NI) 1)]).kindU.S4.sym);
	genassignment_466906(p, a, tmp, 0);
}

N_NIMCALL(void, genasgn_478047)(Tcproc456034* p, Tnode190813* e, NIM_BOOL fastasgn) {
	genlinedir_460241(p, e);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*(*e).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
		if (!(LOC3)) goto LA4;
		LOC3 = (((*(*(*e).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).flags &(1<<((((NU8) 30))&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		gengotovar_472682(p, (*e).kindU.S6.sons->data[((NI) 1)]);
	}
	goto LA1;
	LA5: ;
	{
		NIM_BOOL LOC8;
		Tloc190827 a;
		LOC8 = 0;
		LOC8 = fielddiscriminantcheckneeded_477899(p, e);
		if (!!(LOC8)) goto LA9;
		memset((void*)(&a), 0, sizeof(a));
		initlocexpr_466937(p, (*e).kindU.S6.sons->data[((NI) 0)], (&a));
		{
			if (!fastasgn) goto LA13;
			a.flags |= ((NI16)1)<<((((NU8) 2))%(sizeof(NI16)*8));
		}
		LA13: ;
		loadinto_472205(p, (*e).kindU.S6.sons->data[((NI) 0)], (*e).kindU.S6.sons->data[((NI) 1)], (&a));
	}
	goto LA1;
	LA9: ;
	{
		asgnfielddiscriminant_478012(p, e);
	}
	LA1: ;
}

N_NIMCALL(Ropeobj161009*, genasmoremitstmt_477326)(Tcproc456034* p, Tnode190813* t, NIM_BOOL isasmstmt) {
	Ropeobj161009* result;
	NimStringDesc* res;
	result = 0;
	res = copyString(((NimStringDesc*) &TMP3940));
	{
		NI i_477345;
		NI HEX3Atmp_477432;
		NI LOC2;
		NI res_477435;
		i_477345 = 0;
		HEX3Atmp_477432 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(t);
		HEX3Atmp_477432 = (NI)(LOC2 - ((NI) 1));
		res_477435 = ((NI) 0);
		{
			while (1) {
				if (!(res_477435 <= HEX3Atmp_477432)) goto LA4;
				i_477345 = res_477435;
				switch ((*(*t).kindU.S6.sons->data[i_477345]).kind) {
				case ((NU8) 20) ... ((NU8) 22):
				{
					res = resizeString(res, (*(*t).kindU.S6.sons->data[i_477345]).kindU.S3.strval->Sup.len + 0);
appendString(res, (*(*t).kindU.S6.sons->data[i_477345]).kindU.S3.strval);
				}
				break;
				case ((NU8) 3):
				{
					Tsym190843* sym;
					sym = (*(*t).kindU.S6.sons->data[i_477345]).kindU.S4.sym;
					{
						Tloc190827 a;
						Ropeobj161009* LOC11;
						NimStringDesc* LOC12;
						if (!((61440 &(1<<(((*sym).kind)&31)))!=0)) goto LA9;
						memset((void*)(&a), 0, sizeof(a));
						initlocexpr_466937(p, (*t).kindU.S6.sons->data[i_477345], (&a));
						LOC11 = 0;
						LOC11 = rdloc_465593(a);
						LOC12 = 0;
						LOC12 = HEX24_162131(LOC11);
						res = resizeString(res, LOC12->Sup.len + 0);
appendString(res, LOC12);
					}
					goto LA7;
					LA9: ;
					{
						Ropeobj161009* r;
						NimStringDesc* LOC18;
						r = (*sym).loc.r;
						{
							if (!(r == NIM_NIL)) goto LA16;
							r = manglename_460425(sym);
							asgnRefNoCycle((void**) (&(*sym).loc.r), r);
						}
						LA16: ;
						LOC18 = 0;
						LOC18 = HEX24_162131(r);
						res = resizeString(res, LOC18->Sup.len + 0);
appendString(res, LOC18);
					}
					LA7: ;
				}
				break;
				default:
				{
					internalerror_165199((*(*t).kindU.S6.sons->data[i_477345]).info, ((NimStringDesc*) &TMP4126));
				}
				break;
				}
				res_477435 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		NIM_BOOL LOC22;
		LOC22 = 0;
		LOC22 = isasmstmt;
		if (!(LOC22)) goto LA23;
		LOC22 = ((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 5))&7)))!=0);
		LA23: ;
		if (!LOC22) goto LA24;
		{
			NimStringDesc* x_477392;
			NI first_477444;
			NI last_477446;
			x_477392 = 0;
			first_477444 = ((NI) 0);
			last_477446 = ((NI) 0);
			{
				while (1) {
					NI j;
					{
						while (1) {
							if (!!((((NU8)(res->data[last_477446])) == ((NU8)(0)) || ((NU8)(res->data[last_477446])) == ((NU8)(13)) || ((NU8)(res->data[last_477446])) == ((NU8)(10))))) goto LA30;
							last_477446 += ((NI) 1);
						} LA30: ;
					}
					x_477392 = copyStrLast(res, first_477444, (NI)(last_477446 - ((NI) 1)));
					j = ((NI) 0);
					{
						while (1) {
							if (!(((NU8)(x_477392->data[j])) == ((NU8)(32)) || ((NU8)(x_477392->data[j])) == ((NU8)(9)))) goto LA32;
							j += ((NI) 1);
						} LA32: ;
					}
					{
						if (!(((NU8)(x_477392->data[j])) == ((NU8)(34)) || ((NU8)(x_477392->data[j])) == ((NU8)(58)))) goto LA35;
						add_161545(&result, x_477392);
						add_161545(&result, tnl_159626);
					}
					goto LA33;
					LA35: ;
					{
						if (!!(((NU8)(x_477392->data[j]) == (NU8)(0)))) goto LA38;
						add_161545(&result, ((NimStringDesc*) &TMP4127));
						add_161545(&result, x_477392);
						add_161545(&result, ((NimStringDesc*) &TMP4128));
					}
					goto LA33;
					LA38: ;
					LA33: ;
					{
						if (!((NU8)(res->data[last_477446]) == (NU8)(10))) goto LA42;
						last_477446 += ((NI) 1);
					}
					goto LA40;
					LA42: ;
					{
						if (!((NU8)(res->data[last_477446]) == (NU8)(13))) goto LA45;
						last_477446 += ((NI) 1);
						{
							if (!((NU8)(res->data[last_477446]) == (NU8)(10))) goto LA49;
							last_477446 += ((NI) 1);
						}
						LA49: ;
					}
					goto LA40;
					LA45: ;
					{
						goto LA27;
					}
					LA40: ;
					first_477444 = last_477446;
				}
			} LA27: ;
		}
	}
	goto LA20;
	LA24: ;
	{
		res = resizeString(res, tnl_159626->Sup.len + 0);
appendString(res, tnl_159626);
		result = rope_161320(res);
	}
	LA20: ;
	return result;
}

N_NIMCALL(void, genasmstmt_477480)(Tcproc456034* p, Tnode190813* t) {
	Ropeobj161009* s;
	genlinedir_460241(p, t);
	s = genasmoremitstmt_477326(p, t, NIM_TRUE);
	{
		TY161572 LOC5;
		if (!((*p).prc == NIM_NIL)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = s;
		addf_162635(&(*(*p).module).s[(((NU8) 7))- 0], Cc_170434[(ccompiler_170455)- 1].Field17, LOC5, 1);
	}
	goto LA1;
	LA3: ;
	{
		TY161572 LOC7;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = s;
		linef_459997(p, ((NU8) 2), Cc_170434[(ccompiler_170455)- 1].Field17, LOC7, 1);
	}
	LA1: ;
}

static N_INLINE(void, gensimpleblock_472390)(Tcproc456034* p, Tnode190813* stmts) {
	TY460664 LOC1;
	NI LOC2;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC1, 0);
	genstmts_466874(p, stmts);
	endblock_472352(p);
}

N_NIMCALL(void, gentrycpp_476599)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	Ropeobj161009* exc;
	TY460664 LOC16;
	NI LOC17;
	NI length;
	TY161572 LOC18;
	Ropeobj161009* LOC19;
	NI i;
	NIM_BOOL catchallpresent;
	TY460664 LOC72;
	Tnode190813* LOC73;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isemptytype_195933((*t).typ);
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = ((*d).k == ((NU8) 0));
		LA5: ;
		if (!LOC3) goto LA6;
		gettemp_464444(p, (*t).typ, d, NIM_FALSE);
	}
	LA6: ;
	genlinedir_460241(p, t);
	exc = gettempname_461002();
	{
		Tsym190843* LOC10;
		Ropeobj161009* LOC13;
		LOC10 = 0;
		LOC10 = getcompilerproc_238036(((NimStringDesc*) &TMP4129));
		if (!!((LOC10 == NIM_NIL))) goto LA11;
		LOC13 = 0;
		LOC13 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP4129));
	}
	goto LA8;
	LA11: ;
	{
		Ropeobj161009* LOC15;
		LOC15 = 0;
		LOC15 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP4130));
	}
	LA8: ;
	(*p).nestedtrystmts = (Tnodeseq190807*) incrSeq(&((*p).nestedtrystmts)->Sup, sizeof(Tnode190813*));
	asgnRefNoCycle((void**) (&(*p).nestedtrystmts->data[(*p).nestedtrystmts->Sup.len-1]), t);
	memset((void*)LOC16, 0, sizeof(LOC16));
	LOC17 = 0;
	LOC17 = startblock_472258(p, ((NimStringDesc*) &TMP4131), LOC16, 0);
	expr_466881(p, (*t).kindU.S6.sons->data[((NI) 0)], d);
	length = sonslen_193403(t);
	memset((void*)LOC18, 0, sizeof(LOC18));
	LOC18[0] = exc;
	LOC19 = 0;
	LOC19 = ropecg_459616((*p).module, ((NimStringDesc*) &TMP4132), LOC18, 1);
	endblock_472324(p, LOC19);
	{
		TY460664 LOC24;
		if (!(((*p).options &(1<<((((NU8) 15))&31)))!=0)) goto LA22;
		memset((void*)LOC24, 0, sizeof(LOC24));
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4133), LOC24, 0);
	}
	LA22: ;
	(*p).inexceptblock += ((NI) 1);
	i = ((NI) 1);
	catchallpresent = NIM_FALSE;
	{
		while (1) {
			NIM_BOOL LOC27;
			NI blen;
			LOC27 = 0;
			LOC27 = (i < length);
			if (!(LOC27)) goto LA28;
			LOC27 = ((*(*t).kindU.S6.sons->data[i]).kind == ((NU8) 87));
			LA28: ;
			if (!LOC27) goto LA26;
			blen = sonslen_193403((*t).kindU.S6.sons->data[i]);
			{
				Ropeobj161009** LOC33;
				TY460664 LOC34;
				if (!(((NI) 1) < i)) goto LA31;
				LOC33 = 0;
				LOC33 = s_456184(p, ((NU8) 2));
				memset((void*)LOC34, 0, sizeof(LOC34));
				addf_162635(LOC33, ((NimStringDesc*) &TMP4134), LOC34, 0);
			}
			LA31: ;
			{
				TY460664 LOC39;
				NI LOC40;
				TY460664 LOC41;
				if (!(blen == ((NI) 1))) goto LA37;
				catchallpresent = NIM_TRUE;
				memset((void*)LOC39, 0, sizeof(LOC39));
				LOC40 = 0;
				LOC40 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC39, 0);
				expr_466881(p, (*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[((NI) 0)], d);
				memset((void*)LOC41, 0, sizeof(LOC41));
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4120), LOC41, 0);
				endblock_472352(p);
			}
			goto LA35;
			LA37: ;
			{
				Ropeobj161009* orexpr;
				TY161572 LOC51;
				TY460664 LOC52;
				NI LOC53;
				TY460664 LOC54;
				orexpr = NIM_NIL;
				{
					NI j_476704;
					NI HEX3Atmp_476901;
					NI res_476904;
					j_476704 = 0;
					HEX3Atmp_476901 = 0;
					HEX3Atmp_476901 = (NI)(blen - ((NI) 2));
					res_476904 = ((NI) 0);
					{
						while (1) {
							TY490436 LOC50;
							if (!(res_476904 <= HEX3Atmp_476901)) goto LA45;
							j_476704 = res_476904;
							{
								if (!!((orexpr == NIM_NIL))) goto LA48;
								add_161545(&orexpr, ((NimStringDesc*) &TMP4093));
							}
							LA48: ;
							memset((void*)LOC50, 0, sizeof(LOC50));
							LOC50[0] = exc;
							LOC50[1] = gentypeinfo_463368((*p).module, (*(*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[j_476704]).typ);
							appcg_459880((*p).module, &orexpr, ((NimStringDesc*) &TMP4135), LOC50, 2);
							res_476904 += ((NI) 1);
						} LA45: ;
					}
				}
				memset((void*)LOC51, 0, sizeof(LOC51));
				LOC51[0] = orexpr;
				linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4136), LOC51, 1);
				memset((void*)LOC52, 0, sizeof(LOC52));
				LOC53 = 0;
				LOC53 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC52, 0);
				expr_466881(p, (*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[(NI)(blen - ((NI) 1))], d);
				memset((void*)LOC54, 0, sizeof(LOC54));
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4120), LOC54, 0);
				endblock_472352(p);
			}
			LA35: ;
			i += ((NI) 1);
		} LA26: ;
	}
	{
		TY460664 LOC64;
		NI LOC65;
		Tnode190813* finallyblock;
		TY460664 LOC70;
		Ropeobj161009* LOC71;
		if (!!(catchallpresent)) goto LA57;
		{
			TY460664 LOC63;
			if (!(((NI) 1) < i)) goto LA61;
			memset((void*)LOC63, 0, sizeof(LOC63));
			linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4134), LOC63, 0);
		}
		LA61: ;
		memset((void*)LOC64, 0, sizeof(LOC64));
		LOC65 = 0;
		LOC65 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC64, 0);
		finallyblock = lastson_193431(t);
		{
			if (!((*finallyblock).kind == ((NU8) 107))) goto LA68;
			genstmts_466874(p, (*finallyblock).kindU.S6.sons->data[((NI) 0)]);
		}
		LA68: ;
		memset((void*)LOC70, 0, sizeof(LOC70));
		LOC71 = 0;
		LOC71 = HEX25_162235(((NimStringDesc*) &TMP4137), LOC70, 0);
		line_459975(p, ((NU8) 2), LOC71);
		endblock_472352(p);
	}
	LA57: ;
	memset((void*)LOC72, 0, sizeof(LOC72));
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3635), LOC72, 0);
	(*p).inexceptblock -= ((NI) 1);
	LOC73 = 0;
	LOC73 = pop_473918((&(*p).nestedtrystmts));
	{
		NIM_BOOL LOC76;
		LOC76 = 0;
		LOC76 = (i < length);
		if (!(LOC76)) goto LA77;
		LOC76 = ((*(*t).kindU.S6.sons->data[i]).kind == ((NU8) 107));
		LA77: ;
		if (!LOC76) goto LA78;
		gensimpleblock_472390(p, (*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[((NI) 0)]);
	}
	LA78: ;
}

N_NIMCALL(void, line_459986)(Tcproc456034* p, NU8 s, NimStringDesc* r) {
	Ropeobj161009** LOC1;
	Ropeobj161009* LOC2;
	Ropeobj161009* LOC3;
	LOC1 = 0;
	LOC1 = s_456184(p, s);
	LOC2 = 0;
	LOC2 = rope_161320(r);
	LOC3 = 0;
	LOC3 = indentline_459925(p, LOC2);
	add_161534(LOC1, LOC3);
}

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

N_NIMCALL(void, gentry_476932)(Tcproc456034* p, Tnode190813* t, Tloc190827* d) {
	NIM_BOOL LOC8;
	Ropeobj161009* safepoint;
	TY161572 LOC17;
	TY161572 LOC18;
	TY161572 LOC37;
	NI LOC38;
	NI length;
	TY460664 LOC39;
	TY460664 LOC40;
	NI LOC41;
	TY460664 LOC42;
	NI i;
	Tnode190813* LOC82;
	TY161572 LOC90;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = isemptytype_195933((*t).typ);
		LOC3 = !(LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = ((*d).k == ((NU8) 0));
		LA5: ;
		if (!LOC3) goto LA6;
		gettemp_464444(p, (*t).typ, d, NIM_FALSE);
	}
	LA6: ;
	LOC8 = 0;
	LOC8 = includestr_130279((&(*(*p).module).headerfiles), ((NimStringDesc*) &TMP4138));
	genlinedir_460241(p, t);
	safepoint = gettempname_461002();
	{
		Tsym190843* LOC11;
		Ropeobj161009* LOC14;
		LOC11 = 0;
		LOC11 = getcompilerproc_238036(((NimStringDesc*) &TMP4129));
		if (!!((LOC11 == NIM_NIL))) goto LA12;
		LOC14 = 0;
		LOC14 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP4129));
	}
	goto LA9;
	LA12: ;
	{
		Ropeobj161009* LOC16;
		LOC16 = 0;
		LOC16 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP4130));
	}
	LA9: ;
	memset((void*)LOC17, 0, sizeof(LOC17));
	LOC17[0] = safepoint;
	linefmt_460023(p, ((NU8) 0), ((NimStringDesc*) &TMP4139), LOC17, 1);
	memset((void*)LOC18, 0, sizeof(LOC18));
	LOC18[0] = safepoint;
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4140), LOC18, 1);
	{
		NIM_BOOL LOC21;
		TY161572 LOC24;
		LOC21 = 0;
		LOC21 = isdefined_168031(((NimStringDesc*) &TMP4141));
		if (!LOC21) goto LA22;
		memset((void*)LOC24, 0, sizeof(LOC24));
		LOC24[0] = safepoint;
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4142), LOC24, 1);
	}
	goto LA19;
	LA22: ;
	{
		NIM_BOOL LOC26;
		TY161572 LOC29;
		LOC26 = 0;
		LOC26 = isdefined_168031(((NimStringDesc*) &TMP4143));
		if (!LOC26) goto LA27;
		memset((void*)LOC29, 0, sizeof(LOC29));
		LOC29[0] = safepoint;
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4144), LOC29, 1);
	}
	goto LA19;
	LA27: ;
	{
		NIM_BOOL LOC31;
		TY161572 LOC34;
		LOC31 = 0;
		LOC31 = isdefined_168031(((NimStringDesc*) &TMP4145));
		if (!LOC31) goto LA32;
		memset((void*)LOC34, 0, sizeof(LOC34));
		LOC34[0] = safepoint;
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4146), LOC34, 1);
	}
	goto LA19;
	LA32: ;
	{
		TY161572 LOC36;
		memset((void*)LOC36, 0, sizeof(LOC36));
		LOC36[0] = safepoint;
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4142), LOC36, 1);
	}
	LA19: ;
	memset((void*)LOC37, 0, sizeof(LOC37));
	LOC37[0] = safepoint;
	LOC38 = 0;
	LOC38 = startblock_472258(p, ((NimStringDesc*) &TMP4147), LOC37, 1);
	length = sonslen_193403(t);
	(*p).nestedtrystmts = (Tnodeseq190807*) incrSeq(&((*p).nestedtrystmts)->Sup, sizeof(Tnode190813*));
	asgnRefNoCycle((void**) (&(*p).nestedtrystmts->data[(*p).nestedtrystmts->Sup.len-1]), t);
	expr_466881(p, (*t).kindU.S6.sons->data[((NI) 0)], d);
	memset((void*)LOC39, 0, sizeof(LOC39));
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4119), LOC39, 0);
	endblock_472352(p);
	memset((void*)LOC40, 0, sizeof(LOC40));
	LOC41 = 0;
	LOC41 = startblock_472258(p, ((NimStringDesc*) &TMP4148), LOC40, 0);
	memset((void*)LOC42, 0, sizeof(LOC42));
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4119), LOC42, 0);
	{
		TY460664 LOC47;
		if (!(((*p).options &(1<<((((NU8) 15))&31)))!=0)) goto LA45;
		memset((void*)LOC47, 0, sizeof(LOC47));
		linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4133), LOC47, 0);
	}
	LA45: ;
	(*p).inexceptblock += ((NI) 1);
	i = ((NI) 1);
	{
		while (1) {
			NIM_BOOL LOC50;
			NI blen;
			LOC50 = 0;
			LOC50 = (i < length);
			if (!(LOC50)) goto LA51;
			LOC50 = ((*(*t).kindU.S6.sons->data[i]).kind == ((NU8) 87));
			LA51: ;
			if (!LOC50) goto LA49;
			blen = sonslen_193403((*t).kindU.S6.sons->data[i]);
			{
				TY460664 LOC61;
				NI LOC62;
				TY161572 LOC63;
				TY460664 LOC64;
				if (!(blen == ((NI) 1))) goto LA54;
				{
					TY460664 LOC60;
					if (!(((NI) 1) < i)) goto LA58;
					memset((void*)LOC60, 0, sizeof(LOC60));
					linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4149), LOC60, 0);
				}
				LA58: ;
				memset((void*)LOC61, 0, sizeof(LOC61));
				LOC62 = 0;
				LOC62 = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC61, 0);
				memset((void*)LOC63, 0, sizeof(LOC63));
				LOC63[0] = safepoint;
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4150), LOC63, 1);
				expr_466881(p, (*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[((NI) 0)], d);
				memset((void*)LOC64, 0, sizeof(LOC64));
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4120), LOC64, 0);
				endblock_472352(p);
			}
			goto LA52;
			LA54: ;
			{
				Ropeobj161009* orexpr;
				TY161572 LOC78;
				NI LOC79;
				TY161572 LOC80;
				TY460664 LOC81;
				orexpr = NIM_NIL;
				{
					NI j_477057;
					NI HEX3Atmp_477300;
					NI res_477303;
					j_477057 = 0;
					HEX3Atmp_477300 = 0;
					HEX3Atmp_477300 = (NI)(blen - ((NI) 2));
					res_477303 = ((NI) 0);
					{
						while (1) {
							TY161572 LOC73;
							if (!(res_477303 <= HEX3Atmp_477300)) goto LA68;
							j_477057 = res_477303;
							{
								if (!!((orexpr == NIM_NIL))) goto LA71;
								add_161545(&orexpr, ((NimStringDesc*) &TMP4093));
							}
							LA71: ;
							memset((void*)LOC73, 0, sizeof(LOC73));
							LOC73[0] = gentypeinfo_463368((*p).module, (*(*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[j_477057]).typ);
							appcg_459880((*p).module, &orexpr, ((NimStringDesc*) &TMP4151), LOC73, 1);
							res_477303 += ((NI) 1);
						} LA68: ;
					}
				}
				{
					if (!(((NI) 1) < i)) goto LA76;
					line_459986(p, ((NU8) 2), ((NimStringDesc*) &TMP4134));
				}
				LA76: ;
				memset((void*)LOC78, 0, sizeof(LOC78));
				LOC78[0] = orexpr;
				LOC79 = 0;
				LOC79 = startblock_472258(p, ((NimStringDesc*) &TMP4152), LOC78, 1);
				memset((void*)LOC80, 0, sizeof(LOC80));
				LOC80[0] = safepoint;
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4150), LOC80, 1);
				expr_466881(p, (*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[(NI)(blen - ((NI) 1))], d);
				memset((void*)LOC81, 0, sizeof(LOC81));
				linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4120), LOC81, 0);
				endblock_472352(p);
			}
			LA52: ;
			i += ((NI) 1);
		} LA49: ;
	}
	(*p).inexceptblock -= ((NI) 1);
	LOC82 = 0;
	LOC82 = pop_473918((&(*p).nestedtrystmts));
	endblock_472352(p);
	{
		NIM_BOOL LOC85;
		Ropeobj161009* LOC89;
		LOC85 = 0;
		LOC85 = (i < length);
		if (!(LOC85)) goto LA86;
		LOC85 = ((*(*t).kindU.S6.sons->data[i]).kind == ((NU8) 107));
		LA86: ;
		if (!LOC85) goto LA87;
		(*p).finallysafepoints = (TY163351*) incrSeq(&((*p).finallysafepoints)->Sup, sizeof(Ropeobj161009*));
		asgnRefNoCycle((void**) (&(*p).finallysafepoints->data[(*p).finallysafepoints->Sup.len-1]), safepoint);
		gensimpleblock_472390(p, (*(*t).kindU.S6.sons->data[i]).kindU.S6.sons->data[((NI) 0)]);
		LOC89 = 0;
		LOC89 = pop_161595((&(*p).finallysafepoints));
	}
	LA87: ;
	memset((void*)LOC90, 0, sizeof(LOC90));
	LOC90[0] = safepoint;
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4153), LOC90, 1);
}

N_NIMCALL(NimStringDesc*, getraisefrmt_475433)(Tcproc456034* p) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4154));
	return result;
}

N_NIMCALL(void, genraisestmt_475440)(Tcproc456034* p, Tnode190813* t) {
	{
		Tnode190813* finallyblock;
		if (!(((NI) 0) < (*p).inexceptblock)) goto LA3;
		finallyblock = lastson_193431((*p).nestedtrystmts->data[(NI)(((*p).nestedtrystmts ? (*p).nestedtrystmts->Sup.len : 0) - ((NI) 1))]);
		{
			if (!((*finallyblock).kind == ((NU8) 107))) goto LA7;
			gensimpleblock_472390(p, (*finallyblock).kindU.S6.sons->data[((NI) 0)]);
		}
		LA7: ;
	}
	LA3: ;
	{
		Tloc190827 a;
		Ropeobj161009* e;
		Ttype190849* typ;
		NimStringDesc* LOC13;
		TY490436 LOC14;
		if (!!(((*(*t).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA11;
		memset((void*)(&a), 0, sizeof(a));
		initlocexpr_466937(p, (*t).kindU.S6.sons->data[((NI) 0)], (&a));
		e = rdloc_465593(a);
		typ = skiptypes_194167((*(*t).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106247256320));
		genlinedir_460241(p, t);
		LOC13 = 0;
		LOC13 = getraisefrmt_475433(p);
		memset((void*)LOC14, 0, sizeof(LOC14));
		LOC14[0] = e;
		LOC14[1] = makecstring_163449((*(*(*typ).sym).name).s);
		linecg_460010(p, ((NU8) 2), LOC13, LOC14, 2);
	}
	goto LA9;
	LA11: ;
	{
		genlinedir_460241(p, t);
		{
			NIM_BOOL LOC18;
			TY460664 LOC22;
			Ropeobj161009* LOC23;
			LOC18 = 0;
			LOC18 = (gcmd_154130 == ((NU8) 2));
			if (LOC18) goto LA19;
			LOC18 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA19: ;
			if (!LOC18) goto LA20;
			memset((void*)LOC22, 0, sizeof(LOC22));
			LOC23 = 0;
			LOC23 = HEX25_162235(((NimStringDesc*) &TMP4137), LOC22, 0);
			line_459975(p, ((NU8) 2), LOC23);
		}
		goto LA16;
		LA20: ;
		{
			TY460664 LOC25;
			memset((void*)LOC25, 0, sizeof(LOC25));
			linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4155), LOC25, 0);
		}
		LA16: ;
	}
	LA9: ;
}

N_NIMCALL(void, gentypesection_465583)(Tcgen456038* m, Tnode190813* n) {
}

N_NIMCALL(NU8, determinesection_477622)(Tnode190813* n) {
	NU8 result;
	result = 0;
	result = ((NU8) 7);
	{
		NIM_BOOL LOC3;
		NI LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = len_191097(n);
		LOC3 = (((NI) 1) <= LOC4);
		if (!(LOC3)) goto LA5;
		LOC3 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind >= ((NU8) 20) && (*(*n).kindU.S6.sons->data[((NI) 0)]).kind <= ((NU8) 22));
		LA5: ;
		if (!LOC3) goto LA6;
		{
			NIM_BOOL LOC10;
			LOC10 = 0;
			LOC10 = nsuStartsWith((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S3.strval, ((NimStringDesc*) &TMP4156));
			if (!LOC10) goto LA11;
			result = ((NU8) 3);
		}
		goto LA8;
		LA11: ;
		{
			NIM_BOOL LOC14;
			LOC14 = 0;
			LOC14 = nsuStartsWith((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S3.strval, ((NimStringDesc*) &TMP4157));
			if (!LOC14) goto LA15;
			result = ((NU8) 9);
		}
		goto LA8;
		LA15: ;
		LA8: ;
	}
	LA6: ;
	return result;
}

N_NIMCALL(void, genemit_477646)(Tcproc456034* p, Tnode190813* t) {
	Ropeobj161009* s;
	s = genasmoremitstmt_477326(p, (*t).kindU.S6.sons->data[((NI) 1)], NIM_FALSE);
	{
		NU8 section;
		Tnode190813* LOC5;
		if (!((*p).prc == NIM_NIL)) goto LA3;
		LOC5 = 0;
		LOC5 = HEX5BHEX5D_191244(t, ((NI) 1));
		section = determinesection_477622(LOC5);
		genclinedir_460219(&(*(*p).module).s[(section)- 0], (*t).info);
		add_161534(&(*(*p).module).s[(section)- 0], s);
	}
	goto LA1;
	LA3: ;
	{
		genlinedir_460241(p, t);
		line_459975(p, ((NU8) 2), s);
	}
	LA1: ;
}

N_NIMCALL(void, genbreakpoint_477672)(Tcproc456034* p, Tnode190813* t) {
	NimStringDesc* name;
	name = 0;
	{
		TY462569 LOC12;
		NI LOC13;
		NimStringDesc* LOC14;
		if (!(((*p).options &(1<<((((NU8) 17))&31)))!=0)) goto LA3;
		{
			if (!((*t).kind == ((NU8) 34))) goto LA7;
			name = nsuNormalize((*(*t).kindU.S6.sons->data[((NI) 1)]).kindU.S3.strval);
		}
		goto LA5;
		LA7: ;
		{
			NimStringDesc* LOC10;
			NimStringDesc* LOC11;
			breakpointid_477670 += ((NI) 1);
			LOC10 = 0;
			LOC11 = 0;
			LOC11 = nimIntToStr(breakpointid_477670);
			LOC10 = rawNewString(LOC11->Sup.len + 2);
appendString(LOC10, ((NimStringDesc*) &TMP4158));
appendString(LOC10, LOC11);
			name = LOC10;
		}
		LA5: ;
		genlinedir_460241(p, t);
		memset((void*)LOC12, 0, sizeof(LOC12));
		LOC13 = 0;
		LOC13 = tolinenumber_164439((*t).info);
		LOC12[0] = rope_161407(((NI64) (LOC13)));
		LOC14 = 0;
		LOC14 = tofilename_164266((*t).info.fileindex);
		LOC12[1] = makecstring_163449(LOC14);
		LOC12[2] = makecstring_163449(name);
		appcg_459880((*p).module, &gbreakpoints_477671, ((NimStringDesc*) &TMP4159), LOC12, 3);
	}
	LA3: ;
}

N_NIMCALL(void, genwatchpoint_477819)(Tcproc456034* p, Tnode190813* n) {
	Tloc190827 a;
	Ttype190849* typ;
	TY462569 LOC5;
	NimStringDesc* LOC6;
{	{
		if (!!((((*p).options &(1<<((((NU8) 17))&31)))!=0))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 1)], (&a));
	typ = skiptypes_194167((*(*n).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106242013440));
	memset((void*)LOC5, 0, sizeof(LOC5));
	LOC5[0] = addrloc_465615(a);
	LOC6 = 0;
	LOC6 = rendertree_212058((*n).kindU.S6.sons->data[((NI) 1)], 0);
	LOC5[1] = makecstring_163449(LOC6);
	LOC5[2] = gentypeinfo_463368((*p).module, typ);
	linecg_460010(p, ((NU8) 2), ((NimStringDesc*) &TMP4160), LOC5, 3);
	}BeforeRet: ;
}

N_NIMCALL(void, genpragma_477845)(Tcproc456034* p_477847, Tnode190813* n) {
	{
		NI i_477861;
		NI HEX3Atmp_477880;
		NI LOC2;
		NI res_477883;
		i_477861 = 0;
		HEX3Atmp_477880 = 0;
		LOC2 = 0;
		LOC2 = sonslen_193403(n);
		HEX3Atmp_477880 = (NI)(LOC2 - ((NI) 1));
		res_477883 = ((NI) 0);
		{
			while (1) {
				Tnode190813* it;
				NU16 LOC5;
				if (!(res_477883 <= HEX3Atmp_477880)) goto LA4;
				i_477861 = res_477883;
				it = (*n).kindU.S6.sons->data[i_477861];
				LOC5 = 0;
				LOC5 = whichpragma_219673(it);
				switch (LOC5) {
				case ((NU16) 186):
				{
					genemit_477646(p_477847, it);
				}
				break;
				case ((NU16) 127):
				{
					genbreakpoint_477672(p_477847, it);
				}
				break;
				case ((NU16) 171):
				{
					genwatchpoint_477819(p_477847, it);
				}
				break;
				case ((NU16) 178):
				{
					Tcproc456034* p;
					Ropeobj161009** LOC10;
					p = newproc_456229(NIM_NIL, (*p_477847).module);
					(*p).options = ((*p).options & ~ 98304);
					genstmts_466874(p, (*it).kindU.S6.sons->data[((NI) 1)]);
					LOC10 = 0;
					LOC10 = s_456184(p, ((NU8) 2));
					asgnRefNoCycle((void**) (&(*(*p).module).injectstmt), (*LOC10));
				}
				break;
				default:
				{
				}
				break;
				}
				res_477883 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, genparforstmt_474811)(Tcproc456034* p, Tnode190813* t) {
	NI oldbreakidx_475011;
	Tsym190843* forloopvar;
	Tloc190827 rangea;
	Tloc190827 rangeb;
	Tnode190813* call;
	TY462566 LOC1;
	NimStringDesc* LOC2;
	TY460664 LOC3;
	(*p).withinloop += ((NI) 1);
	genlinedir_460241(p, t);
	oldbreakidx_475011 = (*p).breakidx;
	forloopvar = (*(*t).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	memset((void*)(&rangea), 0, sizeof(rangea));
	memset((void*)(&rangeb), 0, sizeof(rangeb));
	assignlocalvar_466207(p, forloopvar);
	call = (*t).kindU.S6.sons->data[((NI) 1)];
	initlocexpr_466937(p, (*call).kindU.S6.sons->data[((NI) 1)], (&rangea));
	initlocexpr_466937(p, (*call).kindU.S6.sons->data[((NI) 2)], (&rangeb));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593((*forloopvar).loc);
	LOC1[1] = rdloc_465593(rangea);
	LOC1[2] = rdloc_465593(rangeb);
	LOC2 = 0;
	LOC2 = getstr_195628((*call).kindU.S6.sons->data[((NI) 3)]);
	LOC1[3] = rope_161320(LOC2);
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4161), LOC1, 4);
	memset((void*)LOC3, 0, sizeof(LOC3));
	(*p).breakidx = startblock_472258(p, ((NimStringDesc*) &TMP3721), LOC3, 0);
	(*p).blocks->data[(*p).breakidx].isloop = NIM_TRUE;
	genstmts_466874(p, (*t).kindU.S6.sons->data[((NI) 2)]);
	endblock_472352(p);
	(*p).breakidx = oldbreakidx_475011;
	(*p).withinloop -= ((NI) 1);
}

N_NIMCALL(void, genstate_472418)(Tcproc456034* p, Tnode190813* n) {
	NI64 idx;
	TY161572 LOC9;
	{
		NIM_BOOL LOC3;
		NI LOC4;
		NimStringDesc* LOC8;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = len_191097(n);
		LOC3 = (LOC4 == ((NI) 1));
		if (!(LOC3)) goto LA5;
		LOC3 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 6));
		LA5: ;
		if (!!(LOC3)) goto LA6;
		LOC8 = 0;
		LOC8 = HEX24_165306(TMP4162);
		internalerror_165218(LOC8);
	}
	LA6: ;
	idx = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S1.intval;
	memset((void*)LOC9, 0, sizeof(LOC9));
	LOC9[0] = rope_161407(idx);
	linefmt_460023(p, ((NU8) 2), ((NimStringDesc*) &TMP4164), LOC9, 1);
}

N_NIMCALL(void, gengotostate_472448)(Tcproc456034* p, Tnode190813* n) {
	Tloc190827 a;
	TY161572 LOC1;
	TY460664 LOC2;
	TY460664 LOC7;
	memset((void*)(&a), 0, sizeof(a));
	initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rdloc_465593(a);
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4117), LOC1, 1);
	(*p).beforeretneeded = NIM_TRUE;
	memset((void*)LOC2, 0, sizeof(LOC2));
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4165), LOC2, 0);
	{
		NI64 i_472623;
		NI64 HEX3Atmp_472632;
		NI64 res_472635;
		i_472623 = 0;
		HEX3Atmp_472632 = 0;
		HEX3Atmp_472632 = lastord_220010((*(*n).kindU.S6.sons->data[((NI) 0)]).typ);
		res_472635 = IL64(0);
		{
			while (1) {
				TY161572 LOC6;
				if (!(res_472635 <= HEX3Atmp_472632)) goto LA5;
				i_472623 = res_472635;
				memset((void*)LOC6, 0, sizeof(LOC6));
				LOC6[0] = rope_161407(i_472623);
				linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4166), LOC6, 1);
				res_472635 += ((NI) 1);
			} LA5: ;
		}
	}
	memset((void*)LOC7, 0, sizeof(LOC7));
	linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP3635), LOC7, 0);
}

N_NIMCALL(void, genbreakstate_472650)(Tcproc456034* p, Tnode190813* n) {
	Tloc190827 a;
	memset((void*)(&a), 0, sizeof(a));
	{
		TY161572 LOC5;
		if (!((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 155))) goto LA3;
		initlocexpr_466937(p, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)], (&a));
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rdloc_465593(a);
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4167), LOC5, 1);
	}
	goto LA1;
	LA3: ;
	{
		TY161572 LOC7;
		initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = rdloc_465593(a);
		linef_459997(p, ((NU8) 2), ((NimStringDesc*) &TMP4168), LOC7, 1);
	}
	LA1: ;
}

N_NIMCALL(void, expr_466881)(Tcproc456034* p, Tnode190813* n, Tloc190827* d) {
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		Tsym190843* sym;
		sym = (*n).kindU.S4.sym;
		switch ((*sym).kind) {
		case ((NU8) 13):
		{
			{
				if (!!(((33554448 & (*sym).flags) == 0))) goto LA5;
				fillprocloc_466807(sym);
				genprocprototype_466890((*p).module, sym);
			}
			goto LA3;
			LA5: ;
			{
				genproc_460387((*p).module, sym);
			}
			LA3: ;
			putlocintodest_466897(p, d, (*sym).loc);
		}
		break;
		case ((NU8) 12):
		case ((NU8) 16):
		case ((NU8) 14):
		case ((NU8) 15):
		{
			genproc_460387((*p).module, sym);
			{
				NIM_BOOL LOC11;
				NimStringDesc* LOC15;
				LOC11 = 0;
				LOC11 = ((*sym).loc.r == NIM_NIL);
				if (LOC11) goto LA12;
				LOC11 = ((*sym).loc.t == NIM_NIL);
				LA12: ;
				if (!LOC11) goto LA13;
				LOC15 = 0;
				LOC15 = rawNewString((*(*sym).name).s->Sup.len + 20);
appendString(LOC15, ((NimStringDesc*) &TMP3716));
appendString(LOC15, (*(*sym).name).s);
				internalerror_165199((*n).info, LOC15);
			}
			LA13: ;
			putlocintodest_466897(p, d, (*sym).loc);
		}
		break;
		case ((NU8) 10):
		{
			{
				if (!(((*sym).flags &(1<<((((NU8) 25))&31)))!=0)) goto LA19;
				{
					if (!(((*sym).flags &(1<<((((NU8) 3))&31)))!=0)) goto LA23;
					genvarprototype_466860((*p).module, sym);
				}
				LA23: ;
				putlocintodest_466897(p, d, (*sym).loc);
			}
			goto LA17;
			LA19: ;
			{
				NIM_BOOL LOC26;
				Ropeobj161009* LOC29;
				LOC26 = 0;
				LOC26 = issimpleconst_459350((*sym).typ);
				if (!LOC26) goto LA27;
				LOC29 = 0;
				LOC29 = genliteral_478327(p, (*sym).ast, (*sym).typ);
				putintodest_479562(p, d, (*n).typ, LOC29);
			}
			goto LA17;
			LA27: ;
			{
				gencomplexconst_487885(p, sym, d);
			}
			LA17: ;
		}
		break;
		case ((NU8) 20):
		{
			Ropeobj161009* LOC32;
			LOC32 = 0;
			LOC32 = rope_161407(((NI64) ((*sym).position)));
			putintodest_479562(p, d, (*n).typ, LOC32);
		}
		break;
		case ((NU8) 8):
		case ((NU8) 21):
		case ((NU8) 11):
		case ((NU8) 9):
		{
			{
				if (!(((*sym).flags &(1<<((((NU8) 3))&31)))!=0)) goto LA36;
				genvarprototype_466860((*p).module, sym);
			}
			LA36: ;
			{
				NIM_BOOL LOC40;
				NimStringDesc* LOC44;
				NimStringDesc* LOC45;
				LOC40 = 0;
				LOC40 = ((*sym).loc.r == NIM_NIL);
				if (LOC40) goto LA41;
				LOC40 = ((*sym).loc.t == NIM_NIL);
				LA41: ;
				if (!LOC40) goto LA42;
				LOC44 = 0;
				LOC45 = 0;
				LOC45 = nimIntToStr((*sym).Sup.id);
				LOC44 = rawNewString((*(*sym).name).s->Sup.len + LOC45->Sup.len + 20);
appendString(LOC44, ((NimStringDesc*) &TMP3735));
appendString(LOC44, (*(*sym).name).s);
appendString(LOC44, ((NimStringDesc*) &TMP3497));
appendString(LOC44, LOC45);
				internalerror_165199((*n).info, LOC44);
			}
			LA42: ;
			{
				if (!(((*sym).flags &(1<<((((NU8) 22))&31)))!=0)) goto LA48;
				accessthreadlocalvar_460375(p, sym);
				{
					NIM_BOOL LOC52;
					Ropeobj161009* LOC55;
					LOC52 = 0;
					LOC52 = emulatedthreadvars_460382();
					if (!LOC52) goto LA53;
					LOC55 = 0;
					LOC55 = HEX26_161482(((NimStringDesc*) &TMP3738), (*sym).loc.r);
					putintodest_479562(p, d, (*sym).loc.t, LOC55);
				}
				goto LA50;
				LA53: ;
				{
					putlocintodest_466897(p, d, (*sym).loc);
				}
				LA50: ;
			}
			goto LA46;
			LA48: ;
			{
				putlocintodest_466897(p, d, (*sym).loc);
			}
			LA46: ;
		}
		break;
		case ((NU8) 5):
		{
			{
				NIM_BOOL LOC61;
				NimStringDesc* LOC65;
				NimStringDesc* LOC66;
				LOC61 = 0;
				LOC61 = ((*sym).loc.r == NIM_NIL);
				if (LOC61) goto LA62;
				LOC61 = ((*sym).loc.t == NIM_NIL);
				LA62: ;
				if (!LOC61) goto LA63;
				LOC65 = 0;
				LOC66 = 0;
				LOC66 = nimIntToStr((*sym).Sup.id);
				LOC65 = rawNewString((*(*sym).name).s->Sup.len + LOC66->Sup.len + 21);
appendString(LOC65, ((NimStringDesc*) &TMP3739));
appendString(LOC65, (*(*sym).name).s);
appendString(LOC65, ((NimStringDesc*) &TMP3497));
appendString(LOC65, LOC66);
				internalerror_165199((*n).info, LOC65);
			}
			LA63: ;
			putlocintodest_466897(p, d, (*sym).loc);
		}
		break;
		case ((NU8) 3):
		{
			{
				NIM_BOOL LOC70;
				NimStringDesc* LOC74;
				NimStringDesc* LOC75;
				LOC70 = 0;
				LOC70 = ((*sym).loc.r == NIM_NIL);
				if (LOC70) goto LA71;
				LOC70 = ((*sym).loc.t == NIM_NIL);
				LA71: ;
				if (!LOC70) goto LA72;
				LOC74 = 0;
				LOC75 = 0;
				LOC75 = nimIntToStr((*sym).Sup.id);
				LOC74 = rawNewString((*(*sym).name).s->Sup.len + LOC75->Sup.len + 22);
appendString(LOC74, ((NimStringDesc*) &TMP3740));
appendString(LOC74, (*(*sym).name).s);
appendString(LOC74, ((NimStringDesc*) &TMP3497));
appendString(LOC74, LOC75);
				internalerror_165199((*n).info, LOC74);
			}
			LA72: ;
			putlocintodest_466897(p, d, (*sym).loc);
		}
		break;
		default:
		{
			NimStringDesc* LOC77;
			LOC77 = 0;
			LOC77 = rawNewString(reprEnum((*sym).kind, (&NTI190441))->Sup.len + 22);
appendString(LOC77, ((NimStringDesc*) &TMP3741));
appendString(LOC77, reprEnum((*sym).kind, (&NTI190441)));
appendString(LOC77, ((NimStringDesc*) &TMP3742));
			internalerror_165199((*n).info, LOC77);
		}
		break;
		}
	}
	break;
	case ((NU8) 23):
	{
		{
			NIM_BOOL LOC81;
			Ropeobj161009* LOC84;
			LOC81 = 0;
			LOC81 = isemptytype_195933((*n).typ);
			if (!!(LOC81)) goto LA82;
			LOC84 = 0;
			LOC84 = genliteral_466921(p, n);
			putintodest_479562(p, d, (*n).typ, LOC84);
		}
		LA82: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		Ropeobj161009* LOC86;
		LOC86 = 0;
		LOC86 = genliteral_466921(p, n);
		putdataintodest_479527(p, d, (*n).typ, LOC86);
	}
	break;
	case ((NU8) 6) ... ((NU8) 15):
	case ((NU8) 16) ... ((NU8) 19):
	case ((NU8) 5):
	{
		Ropeobj161009* LOC88;
		LOC88 = 0;
		LOC88 = genliteral_466921(p, n);
		putintodest_479562(p, d, (*n).typ, LOC88);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 32):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	{
		Tnode190813* op;
		genlinedir_460241(p, n);
		op = (*n).kindU.S6.sons->data[((NI) 0)];
		{
			Tloc190827 a;
			if (!(*n).typ == 0) goto LA92;
			memset((void*)(&a), 0, sizeof(a));
			{
				NIM_BOOL LOC96;
				LOC96 = 0;
				LOC96 = ((*op).kind == ((NU8) 3));
				if (!(LOC96)) goto LA97;
				LOC96 = !(((*(*op).kindU.S4.sym).magic == ((NU16) 0)));
				LA97: ;
				if (!LOC96) goto LA98;
				genmagicexpr_486836(p, n, (&a), (*(*op).kindU.S4.sym).magic);
			}
			goto LA94;
			LA98: ;
			{
				gencall_471645(p, n, (&a));
			}
			LA94: ;
		}
		goto LA90;
		LA92: ;
		{
			{
				NIM_BOOL LOC104;
				LOC104 = 0;
				LOC104 = ((*op).kind == ((NU8) 3));
				if (!(LOC104)) goto LA105;
				LOC104 = !(((*(*op).kindU.S4.sym).magic == ((NU16) 0)));
				LA105: ;
				if (!LOC104) goto LA106;
				genmagicexpr_486836(p, n, d, (*(*op).kindU.S4.sym).magic);
			}
			goto LA102;
			LA106: ;
			{
				gencall_471645(p, n, d);
			}
			LA102: ;
		}
		LA90: ;
	}
	break;
	case ((NU8) 39):
	{
		{
			NIM_BOOL LOC112;
			NI LOC114;
			Ropeobj161009* LOC117;
			LOC112 = 0;
			LOC112 = isdeepconstexpr_219459(n);
			if (!(LOC112)) goto LA113;
			LOC114 = 0;
			LOC114 = len_191097(n);
			LOC112 = !((LOC114 == ((NI) 0)));
			LA113: ;
			if (!LOC112) goto LA115;
			LOC117 = 0;
			LOC117 = gensetnode_478690(p, n);
			putintodest_479562(p, d, (*n).typ, LOC117);
		}
		goto LA110;
		LA115: ;
		{
			gensetconstr_487351(p, n, d);
		}
		LA110: ;
	}
	break;
	case ((NU8) 41):
	{
		{
			NIM_BOOL LOC122;
			NI LOC124;
			LOC122 = 0;
			LOC122 = isdeepconstexpr_219459(n);
			if (!(LOC122)) goto LA123;
			LOC124 = 0;
			LOC124 = len_191097(n);
			LOC122 = !((LOC124 == ((NI) 0)));
			LA123: ;
			if (!LOC122) goto LA125;
			exprcomplexconst_488334(p, n, d);
		}
		goto LA120;
		LA125: ;
		{
			Ttype190849* LOC128;
			LOC128 = 0;
			LOC128 = skiptypes_194167((*n).typ, IL64(211106242013440));
			if (!((*LOC128).kind == ((NU8) 24))) goto LA129;
			genseqconstr_484441(p, n, d);
		}
		goto LA120;
		LA129: ;
		{
			genarrayconstr_487830(p, n, d);
		}
		LA120: ;
	}
	break;
	case ((NU8) 37):
	{
		{
			NIM_BOOL LOC135;
			NI LOC137;
			LOC135 = 0;
			LOC135 = isdeepconstexpr_219459(n);
			if (!(LOC135)) goto LA136;
			LOC137 = 0;
			LOC137 = len_191097(n);
			LOC135 = !((LOC137 == ((NI) 0)));
			LA136: ;
			if (!LOC135) goto LA138;
			exprcomplexconst_488334(p, n, d);
		}
		goto LA133;
		LA138: ;
		{
			gentupleconstr_487496(p, n, d);
		}
		LA133: ;
	}
	break;
	case ((NU8) 38):
	{
		genobjconstr_484262(p, n, d);
	}
	break;
	case ((NU8) 61):
	{
		gencast_486158(p, n, d);
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 60):
	{
		genconv_486258(p, n, d);
	}
	break;
	case ((NU8) 64):
	case ((NU8) 63):
	{
		genaddr_482201(p, n, d);
	}
	break;
	case ((NU8) 42):
	{
		genbracketexpr_483501(p, n, d);
	}
	break;
	case ((NU8) 47):
	case ((NU8) 65):
	{
		genderef_472198(p, n, d, NIM_FALSE);
	}
	break;
	case ((NU8) 45):
	{
		genrecordfield_482361(p, n, d);
	}
	break;
	case ((NU8) 46):
	{
		gencheckedrecordfield_483054(p, n, d);
	}
	break;
	case ((NU8) 127):
	case ((NU8) 112):
	{
		genblock_474687(p, n, d);
	}
	break;
	case ((NU8) 126):
	{
		genstmtlistexpr_488005(p, n, d);
	}
	break;
	case ((NU8) 115):
	{
		{
			NI i_488660;
			NI HEX3Atmp_488870;
			NI LOC153;
			NI res_488873;
			i_488660 = 0;
			HEX3Atmp_488870 = 0;
			LOC153 = 0;
			LOC153 = sonslen_193403(n);
			HEX3Atmp_488870 = (NI)(LOC153 - ((NI) 1));
			res_488873 = ((NI) 0);
			{
				while (1) {
					if (!(res_488873 <= HEX3Atmp_488870)) goto LA155;
					i_488660 = res_488873;
					genstmts_466874(p, (*n).kindU.S6.sons->data[i_488660]);
					res_488873 += ((NI) 1);
				} LA155: ;
			}
		}
	}
	break;
	case ((NU8) 48):
	case ((NU8) 92):
	{
		genif_473440(p, n, d);
	}
	break;
	case ((NU8) 66):
	{
		downconv_488212(p, n, d);
	}
	break;
	case ((NU8) 67):
	{
		upconv_488047(p, n, d);
	}
	break;
	case ((NU8) 68):
	{
		genrangechck_486214(p, n, d, ((NimStringDesc*) &TMP4073));
	}
	break;
	case ((NU8) 69):
	{
		genrangechck_486214(p, n, d, ((NimStringDesc*) &TMP4074));
	}
	break;
	case ((NU8) 70):
	{
		genrangechck_486214(p, n, d, ((NimStringDesc*) &TMP4075));
	}
	break;
	case ((NU8) 71):
	{
		convstrtocstr_486271(p, n, d);
	}
	break;
	case ((NU8) 72):
	{
		convcstrtostr_486286(p, n, d);
	}
	break;
	case ((NU8) 51):
	case ((NU8) 52):
	{
		Tsym190843* sym;
		sym = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		genproc_460387((*p).module, sym);
		{
			NIM_BOOL LOC167;
			NimStringDesc* LOC171;
			LOC167 = 0;
			LOC167 = ((*sym).loc.r == NIM_NIL);
			if (LOC167) goto LA168;
			LOC167 = ((*sym).loc.t == NIM_NIL);
			LA168: ;
			if (!LOC167) goto LA169;
			LOC171 = 0;
			LOC171 = rawNewString((*(*sym).name).s->Sup.len + 20);
appendString(LOC171, ((NimStringDesc*) &TMP3716));
appendString(LOC171, (*(*sym).name).s);
			internalerror_165199((*n).info, LOC171);
		}
		LA169: ;
		putlocintodest_466897(p, d, (*sym).loc);
	}
	break;
	case ((NU8) 155):
	{
		genclosure_487651(p, n, d);
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	case ((NU8) 96):
	{
		genwhilestmt_474530(p, n);
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		genvarstmt_473269(p, n);
	}
	break;
	case ((NU8) 101):
	{
		genconststmt_473340(p, n);
	}
	break;
	case ((NU8) 94):
	{
		internalerror_165199((*n).info, ((NimStringDesc*) &TMP4108));
	}
	break;
	case ((NU8) 97):
	{
		gencase_476520(p, n, d);
	}
	break;
	case ((NU8) 109):
	{
		genreturnstmt_474084(p, n);
	}
	break;
	case ((NU8) 110):
	{
		genbreakstmt_475047(p, n);
	}
	break;
	case ((NU8) 73):
	{
		genasgn_478047(p, n, NIM_FALSE);
	}
	break;
	case ((NU8) 74):
	{
		genasgn_478047(p, n, !(((*p).prc == NIM_NIL)));
	}
	break;
	case ((NU8) 114):
	{
		{
			Tloc190827 a;
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA186;
			genlinedir_460241(p, n);
			memset((void*)(&a), 0, sizeof(a));
			initlocexpr_466937(p, (*n).kindU.S6.sons->data[((NI) 0)], (&a));
		}
		LA186: ;
	}
	break;
	case ((NU8) 89):
	{
		genasmstmt_477480(p, n);
	}
	break;
	case ((NU8) 106):
	{
		{
			NIM_BOOL LOC192;
			LOC192 = 0;
			LOC192 = (gcmd_154130 == ((NU8) 2));
			if (LOC192) goto LA193;
			LOC192 = (((*(*(*p).module).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA193: ;
			if (!LOC192) goto LA194;
			gentrycpp_476599(p, n, d);
		}
		goto LA190;
		LA194: ;
		{
			gentry_476932(p, n, d);
		}
		LA190: ;
	}
	break;
	case ((NU8) 108):
	{
		genraisestmt_475440(p, n);
	}
	break;
	case ((NU8) 98):
	{
		gentypesection_465583((*p).module, n);
	}
	break;
	case ((NU8) 125):
	case ((NU8) 84):
	case ((NU8) 121):
	case ((NU8) 116):
	case ((NU8) 117):
	case ((NU8) 118):
	case ((NU8) 119):
	case ((NU8) 120):
	case ((NU8) 83):
	case ((NU8) 82):
	{
	}
	break;
	case ((NU8) 90):
	{
		genpragma_477845(p, n);
	}
	break;
	case ((NU8) 91):
	{
		Tnode190813* LOC202;
		LOC202 = 0;
		LOC202 = lastson_193431(n);
		expr_466881(p, LOC202, d);
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 81):
	{
		{
			Tsym190843* prc;
			if (!((*(*n).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1))) goto LA206;
			prc = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
			{
				Tsym190843* LOC210;
				LOC210 = 0;
				LOC210 = skipgenericowner_195695(prc);
				if (!((*LOC210).kind == ((NU8) 6))) goto LA211;
				{
					NIM_BOOL LOC215;
					NIM_BOOL LOC216;
					NIM_BOOL LOC217;
					NIM_BOOL LOC218;
					Tsym190843* LOC220;
					NIM_BOOL LOC223;
					LOC215 = 0;
					LOC216 = 0;
					LOC217 = 0;
					LOC218 = 0;
					LOC218 = !(((gglobaloptions_154128 &(1<<((((NU8) 2))&31)))!=0));
					if (!(LOC218)) goto LA219;
					LOC220 = 0;
					LOC220 = getmodule_198243(prc);
					LOC218 = !((((*LOC220).flags &(1<<((((NU8) 25))&31)))!=0));
					LA219: ;
					LOC217 = LOC218;
					if (LOC217) goto LA221;
					LOC217 = ((65600 & (*prc).flags) == 64);
					LA221: ;
					LOC216 = LOC217;
					if (LOC216) goto LA222;
					LOC223 = 0;
					LOC223 = (((*prc).flags &(1<<((((NU8) 6))&31)))!=0);
					if (!(LOC223)) goto LA224;
					LOC223 = (((*prc).loc.flags &(1<<((((NU8) 5))&15)))!=0);
					LA224: ;
					LOC216 = LOC223;
					LA222: ;
					LOC215 = LOC216;
					if (LOC215) goto LA225;
					LOC215 = ((*prc).kind == ((NU8) 13));
					LA225: ;
					if (!LOC215) goto LA226;
					{
						NIM_BOOL LOC230;
						Tnode190813* LOC231;
						LOC230 = 0;
						LOC231 = 0;
						LOC231 = getbody_235648(prc);
						LOC230 = !(((*LOC231).kind == ((NU8) 1)));
						if (LOC230) goto LA232;
						LOC230 = (((*prc).loc.flags &(1<<((((NU8) 4))&15)))!=0);
						LA232: ;
						if (!LOC230) goto LA233;
						genproc_460387((*p).module, prc);
					}
					LA233: ;
				}
				LA226: ;
			}
			LA211: ;
		}
		LA206: ;
	}
	break;
	case ((NU8) 95):
	{
		genparforstmt_474811(p, n);
	}
	break;
	case ((NU8) 157):
	{
		genstate_472418(p, n);
	}
	break;
	case ((NU8) 156):
	{
		gengotostate_472448(p, n);
	}
	break;
	case ((NU8) 158):
	{
		genbreakstate_472650(p, n);
	}
	break;
	default:
	{
		NimStringDesc* LOC240;
		LOC240 = 0;
		LOC240 = rawNewString(reprEnum((*n).kind, (&NTI190029))->Sup.len + 25);
appendString(LOC240, ((NimStringDesc*) &TMP3741));
appendString(LOC240, reprEnum((*n).kind, (&NTI190029)));
appendString(LOC240, ((NimStringDesc*) &TMP4169));
		internalerror_165199((*n).info, LOC240);
	}
	break;
	}
}

N_NIMCALL(void, genstmts_466874)(Tcproc456034* p, Tnode190813* t) {
	Tloc190827 a;
	memset((void*)(&a), 0, sizeof(a));
	expr_466881(p, t, (&a));
	{
		NimStringDesc* LOC5;
		if (!!(((7 &(1<<((a.k)&15)))!=0))) goto LA3;
		LOC5 = 0;
		LOC5 = HEX24_165306(TMP4170);
		internalerror_165218(LOC5);
	}
	LA3: ;
}

N_NIMCALL(Ropeobj161009*, initgcframe_466004)(Tcproc456034* p) {
	Ropeobj161009* result;
	result = 0;
	{
		TY161572 LOC5;
		if (!(((NI) 0) < ((NI) ((*p).gcframeid)))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = (*p).gcframetype;
		result = HEX25_162235(((NimStringDesc*) &TMP4174), LOC5, 1);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, initframe_489824)(Tcproc456034* p, Ropeobj161009* procname, Ropeobj161009* filename) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP4175));
	{
		Ropeobj161009* LOC6;
		TY462566 LOC7;
		if (!(((NI) 0) < (*p).maxframelen)) goto LA4;
		LOC6 = 0;
		LOC6 = cgsym_459609((*p).module, ((NimStringDesc*) &TMP4176));
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = procname;
		LOC7[1] = filename;
		LOC7[2] = rope_161407(((NI64) ((*p).maxframelen)));
		LOC7[3] = rope_161407(((NI64) ((*p).blocks->data[((NI) 0)].framelen)));
		result = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4177), LOC7, 4);
	}
	goto LA2;
	LA4: ;
	{
		TY490436 LOC9;
		memset((void*)LOC9, 0, sizeof(LOC9));
		LOC9[0] = procname;
		LOC9[1] = filename;
		result = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4178), LOC9, 2);
	}
	LA2: ;
	return result;
}

N_NIMCALL(void, appcg_459908)(Tcproc456034* p, NU8 s, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009** LOC1;
	Ropeobj161009* LOC2;
	LOC1 = 0;
	LOC1 = s_456184(p, s);
	LOC2 = 0;
	LOC2 = ropecg_459616((*p).module, frmt, args, argsLen0);
	add_161534(LOC1, LOC2);
}

N_NIMCALL(Ropeobj161009*, deinitgcframe_466016)(Tcproc456034* p) {
	Ropeobj161009* result;
	result = 0;
	{
		TY460664 LOC5;
		if (!(((NI) 0) < ((NI) ((*p).gcframeid)))) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		result = ropecg_459616((*p).module, ((NimStringDesc*) &TMP4181), LOC5, 0);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, deinitframe_489840)(Tcproc456034* p) {
	Ropeobj161009* result;
	TY460664 LOC1;
	result = 0;
	memset((void*)LOC1, 0, sizeof(LOC1));
	result = ropecg_459616((*p).module, ((NimStringDesc*) &TMP4182), LOC1, 0);
	return result;
}

N_NIMCALL(void, genprocaux_489893)(Tcgen456038* m, Tsym190843* prc) {
	Tcproc456034* p;
	Ropeobj161009* header;
	Ropeobj161009* returnstmt;
	Tnode190813* LOC38;
	Ropeobj161009* generatedproc;
	p = newproc_456229(prc, m);
	header = genprocheader_463301(m, prc);
	returnstmt = NIM_NIL;
	{
		NIM_BOOL LOC3;
		Tsym190843* res;
		LOC3 = 0;
		LOC3 = !((((*prc).flags &(1<<((((NU8) 9))&31)))!=0));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*(*prc).typ).sons->data[((NI) 0)] == NIM_NIL));
		LA4: ;
		if (!LOC3) goto LA5;
		{
			NI LOC9;
			LOC9 = 0;
			LOC9 = len_191097((*prc).ast);
			if (!(LOC9 <= ((NI) 7))) goto LA10;
			internalerror_165199((*prc).info, ((NimStringDesc*) &TMP3596));
		}
		LA10: ;
		res = (*(*(*prc).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym;
		{
			NIM_BOOL LOC14;
			TY161572 LOC21;
			LOC14 = 0;
			LOC14 = isinvalidreturntype_460948((*(*prc).typ).sons->data[((NI) 0)]);
			if (!!(LOC14)) goto LA15;
			{
				if (!(((*prc).flags &(1<<((((NU8) 12))&31)))!=0)) goto LA19;
				(*res).flags |= ((NI32)1)<<((((NU8) 12))%(sizeof(NI32)*8));
			}
			LA19: ;
			assignlocalvar_466207(p, res);
			memset((void*)LOC21, 0, sizeof(LOC21));
			LOC21[0] = rdloc_465593((*res).loc);
			returnstmt = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3689), LOC21, 1);
			initlocalvar_465858(p, res, NIM_FALSE);
		}
		goto LA12;
		LA15: ;
		{
			fillresult_461268(res);
			assignparam_466613(p, res);
			{
				Ttype190849* LOC25;
				LOC25 = 0;
				LOC25 = skiptypes_194167((*res).typ, IL64(211106232576256));
				if (!((*LOC25).kind == ((NU8) 16))) goto LA26;
				(*res).loc.flags |= ((NI16)1)<<((((NU8) 0))%(sizeof(NI16)*8));
				(*res).loc.s = ((NU8) 0);
			}
			LA26: ;
		}
		LA12: ;
	}
	LA5: ;
	{
		NI i_490239;
		NI HEX3Atmp_490333;
		NI LOC29;
		NI res_490336;
		i_490239 = 0;
		HEX3Atmp_490333 = 0;
		LOC29 = 0;
		LOC29 = sonslen_193403((*(*prc).typ).n);
		HEX3Atmp_490333 = (NI)(LOC29 - ((NI) 1));
		res_490336 = ((NI) 1);
		{
			while (1) {
				if (!(res_490336 <= HEX3Atmp_490333)) goto LA31;
				i_490239 = res_490336;
				{
					Tsym190843* param;
					param = (*(*(*(*prc).typ).n).kindU.S6.sons->data[i_490239]).kindU.S4.sym;
					{
						NIM_BOOL LOC35;
						LOC35 = 0;
						LOC35 = iscompiletimeonly_229712((*param).typ);
						if (!LOC35) goto LA36;
						goto LA32;
					}
					LA36: ;
					assignparam_466613(p, param);
				} LA32: ;
				res_490336 += ((NI) 1);
			} LA31: ;
		}
	}
	closuresetup_489854(p, prc);
	LOC38 = 0;
	LOC38 = getbody_235648(prc);
	genstmts_466874(p, LOC38);
	generatedproc = 0;
	{
		TY462566 LOC47;
		Ropeobj161009** LOC48;
		Ropeobj161009** LOC49;
		Ropeobj161009** LOC50;
		if (!(((*prc).flags &(1<<((((NU8) 9))&31)))!=0)) goto LA41;
		{
			if (!((Cc_170434[(ccompiler_170455)- 1].Field20 &(1<<((((NU8) 6))&7)))!=0)) goto LA45;
			header = HEX26_161482(((NimStringDesc*) &TMP4171), header);
		}
		LA45: ;
		memset((void*)LOC47, 0, sizeof(LOC47));
		LOC47[0] = header;
		LOC48 = 0;
		LOC48 = s_456184(p, ((NU8) 0));
		LOC47[1] = (*LOC48);
		LOC49 = 0;
		LOC49 = s_456184(p, ((NU8) 1));
		LOC47[2] = (*LOC49);
		LOC50 = 0;
		LOC50 = s_456184(p, ((NU8) 2));
		LOC47[3] = (*LOC50);
		generatedproc = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4172), LOC47, 4);
	}
	goto LA39;
	LA41: ;
	{
		TY161572 LOC52;
		Ropeobj161009* LOC53;
		Ropeobj161009** LOC72;
		Ropeobj161009** LOC73;
		Ropeobj161009* LOC80;
		TY460664 LOC86;
		Ropeobj161009* LOC87;
		memset((void*)LOC52, 0, sizeof(LOC52));
		LOC52[0] = header;
		generatedproc = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP4173), LOC52, 1);
		LOC53 = 0;
		LOC53 = initgcframe_466004(p);
		add_161534(&generatedproc, LOC53);
		{
			Ropeobj161009** LOC58;
			Ropeobj161009* procname;
			Ropeobj161009* LOC59;
			Ropeobj161009* LOC60;
			if (!(((*prc).options &(1<<((((NU8) 15))&31)))!=0)) goto LA56;
			LOC58 = 0;
			LOC58 = s_456184(p, ((NU8) 0));
			add_161534(&generatedproc, (*LOC58));
			procname = makecstring_163449((*(*prc).name).s);
			LOC59 = 0;
			LOC59 = quotedfilename_165354((*prc).info);
			LOC60 = 0;
			LOC60 = initframe_489824(p, procname, LOC59);
			add_161534(&generatedproc, LOC60);
		}
		goto LA54;
		LA56: ;
		{
			Ropeobj161009** LOC62;
			LOC62 = 0;
			LOC62 = s_456184(p, ((NU8) 0));
			add_161534(&generatedproc, (*LOC62));
		}
		LA54: ;
		{
			TY460664 LOC67;
			if (!(((*prc).options &(1<<((((NU8) 19))&31)))!=0)) goto LA65;
			memset((void*)LOC67, 0, sizeof(LOC67));
			appcg_459908(p, ((NU8) 1), ((NimStringDesc*) &TMP4179), LOC67, 0);
		}
		LA65: ;
		{
			if (!(*p).beforeretneeded) goto LA70;
			add_161545(&generatedproc, ((NimStringDesc*) &TMP3732));
		}
		LA70: ;
		LOC72 = 0;
		LOC72 = s_456184(p, ((NU8) 1));
		add_161534(&generatedproc, (*LOC72));
		LOC73 = 0;
		LOC73 = s_456184(p, ((NU8) 2));
		add_161534(&generatedproc, (*LOC73));
		{
			TY460664 LOC78;
			Ropeobj161009* LOC79;
			if (!(*p).beforeretneeded) goto LA76;
			memset((void*)LOC78, 0, sizeof(LOC78));
			LOC79 = 0;
			LOC79 = HEX25_162235(((NimStringDesc*) &TMP4180), LOC78, 0);
			add_161534(&generatedproc, LOC79);
		}
		LA76: ;
		LOC80 = 0;
		LOC80 = deinitgcframe_466016(p);
		add_161534(&generatedproc, LOC80);
		{
			Ropeobj161009* LOC85;
			if (!(((*prc).options &(1<<((((NU8) 15))&31)))!=0)) goto LA83;
			LOC85 = 0;
			LOC85 = deinitframe_489840(p);
			add_161534(&generatedproc, LOC85);
		}
		LA83: ;
		add_161534(&generatedproc, returnstmt);
		memset((void*)LOC86, 0, sizeof(LOC86));
		LOC87 = 0;
		LOC87 = HEX25_162235(((NimStringDesc*) &TMP4183), LOC86, 0);
		add_161534(&generatedproc, LOC87);
	}
	LA39: ;
	add_161534(&(*m).s[(((NU8) 10))- 0], generatedproc);
}

N_NIMCALL(NIM_BOOL, isgetprocaddr_489057)(Tlib190831* lib) {
	NIM_BOOL result;
	Tnode190813* n;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	result = 0;
	n = (*lib).path;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((*n).kind == ((NU8) 27) || (*n).kind == ((NU8) 29) || (*n).kind == ((NU8) 30) || (*n).kind == ((NU8) 31) || (*n).kind == ((NU8) 26) || (*n).kind == ((NU8) 28) || (*n).kind == ((NU8) 32));
	if (!(LOC2)) goto LA3;
	LOC2 = !(((*n).typ == NIM_NIL));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC1 = ((*(*n).typ).kind == ((NU8) 26) || (*(*n).typ).kind == ((NU8) 25));
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(void, symindynamiclib_489551)(Tcgen456038* m, Tsym190843* sym) {
	Tlib190831* lib;
	NIM_BOOL iscall;
	Ropeobj161009* extname;
	Ropeobj161009* tmp;
	TY490436 LOC43;
	lib = (*sym).annex;
	iscall = isgetprocaddr_489057(lib);
	extname = (*sym).loc.r;
	{
		if (!!(iscall)) goto LA3;
		loaddynamiclib_489101(m, lib);
	}
	LA3: ;
	tmp = mangledynlibproc_466426(sym);
	asgnRefNoCycle((void**) (&(*sym).loc.r), tmp);
	asgnRefNoCycle((void**) (&(*(*sym).typ).sym), NIM_NIL);
	(*m).labels += ((NI) 2);
	{
		Tnode190813* n;
		Tloc190827 a;
		Tnode190813* LOC9;
		Ropeobj161009* params;
		Ropeobj161009* LOC10;
		Ropeobj161009* load;
		TY462566 LOC17;
		NimStringDesc* LOC18;
		Tnode190813* last;
		NimStringDesc* idx;
		if (!iscall) goto LA7;
		n = (*lib).path;
		memset((void*)(&a), 0, sizeof(a));
		LOC9 = 0;
		LOC9 = HEX5BHEX5D_191244(n, ((NI) 0));
		initlocexpr_466937((*m).initproc, LOC9, (&a));
		LOC10 = 0;
		LOC10 = rdloc_465593(a);
		params = HEX26_161471(LOC10, ((NimStringDesc*) &TMP3544));
		{
			NI i_489587;
			NI HEX3Atmp_489648;
			NI LOC12;
			NI res_489651;
			i_489587 = 0;
			HEX3Atmp_489648 = 0;
			LOC12 = 0;
			LOC12 = len_191097(n);
			HEX3Atmp_489648 = (NI)(LOC12 - ((NI) 2));
			res_489651 = ((NI) 1);
			{
				while (1) {
					Tnode190813* LOC15;
					Ropeobj161009* LOC16;
					if (!(res_489651 <= HEX3Atmp_489648)) goto LA14;
					i_489587 = res_489651;
					LOC15 = 0;
					LOC15 = HEX5BHEX5D_191244(n, i_489587);
					initlocexpr_466937((*m).initproc, LOC15, (&a));
					LOC16 = 0;
					LOC16 = rdloc_465593(a);
					add_161534(&params, LOC16);
					add_161545(&params, ((NimStringDesc*) &TMP3536));
					res_489651 += ((NI) 1);
				} LA14: ;
			}
		}
		memset((void*)LOC17, 0, sizeof(LOC17));
		LOC17[0] = tmp;
		LOC17[1] = gettypedesc_463073(m, (*sym).typ);
		LOC17[2] = params;
		LOC18 = 0;
		LOC18 = HEX24_162131(extname);
		LOC17[3] = makecstring_163449(LOC18);
		load = HEX25_162235(((NimStringDesc*) &TMP4184), LOC17, 4);
		last = lastson_193431(n);
		{
			if (!((*last).kind == ((NU8) 58))) goto LA21;
			last = (*last).kindU.S6.sons->data[((NI) 1)];
		}
		LA21: ;
		{
			NimStringDesc* LOC27;
			if (!!(((*last).kind == ((NU8) 20)))) goto LA25;
			LOC27 = 0;
			LOC27 = HEX24_165306(TMP4185);
			internalerror_165218(LOC27);
		}
		LA25: ;
		idx = (*last).kindU.S3.strval;
		{
			Ropeobj161009** LOC32;
			if (!((idx ? idx->Sup.len : 0) == ((NI) 0))) goto LA30;
			LOC32 = 0;
			LOC32 = s_456184((*m).initproc, ((NU8) 2));
			add_161534(LOC32, load);
		}
		goto LA28;
		LA30: ;
		{
			NIM_BOOL LOC34;
			LOC34 = 0;
			LOC34 = ((idx ? idx->Sup.len : 0) == ((NI) 1));
			if (!(LOC34)) goto LA35;
			LOC34 = (((NU8)(idx->data[((NI) 0)])) >= ((NU8)(48)) && ((NU8)(idx->data[((NI) 0)])) <= ((NU8)(57)));
			LA35: ;
			if (!LOC34) goto LA36;
			add_161534(&(*m).extensionloaders[(((NU8)(idx->data[((NI) 0)])))- 48], load);
		}
		goto LA28;
		LA36: ;
		{
			NimStringDesc* LOC39;
			LOC39 = 0;
			LOC39 = rawNewString(idx->Sup.len + 13);
appendString(LOC39, ((NimStringDesc*) &TMP4186));
appendString(LOC39, idx);
			internalerror_165199((*sym).info, LOC39);
		}
		LA28: ;
	}
	goto LA5;
	LA7: ;
	{
		TY462566 LOC41;
		NimStringDesc* LOC42;
		memset((void*)LOC41, 0, sizeof(LOC41));
		LOC41[0] = tmp;
		LOC41[1] = gettypedesc_463073(m, (*sym).typ);
		LOC41[2] = (*lib).name;
		LOC42 = 0;
		LOC42 = HEX24_162131(extname);
		LOC41[3] = makecstring_163449(LOC42);
		appcg_459880(m, &(*m).s[(((NU8) 16))- 0], ((NimStringDesc*) &TMP4187), LOC41, 4);
	}
	LA5: ;
	memset((void*)LOC43, 0, sizeof(LOC43));
	LOC43[0] = (*sym).loc.r;
	LOC43[1] = gettypedesc_463073(m, (*sym).loc.t);
	addf_162635(&(*m).s[(((NU8) 9))- 0], ((NimStringDesc*) &TMP4188), LOC43, 2);
}

N_NIMCALL(void, symindynamiclibpartial_489715)(Tcgen456038* m, Tsym190843* sym) {
	asgnRefNoCycle((void**) (&(*sym).loc.r), mangledynlibproc_466426(sym));
	asgnRefNoCycle((void**) (&(*(*sym).typ).sym), NIM_NIL);
}

N_NIMCALL(void, genprocnoforward_490483)(Tcgen456038* m, Tsym190843* prc) {
{	fillprocloc_466807(prc);
	useheader_459400(m, prc);
	{
		Ropeobj161009* LOC5;
		if (!(((*prc).loc.flags &(1<<((((NU8) 7))&15)))!=0)) goto LA3;
		LOC5 = 0;
		LOC5 = cgsym_459609(m, (*(*prc).name).s);
		goto BeforeRet;
	}
	LA3: ;
	genprocprototype_466890(m, prc);
	{
		if (!(((*prc).loc.flags &(1<<((((NU8) 3))&15)))!=0)) goto LA8;
	}
	goto LA6;
	LA8: ;
	{
		if (!((*(*prc).typ).callconv == ((NU8) 5))) goto LA11;
		{
			NIM_BOOL LOC15;
			LOC15 = 0;
			LOC15 = containsorincl_187898((&(*m).declaredthings), (*prc).Sup.id);
			if (!!(LOC15)) goto LA16;
			genprocaux_489893(m, prc);
		}
		LA16: ;
	}
	goto LA6;
	LA11: ;
	{
		Tcgen456038* q;
		if (!(((*prc).loc.flags &(1<<((((NU8) 4))&15)))!=0)) goto LA19;
		q = findpendingmodule_459256(m, prc);
		{
			NIM_BOOL LOC23;
			NIM_BOOL LOC25;
			LOC23 = 0;
			LOC23 = !((q == NIM_NIL));
			if (!(LOC23)) goto LA24;
			LOC25 = 0;
			LOC25 = containsorincl_187898((&(*q).declaredthings), (*prc).Sup.id);
			LOC23 = !(LOC25);
			LA24: ;
			if (!LOC23) goto LA26;
			symindynamiclib_489551(q, prc);
		}
		goto LA21;
		LA26: ;
		{
			symindynamiclibpartial_489715(m, prc);
		}
		LA21: ;
	}
	goto LA6;
	LA19: ;
	{
		Tcgen456038* q;
		if (!!((((*prc).flags &(1<<((((NU8) 5))&31)))!=0))) goto LA30;
		q = findpendingmodule_459256(m, prc);
		{
			NIM_BOOL LOC34;
			NIM_BOOL LOC36;
			LOC34 = 0;
			LOC34 = !((q == NIM_NIL));
			if (!(LOC34)) goto LA35;
			LOC36 = 0;
			LOC36 = containsorincl_187898((&(*q).declaredthings), (*prc).Sup.id);
			LOC34 = !(LOC36);
			LA35: ;
			if (!LOC34) goto LA37;
			genprocaux_489893(q, prc);
		}
		LA37: ;
	}
	goto LA6;
	LA30: ;
	LA6: ;
	}BeforeRet: ;
}

N_NIMCALL(void, genproc_460387)(Tcgen456038* m, Tsym190843* prc) {
{	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		LOC3 = 0;
		LOC3 = (((*prc).flags &(1<<((((NU8) 26))&31)))!=0);
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = isactivated_491037(prc);
		LOC3 = !(LOC5);
		LA4: ;
		if (!LOC3) goto LA6;
		goto BeforeRet;
	}
	LA6: ;
	fillprocloc_466807(prc);
	{
		if (!(((*prc).flags &(1<<((((NU8) 4))&31)))!=0)) goto LA10;
		addforwardedproc_459206(m, prc);
	}
	goto LA8;
	LA10: ;
	{
		genprocnoforward_490483(m, prc);
		{
			NIM_BOOL LOC15;
			NIM_BOOL LOC16;
			LOC15 = 0;
			LOC16 = 0;
			LOC16 = ((65600 & (*prc).flags) == 64);
			if (!(LOC16)) goto LA17;
			LOC16 = !((generatedheader_459201 == NIM_NIL));
			LA17: ;
			LOC15 = LOC16;
			if (!(LOC15)) goto LA18;
			LOC15 = !((((*prc).loc.flags &(1<<((((NU8) 3))&15)))!=0));
			LA18: ;
			if (!LOC15) goto LA19;
			genprocprototype_466890(generatedheader_459201, prc);
			{
				if (!((*(*prc).typ).callconv == ((NU8) 5))) goto LA23;
				{
					NIM_BOOL LOC27;
					LOC27 = 0;
					LOC27 = containsorincl_187898((&(*generatedheader_459201).declaredthings), (*prc).Sup.id);
					if (!!(LOC27)) goto LA28;
					genprocaux_489893(generatedheader_459201, prc);
				}
				LA28: ;
			}
			LA23: ;
		}
		LA19: ;
	}
	LA8: ;
	}BeforeRet: ;
}

N_NIMCALL(Ropeobj161009*, cgsym_459609)(Tcgen456038* m, NimStringDesc* name) {
	Ropeobj161009* result;
	Tsym190843* sym;
	result = 0;
	sym = getcompilerproc_238036(name);
	{
		if (!!((sym == NIM_NIL))) goto LA3;
		switch ((*sym).kind) {
		case ((NU8) 12):
		case ((NU8) 13):
		case ((NU8) 16):
		case ((NU8) 14):
		case ((NU8) 15):
		{
			genproc_460387(m, sym);
		}
		break;
		case ((NU8) 8):
		case ((NU8) 11):
		case ((NU8) 9):
		{
			genvarprototype_466860(m, sym);
		}
		break;
		case ((NU8) 7):
		{
			Ropeobj161009* LOC8;
			LOC8 = 0;
			LOC8 = gettypedesc_463073(m, (*sym).typ);
		}
		break;
		default:
		{
			NimStringDesc* LOC10;
			LOC10 = 0;
			LOC10 = rawNewString(name->Sup.len + 7);
appendString(LOC10, ((NimStringDesc*) &TMP4189));
appendString(LOC10, name);
			internalerror_165218(LOC10);
		}
		break;
		}
	}
	goto LA1;
	LA3: ;
	{
		rawmessage_164960(((NU16) 64), name);
	}
	LA1: ;
	result = (*sym).loc.r;
	return result;
}

N_NIMCALL(Ropeobj161009*, ropecg_459616)(Tcgen456038* m, NimStringDesc* frmt, Ropeobj161009** args, NI argsLen0) {
	Ropeobj161009* result;
	NI i;
	NI length;
	NI num;
	result = 0;
	i = ((NI) 0);
	length = (frmt ? frmt->Sup.len : 0);
	result = NIM_NIL;
	num = ((NI) 0);
	{
		while (1) {
			NI start;
			if (!(i < length)) goto LA2;
			{
				if (!((NU8)(frmt->data[i]) == (NU8)(36))) goto LA5;
				i += ((NI) 1);
				switch (((NU8)(frmt->data[i]))) {
				case 36:
				{
					add_161545(&result, ((NimStringDesc*) &TMP3488));
					i += ((NI) 1);
				}
				break;
				case 35:
				{
					i += ((NI) 1);
					add_161534(&result, args[num]);
					num += ((NI) 1);
				}
				break;
				case 48 ... 57:
				{
					NI j;
					j = ((NI) 0);
					{
						while (1) {
							j = (NI)((NI)((NI)(j * ((NI) 10)) + ((NI) (((NU8)(frmt->data[i]))))) - ((NI) 48));
							i += ((NI) 1);
							{
								NIM_BOOL LOC14;
								LOC14 = 0;
								LOC14 = (length <= i);
								if (LOC14) goto LA15;
								LOC14 = !((((NU8)(frmt->data[i])) >= ((NU8)(48)) && ((NU8)(frmt->data[i])) <= ((NU8)(57))));
								LA15: ;
								if (!LOC14) goto LA16;
								goto LA10;
							}
							LA16: ;
						}
					} LA10: ;
					num = j;
					{
						NimStringDesc* LOC22;
						NimStringDesc* LOC23;
						if (!((NI)((argsLen0-1) + ((NI) 1)) < j)) goto LA20;
						LOC22 = 0;
						LOC23 = 0;
						LOC23 = nimIntToStr(j);
						LOC22 = rawNewString(LOC23->Sup.len + 30);
appendString(LOC22, ((NimStringDesc*) &TMP3489));
appendString(LOC22, LOC23);
						internalerror_165218(LOC22);
					}
					LA20: ;
					add_161534(&result, args[(NI)(j - ((NI) 1))]);
				}
				break;
				case 110:
				{
					{
						if (!!(((goptions_154126 &(1<<((((NU8) 10))&31)))!=0))) goto LA27;
						add_161534(&result, rnl_162227);
					}
					LA27: ;
					i += ((NI) 1);
				}
				break;
				case 78:
				{
					add_161534(&result, rnl_162227);
					i += ((NI) 1);
				}
				break;
				default:
				{
					NimStringDesc* LOC31;
					LOC31 = 0;
					LOC31 = rawNewString(31);
appendString(LOC31, ((NimStringDesc*) &TMP3489));
appendChar(LOC31, frmt->data[i]);
					internalerror_165218(LOC31);
				}
				break;
				}
			}
			goto LA3;
			LA5: ;
			{
				NIM_BOOL LOC33;
				NI j;
				NimStringDesc* ident;
				Ropeobj161009* LOC39;
				LOC33 = 0;
				LOC33 = ((NU8)(frmt->data[i]) == (NU8)(35));
				if (!(LOC33)) goto LA34;
				LOC33 = (((NU8)(frmt->data[(NI)(i + ((NI) 1))])) >= ((NU8)(97)) && ((NU8)(frmt->data[(NI)(i + ((NI) 1))])) <= ((NU8)(122)) || ((NU8)(frmt->data[(NI)(i + ((NI) 1))])) >= ((NU8)(65)) && ((NU8)(frmt->data[(NI)(i + ((NI) 1))])) <= ((NU8)(90)) || ((NU8)(frmt->data[(NI)(i + ((NI) 1))])) == ((NU8)(95)));
				LA34: ;
				if (!LOC33) goto LA35;
				i += ((NI) 1);
				j = i;
				{
					while (1) {
						if (!(((NU8)(frmt->data[j])) >= ((NU8)(97)) && ((NU8)(frmt->data[j])) <= ((NU8)(122)) || ((NU8)(frmt->data[j])) >= ((NU8)(65)) && ((NU8)(frmt->data[j])) <= ((NU8)(90)) || ((NU8)(frmt->data[j])) >= ((NU8)(48)) && ((NU8)(frmt->data[j])) <= ((NU8)(57)) || ((NU8)(frmt->data[j])) == ((NU8)(95)))) goto LA38;
						j += ((NI) 1);
					} LA38: ;
				}
				ident = copyStrLast(frmt, i, (NI)(j - ((NI) 1)));
				i = j;
				LOC39 = 0;
				LOC39 = cgsym_459609(m, ident);
				add_161534(&result, LOC39);
			}
			goto LA3;
			LA35: ;
			{
				NIM_BOOL LOC41;
				NI j;
				NimStringDesc* LOC47;
				Ropeobj161009* LOC48;
				LOC41 = 0;
				LOC41 = ((NU8)(frmt->data[i]) == (NU8)(35));
				if (!(LOC41)) goto LA42;
				LOC41 = ((NU8)(frmt->data[(NI)(i + ((NI) 1))]) == (NU8)(36));
				LA42: ;
				if (!LOC41) goto LA43;
				i += ((NI) 2);
				j = ((NI) 0);
				{
					while (1) {
						if (!(((NU8)(frmt->data[i])) >= ((NU8)(48)) && ((NU8)(frmt->data[i])) <= ((NU8)(57)))) goto LA46;
						j = (NI)((NI)((NI)(j * ((NI) 10)) + ((NI) (((NU8)(frmt->data[i]))))) - ((NI) 48));
						i += ((NI) 1);
					} LA46: ;
				}
				LOC47 = 0;
				LOC47 = HEX24_162131(args[(NI)(j - ((NI) 1))]);
				LOC48 = 0;
				LOC48 = cgsym_459609(m, LOC47);
				add_161534(&result, LOC48);
			}
			goto LA3;
			LA43: ;
			LA3: ;
			start = i;
			{
				while (1) {
					if (!(i < length)) goto LA50;
					{
						NIM_BOOL LOC53;
						LOC53 = 0;
						LOC53 = !(((NU8)(frmt->data[i]) == (NU8)(36)));
						if (!(LOC53)) goto LA54;
						LOC53 = !(((NU8)(frmt->data[i]) == (NU8)(35)));
						LA54: ;
						if (!LOC53) goto LA55;
						i += ((NI) 1);
					}
					goto LA51;
					LA55: ;
					{
						goto LA49;
					}
					LA51: ;
				} LA50: ;
			} LA49: ;
			{
				NimStringDesc* LOC62;
				if (!(start <= (NI)(i - ((NI) 1)))) goto LA60;
				LOC62 = 0;
				LOC62 = copyStrLast(frmt, start, (NI)(i - ((NI) 1)));
				add_161545(&result, LOC62);
			}
			LA60: ;
		} LA2: ;
	}
	return result;
}

N_NIMCALL(Ropeobj161009*, gettempname_461002)(void) {
	Ropeobj161009* result;
	TY161572 LOC1;
	NI LOC2;
	result = 0;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC2 = 0;
	LOC2 = backendid_189422();
	LOC1[0] = rope_161407(((NI64) (LOC2)));
	result = ropecg_459616(NIM_NIL, ((NimStringDesc*) &TMP3618), LOC1, 1);
	return result;
}

N_NIMCALL(Tcgen456038*, rawnewmodule_492505)(Tsym190843* module, NimStringDesc* filename) {
	Tcgen456038* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	result = 0;
	result = (Tcgen456038*) newObj((&NTI456028), sizeof(Tcgen456038));
	(*result).Sup.Sup.m_type = (&NTI456038);
	initlinkedlist_130043((&(*result).headerfiles));
	initintset_187927((&(*result).declaredthings));
	initintset_187927((&(*result).declaredprotos));
	LOC1 = 0;
	LOC1 = (*result).cfilename; (*result).cfilename = copyStringRC1(filename);
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).filename; (*result).filename = copyStringRC1(filename);
	if (LOC2) nimGCunrefNoCycle(LOC2);
	initidtable_194057((&(*result).typecache));
	initidtable_194057((&(*result).forwtypecache));
	asgnRefNoCycle((void**) (&(*result).module), module);
	initintset_187927((&(*result).typeinfomarker));
	asgnRef((void**) (&(*result).initproc), newproc_456229(NIM_NIL, result));
	(*(*result).initproc).options = initprocoptions_492471(result);
	asgnRef((void**) (&(*result).preinitproc), newpreinitproc_492449(result));
	asgnRef((void**) (&(*result).postinitproc), newpostinitproc_492460(result));
	initnodetable_194147((&(*result).datacache));
	if ((*result).typestack) nimGCunrefNoCycle((*result).typestack);
	(*result).typestack = (Ttypeseq190845*) newSeqRC1((&NTI190845), 0);
	if ((*result).forwardedprocs) nimGCunrefNoCycle((*result).forwardedprocs);
	(*result).forwardedprocs = (Tsymseq190815*) newSeqRC1((&NTI190815), 0);
	asgnRefNoCycle((void**) (&(*result).typenodesname), gettempname_461002());
	asgnRefNoCycle((void**) (&(*result).nimtypesname), gettempname_461002());
	{
		if (!(((*module).flags &(1<<((((NU8) 13))&31)))!=0)) goto LA5;
		(*result).preventstacktrace = NIM_TRUE;
		(*(*result).preinitproc).options &= ~(((NI32)1) << ((((NU8) 15)) % (sizeof(NI32)*8)));
		(*(*result).postinitproc).options &= ~(((NI32)1) << ((((NU8) 15)) % (sizeof(NI32)*8)));
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tcgen456038*, rawnewmodule_492882)(Tsym190843* module) {
	Tcgen456038* result;
	NimStringDesc* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = tofullpath_164276(((NI32) ((*module).position)));
	result = rawnewmodule_492505(module, LOC1);
	return result;
}

N_NIMCALL(Tcgen456038*, newmodule_492895)(Tsym190843* module) {
	Tcgen456038* result;
	result = 0;
	{
		Tcgen456038* LOC3;
		NimStringDesc* LOC6;
		LOC3 = 0;
		LOC3 = getcgenmodule_459235(module);
		if (!!((LOC3 == NIM_NIL))) goto LA4;
		LOC6 = 0;
		LOC6 = HEX24_165306(TMP3486);
		internalerror_165218(LOC6);
	}
	LA4: ;
	result = rawnewmodule_492882(module);
	{
		if (!((gmodules_456172 ? gmodules_456172->Sup.len : 0) <= (*module).position)) goto LA9;
		gmodules_456172 = (TY456155*) setLengthSeq(&(gmodules_456172)->Sup, sizeof(Tcgen456038*), ((NI) ((NI)((*module).position + ((NI) 1)))));
	}
	LA9: ;
	asgnRef((void**) (&gmodules_456172->data[(*module).position]), result);
	{
		if (!((gglobaloptions_154128 &(1<<((((NU8) 2))&31)))!=0)) goto LA13;
		{
			NimStringDesc* LOC19;
			NimStringDesc* LOC20;
			if (!(((*module).flags &(1<<((((NU8) 25))&31)))!=0)) goto LA17;
			LOC19 = 0;
			LOC20 = 0;
			LOC20 = tofilename_164266(((NI32) ((*module).position)));
			LOC19 = rawNewString(LOC20->Sup.len + 28);
appendString(LOC19, ((NimStringDesc*) &TMP4190));
appendString(LOC19, LOC20);
			internalerror_165218(LOC19);
		}
		LA17: ;
	}
	LA13: ;
	return result;
}

N_NIMCALL(Tpasscontext241005*, myopen_492971)(Tsym190843* module) {
	Tpasscontext241005* result;
	Tcgen456038* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = newmodule_492895(module);
	result = &LOC1->Sup;
	{
		NIM_BOOL LOC4;
		NimStringDesc* f;
		NimStringDesc* LOC13;
		NimStringDesc* LOC14;
		LOC4 = 0;
		LOC4 = ((gglobaloptions_154128 &(1<<((((NU8) 26))&31)))!=0);
		if (!(LOC4)) goto LA5;
		LOC4 = (generatedheader_459201 == NIM_NIL);
		LA5: ;
		if (!LOC4) goto LA6;
		{
			if (!(((NI) 0) < (headerfile_154136 ? headerfile_154136->Sup.len : 0))) goto LA10;
			f = headerfile_154136;
		}
		goto LA8;
		LA10: ;
		{
			f = gprojectfull_154236;
		}
		LA8: ;
		LOC13 = 0;
		LOC13 = completecfilepath_170912(f, NIM_TRUE);
		LOC14 = 0;
		LOC14 = noschangeFileExt(LOC13, ((NimStringDesc*) &TMP4191));
		asgnRef((void**) (&generatedheader_459201), rawnewmodule_492505(module, LOC14));
		(*generatedheader_459201).isheaderfile = NIM_TRUE;
	}
	LA6: ;
	return result;
}

N_NIMCALL(NimStringDesc*, getcfile_493072)(Tcgen456038* m) {
	NimStringDesc* result;
	NimStringDesc* ext;
	NimStringDesc* LOC13;
	NimStringDesc* LOC14;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_154130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		ext = copyString(((NimStringDesc*) &TMP4201));
	}
	goto LA1;
	LA5: ;
	{
		NIM_BOOL LOC8;
		LOC8 = 0;
		LOC8 = (gcmd_154130 == ((NU8) 3));
		if (LOC8) goto LA9;
		LOC8 = (((*(*m).module).flags &(1<<((((NU8) 28))&31)))!=0);
		LA9: ;
		if (!LOC8) goto LA10;
		ext = copyString(((NimStringDesc*) &TMP4202));
	}
	goto LA1;
	LA10: ;
	{
		ext = copyString(((NimStringDesc*) &TMP4203));
	}
	LA1: ;
	LOC13 = 0;
	LOC13 = withpackagename_154944((*m).cfilename);
	LOC14 = 0;
	LOC14 = completecfilepath_170912(LOC13, NIM_TRUE);
	result = noschangeFileExt(LOC14, ext);
	return result;
}

N_NIMCALL(Tpasscontext241005*, myopencached_493123)(Tsym190843* module, Trodreader233030* rd) {
	Tpasscontext241005* result;
	Tcgen456038* m;
	NimStringDesc* LOC1;
	result = 0;
	m = newmodule_492895(module);
	LOC1 = 0;
	LOC1 = getcfile_493072(m);
	readmergeinfo_457816(LOC1, m);
	result = &m->Sup;
	return result;
}

static N_INLINE(NIM_BOOL, skipcodegen_241083)(Tnode190813* n) {
	NIM_BOOL result;
	result = 0;
	result = (((NI) 0) < gerrorcounter_164015);
	return result;
}

N_NIMCALL(Tnode190813*, myprocess_493208)(Tpasscontext241005* b, Tnode190813* n) {
	Tnode190813* result;
	Tcgen456038* m;
{	result = 0;
	result = n;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (b == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = skipcodegen_241083(n);
		LA4: ;
		if (!LOC3) goto LA5;
		goto BeforeRet;
	}
	LA5: ;
	m = ((Tcgen456038*) (b));
	(*(*m).initproc).options = initprocoptions_492471(m);
	genstmts_466874((*m).initproc, n);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ropeobj161009*, getsomeinitname_491747)(Tsym190843* m, NimStringDesc* suffix) {
	Ropeobj161009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!((12288 & (*m).flags) == 0)) goto LA3;
		LOC5 = 0;
		LOC5 = mangle_454896((*(*(*m).owner).name).s);
		result = rope_161320(LOC5);
		add_161545(&result, ((NimStringDesc*) &TMP3497));
	}
	LA3: ;
	add_161545(&result, (*(*m).name).s);
	add_161545(&result, suffix);
	return result;
}

N_NIMCALL(Ropeobj161009*, getinitname_492041)(Tsym190843* m) {
	Ropeobj161009* result;
	result = 0;
	result = getsomeinitname_491747(m, ((NimStringDesc*) &TMP4204));
	return result;
}

N_NIMCALL(Ropeobj161009*, getdatinitname_492051)(Tsym190843* m) {
	Ropeobj161009* result;
	result = 0;
	result = getsomeinitname_491747(m, ((NimStringDesc*) &TMP4205));
	return result;
}

N_NIMCALL(void, registermoduletomain_492061)(Tsym190843* m) {
	Ropeobj161009* init;
	Ropeobj161009* datinit;
	TY161572 LOC1;
	TY161572 LOC2;
	init = getinitname_492041(m);
	datinit = getdatinitname_492051(m);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = init;
	addf_162635(&mainmodprocs_456150, ((NimStringDesc*) &TMP4206), LOC1, 1);
	memset((void*)LOC2, 0, sizeof(LOC2));
	LOC2[0] = datinit;
	addf_162635(&mainmodprocs_456150, ((NimStringDesc*) &TMP4206), LOC2, 1);
	{
		TY161572 LOC7;
		Ropeobj161009* initcall;
		TY161572 LOC8;
		if (!!((((*m).flags &(1<<((((NU8) 13))&31)))!=0))) goto LA5;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = datinit;
		addf_162635(&maindatinit_456153, ((NimStringDesc*) &TMP4207), LOC7, 1);
		memset((void*)LOC8, 0, sizeof(LOC8));
		LOC8[0] = init;
		initcall = HEX25_162235(((NimStringDesc*) &TMP4207), LOC8, 1);
		{
			if (!(((*m).flags &(1<<((((NU8) 12))&31)))!=0)) goto LA11;
			add_161534(&mainmodinit_456151, initcall);
		}
		goto LA9;
		LA11: ;
		{
			add_161534(&othermodsinit_456152, initcall);
		}
		LA9: ;
	}
	LA5: ;
}

N_NIMCALL(Ropeobj161009*, genfilenames_491518)(Tcgen456038* m) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = cgsym_459609(m, ((NimStringDesc*) &TMP4220));
	result = NIM_NIL;
	{
		NI i_491548;
		NI HEX3Atmp_491553;
		NI res_491556;
		i_491548 = 0;
		HEX3Atmp_491553 = 0;
		HEX3Atmp_491553 = ((fileinfos_163432 ? fileinfos_163432->Sup.len : 0) - 1);
		res_491556 = ((NI) 0);
		{
			while (1) {
				TY161572 LOC5;
				if (!(res_491556 <= HEX3Atmp_491553)) goto LA4;
				i_491548 = res_491556;
				memset((void*)LOC5, 0, sizeof(LOC5));
				LOC5[0] = makecstring_163449(fileinfos_163432->data[i_491548].projpath);
				addf_162635(&result, ((NimStringDesc*) &TMP4221), LOC5, 1);
				res_491556 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(void, genmainproc_491575)(Tcgen456038* m) {
	NimStringDesc* nimmain;
	NimStringDesc* othermain;
	Ropeobj161009* initstackbottomcall;
	TY463876 LOC36;
	TY462569 LOC45;
	nimmain = 0;
	othermain = 0;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC12;
		LOC3 = 0;
		LOC3 = (targetos_159602 == ((NU8) 2));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((gglobaloptions_154128 & 1280) == 0));
		LA4: ;
		if (!LOC3) goto LA5;
		{
			if (!((gglobaloptions_154128 &(1<<((((NU8) 10))&31)))!=0)) goto LA9;
			nimmain = copyString(((NimStringDesc*) &TMP4210));
			othermain = copyString(((NimStringDesc*) &TMP4211));
		}
		goto LA7;
		LA9: ;
		{
			nimmain = copyString(((NimStringDesc*) &TMP4212));
			othermain = copyString(((NimStringDesc*) &TMP4213));
		}
		LA7: ;
		LOC12 = 0;
		LOC12 = includestr_130279((&(*m).headerfiles), ((NimStringDesc*) &TMP4214));
	}
	goto LA1;
	LA5: ;
	{
		if (!((gglobaloptions_154128 &(1<<((((NU8) 8))&31)))!=0)) goto LA14;
		nimmain = copyString(((NimStringDesc*) &TMP4212));
		othermain = copyString(((NimStringDesc*) &TMP4215));
	}
	goto LA1;
	LA14: ;
	{
		if (!(targetos_159602 == ((NU8) 24))) goto LA17;
		nimmain = copyString(((NimStringDesc*) &TMP4216));
		othermain = copyString(((NimStringDesc*) &TMP4217));
	}
	goto LA1;
	LA17: ;
	{
		nimmain = copyString(((NimStringDesc*) &TMP4216));
		othermain = copyString(((NimStringDesc*) &TMP4218));
	}
	LA1: ;
	{
		Ropeobj161009* LOC24;
		if (!!((gbreakpoints_477671 == NIM_NIL))) goto LA22;
		LOC24 = 0;
		LOC24 = cgsym_459609(m, ((NimStringDesc*) &TMP4219));
	}
	LA22: ;
	{
		Ropeobj161009* LOC29;
		if (!((goptions_154126 &(1<<((((NU8) 17))&31)))!=0)) goto LA27;
		LOC29 = 0;
		LOC29 = genfilenames_491518(m);
		add_161534(&gbreakpoints_477671, LOC29);
	}
	LA27: ;
	{
		if (!(targetos_159602 == ((NU8) 24))) goto LA32;
		initstackbottomcall = rope_161320(((NimStringDesc*) &TMP3940));
	}
	goto LA30;
	LA32: ;
	{
		TY460664 LOC35;
		memset((void*)LOC35, 0, sizeof(LOC35));
		initstackbottomcall = ropecg_459616(m, ((NimStringDesc*) &TMP4222), LOC35, 0);
	}
	LA30: ;
	(*m).labels += ((NI) 1);
	memset((void*)LOC36, 0, sizeof(LOC36));
	LOC36[0] = maindatinit_456153;
	LOC36[1] = gbreakpoints_477671;
	LOC36[2] = othermodsinit_456152;
	{
		NIM_BOOL LOC39;
		TY460664 LOC43;
		LOC39 = 0;
		LOC39 = emulatedthreadvars_460382();
		if (!(LOC39)) goto LA40;
		LOC39 = !((targetos_159602 == ((NU8) 24)));
		LA40: ;
		if (!LOC39) goto LA41;
		memset((void*)LOC43, 0, sizeof(LOC43));
		LOC36[3] = ropecg_459616(m, ((NimStringDesc*) &TMP4224), LOC43, 0);
	}
	goto LA37;
	LA41: ;
	{
		LOC36[3] = rope_161320(((NimStringDesc*) &TMP3940));
	}
	LA37: ;
	LOC36[4] = initstackbottomcall;
	appcg_459880(m, &(*m).s[(((NU8) 10))- 0], ((NimStringDesc*) &TMP4223), LOC36, 5);
	memset((void*)LOC45, 0, sizeof(LOC45));
	LOC45[0] = mainmodinit_456151;
	LOC45[1] = initstackbottomcall;
	LOC45[2] = rope_161407(((NI64) ((*m).labels)));
	appcg_459880(m, &(*m).s[(((NU8) 10))- 0], nimmain, LOC45, 3);
	{
		TY460664 LOC50;
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 20))&31)))!=0))) goto LA48;
		memset((void*)LOC50, 0, sizeof(LOC50));
		appcg_459880(m, &(*m).s[(((NU8) 10))- 0], othermain, LOC50, 0);
	}
	LA48: ;
}

N_NIMCALL(Tnode190813*, myclose_493642)(Tpasscontext241005* b, Tnode190813* n) {
	Tnode190813* result;
	Tcgen456038* m;
{	result = 0;
	result = n;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (b == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = skipcodegen_241083(n);
		LA4: ;
		if (!LOC3) goto LA5;
		goto BeforeRet;
	}
	LA5: ;
	m = ((Tcgen456038*) (b));
	{
		if (!!((n == NIM_NIL))) goto LA9;
		(*(*m).initproc).options = initprocoptions_492471(m);
		genstmts_466874((*m).initproc, n);
	}
	LA9: ;
	registermoduletomain_492061((*m).module);
	{
		Tnode190813* disp;
		if (!(((*(*m).module).flags &(1<<((((NU8) 12))&31)))!=0)) goto LA13;
		(*m).objhaskidsvalid = NIM_TRUE;
		disp = generatemethoddispatchers_356208();
		{
			NI i_493694;
			NI HEX3Atmp_493698;
			NI LOC16;
			NI res_493701;
			i_493694 = 0;
			HEX3Atmp_493698 = 0;
			LOC16 = 0;
			LOC16 = sonslen_193403(disp);
			HEX3Atmp_493698 = (NI)(LOC16 - ((NI) 1));
			res_493701 = ((NI) 0);
			{
				while (1) {
					if (!(res_493701 <= HEX3Atmp_493698)) goto LA18;
					i_493694 = res_493701;
					genprocaux_489893(m, (*(*disp).kindU.S6.sons->data[i_493694]).kindU.S4.sym);
					res_493701 += ((NI) 1);
				} LA18: ;
			}
		}
		genmainproc_491575(m);
	}
	LA13: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, finishmodule_493232)(Tcgen456038* m) {
	NI i;
	i = ((NI) 0);
	{
		while (1) {
			Tsym190843* prc;
			if (!(i <= ((*m).forwardedprocs ? ((*m).forwardedprocs->Sup.len-1) : -1))) goto LA2;
			prc = (*m).forwardedprocs->data[i];
			{
				NimStringDesc* LOC7;
				if (!(((*prc).flags &(1<<((((NU8) 4))&31)))!=0)) goto LA5;
				LOC7 = 0;
				LOC7 = rawNewString((*(*prc).name).s->Sup.len + 17);
appendString(LOC7, ((NimStringDesc*) &TMP4268));
appendString(LOC7, (*(*prc).name).s);
				internalerror_165199((*prc).info, LOC7);
			}
			LA5: ;
			genprocnoforward_490483(m, prc);
			i += ((NI) 1);
		} LA2: ;
	}
	gforwardedprocscounter_456173 -= i;
	(*m).forwardedprocs = (Tsymseq190815*) setLengthSeq(&((*m).forwardedprocs)->Sup, sizeof(Tsym190843*), ((NI) 0));
}

N_NIMCALL(void, geninitcode_492110)(Tcgen456038* m) {
	Ropeobj161009* initname;
	Ropeobj161009* prc;
	TY161572 LOC1;
	Ropeobj161009* LOC12;
	Ropeobj161009* LOC13;
	Ropeobj161009** LOC14;
	Ropeobj161009** LOC15;
	Ropeobj161009** LOC16;
	Ropeobj161009* LOC17;
	Ropeobj161009* LOC33;
	Ropeobj161009** LOC34;
	Ropeobj161009** LOC35;
	Ropeobj161009** LOC36;
	Ropeobj161009* LOC37;
	Ropeobj161009* LOC38;
	Ropeobj161009** LOC39;
	Ropeobj161009** LOC40;
	Ropeobj161009** LOC41;
	Ropeobj161009* LOC42;
	Ropeobj161009* LOC50;
	TY460664 LOC51;
	TY161572 LOC52;
	TY460664 LOC58;
	initname = getinitname_492041((*m).module);
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = initname;
	prc = HEX25_162235(((NimStringDesc*) &TMP4294), LOC1, 1);
	{
		TY490436 LOC6;
		if (!(((NI) 0) < (*m).typenodes)) goto LA4;
		memset((void*)LOC6, 0, sizeof(LOC6));
		LOC6[0] = (*m).typenodesname;
		LOC6[1] = rope_161407(((NI64) ((*m).typenodes)));
		appcg_459880(m, &(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP4295), LOC6, 2);
	}
	LA4: ;
	{
		TY490436 LOC11;
		if (!(((NI) 0) < (*m).nimtypes)) goto LA9;
		memset((void*)LOC11, 0, sizeof(LOC11));
		LOC11[0] = (*m).nimtypesname;
		LOC11[1] = rope_161407(((NI64) ((*m).nimtypes)));
		appcg_459880(m, &(*m).s[(((NU8) 12))- 0], ((NimStringDesc*) &TMP4296), LOC11, 2);
	}
	LA9: ;
	LOC12 = 0;
	LOC12 = initgcframe_466004((*m).initproc);
	add_161534(&prc, LOC12);
	LOC13 = 0;
	LOC13 = gensectionstart_457106(((NU8) 0));
	add_161534(&prc, LOC13);
	LOC14 = 0;
	LOC14 = s_456184((*m).preinitproc, ((NU8) 0));
	add_161534(&prc, (*LOC14));
	LOC15 = 0;
	LOC15 = s_456184((*m).initproc, ((NU8) 0));
	add_161534(&prc, (*LOC15));
	LOC16 = 0;
	LOC16 = s_456184((*m).postinitproc, ((NU8) 0));
	add_161534(&prc, (*LOC16));
	LOC17 = 0;
	LOC17 = gensectionend_457147(((NU8) 0));
	add_161534(&prc, LOC17);
	{
		NIM_BOOL LOC20;
		LOC20 = 0;
		LOC20 = (((*(*m).initproc).options &(1<<((((NU8) 15))&31)))!=0);
		if (!(LOC20)) goto LA21;
		LOC20 = !((*m).framedeclared);
		LA21: ;
		if (!LOC20) goto LA22;
		(*m).framedeclared = NIM_TRUE;
		{
			Ropeobj161009* procname;
			Ropeobj161009* LOC28;
			Ropeobj161009* LOC29;
			if (!!((*m).preventstacktrace)) goto LA26;
			procname = makecstring_163449((*(*(*m).module).name).s);
			LOC28 = 0;
			LOC28 = quotedfilename_165354((*(*m).module).info);
			LOC29 = 0;
			LOC29 = initframe_489824((*m).initproc, procname, LOC28);
			add_161534(&prc, LOC29);
		}
		goto LA24;
		LA26: ;
		{
			TY460664 LOC31;
			Ropeobj161009* LOC32;
			memset((void*)LOC31, 0, sizeof(LOC31));
			LOC32 = 0;
			LOC32 = HEX25_162235(((NimStringDesc*) &TMP4299), LOC31, 0);
			add_161534(&prc, LOC32);
		}
		LA24: ;
	}
	LA22: ;
	LOC33 = 0;
	LOC33 = gensectionstart_457106(((NU8) 1));
	add_161534(&prc, LOC33);
	LOC34 = 0;
	LOC34 = s_456184((*m).preinitproc, ((NU8) 1));
	add_161534(&prc, (*LOC34));
	LOC35 = 0;
	LOC35 = s_456184((*m).initproc, ((NU8) 1));
	add_161534(&prc, (*LOC35));
	LOC36 = 0;
	LOC36 = s_456184((*m).postinitproc, ((NU8) 1));
	add_161534(&prc, (*LOC36));
	LOC37 = 0;
	LOC37 = gensectionend_457147(((NU8) 1));
	add_161534(&prc, LOC37);
	LOC38 = 0;
	LOC38 = gensectionstart_457106(((NU8) 2));
	add_161534(&prc, LOC38);
	LOC39 = 0;
	LOC39 = s_456184((*m).preinitproc, ((NU8) 2));
	add_161534(&prc, (*LOC39));
	LOC40 = 0;
	LOC40 = s_456184((*m).initproc, ((NU8) 2));
	add_161534(&prc, (*LOC40));
	LOC41 = 0;
	LOC41 = s_456184((*m).postinitproc, ((NU8) 2));
	add_161534(&prc, (*LOC41));
	LOC42 = 0;
	LOC42 = gensectionend_457147(((NU8) 2));
	add_161534(&prc, LOC42);
	{
		NIM_BOOL LOC45;
		Ropeobj161009* LOC49;
		LOC45 = 0;
		LOC45 = (((*(*m).initproc).options &(1<<((((NU8) 15))&31)))!=0);
		if (!(LOC45)) goto LA46;
		LOC45 = !((*m).preventstacktrace);
		LA46: ;
		if (!LOC45) goto LA47;
		LOC49 = 0;
		LOC49 = deinitframe_489840((*m).initproc);
		add_161534(&prc, LOC49);
	}
	LA47: ;
	LOC50 = 0;
	LOC50 = deinitgcframe_466016((*m).initproc);
	add_161534(&prc, LOC50);
	memset((void*)LOC51, 0, sizeof(LOC51));
	addf_162635(&prc, ((NimStringDesc*) &TMP4300), LOC51, 0);
	memset((void*)LOC52, 0, sizeof(LOC52));
	LOC52[0] = getdatinitname_492051((*m).module);
	addf_162635(&prc, ((NimStringDesc*) &TMP4294), LOC52, 1);
	{
		NU8 i_492186;
		NI res_492277;
		i_492186 = 0;
		res_492277 = ((NI) 12);
		{
			while (1) {
				Ropeobj161009* LOC56;
				Ropeobj161009* LOC57;
				if (!(res_492277 <= ((NI) 16))) goto LA55;
				i_492186 = ((NU8) (res_492277));
				LOC56 = 0;
				LOC56 = gensectionstart_457028(i_492186);
				add_161534(&prc, LOC56);
				add_161534(&prc, (*m).s[(i_492186)- 0]);
				LOC57 = 0;
				LOC57 = gensectionend_457069(i_492186);
				add_161534(&prc, LOC57);
				res_492277 += ((NI) 1);
			} LA55: ;
		}
	}
	memset((void*)LOC58, 0, sizeof(LOC58));
	addf_162635(&prc, ((NimStringDesc*) &TMP4300), LOC58, 0);
	add_161534(&(*m).s[(((NU8) 11))- 0], prc);
	{
		NIM_CHAR i_492237;
		Ropeobj161009* el_492238;
		TY456143 HEX3Atmp_492282;
		NIM_CHAR i_492285;
		i_492237 = 0;
		el_492238 = 0;
		memset((void*)HEX3Atmp_492282, 0, sizeof(HEX3Atmp_492282));
		memcpy((void*)HEX3Atmp_492282, (NIM_CONST void*)(*m).extensionloaders, sizeof(HEX3Atmp_492282));
		i_492285 = 48;
		{
			if (!((NU8)(((NIM_CHAR) (((NU8)(i_492285))))) <= (NU8)(57))) goto LA62;
			{
				while (1) {
					i_492237 = i_492285;
					el_492238 = HEX3Atmp_492282[(((NU8)(i_492285)))- 48];
					{
						Ropeobj161009* ex;
						TY490436 LOC70;
						if (!!((el_492238 == NIM_NIL))) goto LA68;
						memset((void*)LOC70, 0, sizeof(LOC70));
						LOC70[0] = rope_161407(((NI64) ((NI)(((NI) (((NU8)(i_492237)))) - ((NI) 48)))));
						LOC70[1] = el_492238;
						ex = HEX25_162235(((NimStringDesc*) &TMP4301), LOC70, 2);
						add_161534(&(*m).s[(((NU8) 11))- 0], ex);
					}
					LA68: ;
					{
						if (!((NU8)(57) <= (NU8)(((NIM_CHAR) (((NU8)(i_492285))))))) goto LA73;
						goto LA64;
					}
					LA73: ;
					i_492285 += ((NI) 1);
				}
			} LA64: ;
		}
		LA62: ;
	}
}

N_NIMCALL(void, finishtypedescriptions_463267)(Tcgen456038* m) {
	NI i;
	i = ((NI) 0);
	{
		while (1) {
			Ropeobj161009* LOC3;
			if (!(i < ((*m).typestack ? (*m).typestack->Sup.len : 0))) goto LA2;
			LOC3 = 0;
			LOC3 = gettypedesc_463073(m, (*m).typestack->data[i]);
			i += ((NI) 1);
		} LA2: ;
	}
}

N_NIMCALL(Ropeobj161009*, getcopyright_491483)(NimStringDesc* cfile) {
	Ropeobj161009* result;
	result = 0;
	{
		TY161572 LOC5;
		if (!((gglobaloptions_154128 &(1<<((((NU8) 4))&31)))!=0)) goto LA3;
		memset((void*)LOC5, 0, sizeof(LOC5));
		LOC5[0] = rope_161320(((NimStringDesc*) &TMP4303));
		result = HEX25_162235(((NimStringDesc*) &TMP4302), LOC5, 1);
	}
	goto LA1;
	LA3: ;
	{
		TY463876 LOC7;
		NimStringDesc* LOC8;
		memset((void*)LOC7, 0, sizeof(LOC7));
		LOC7[0] = rope_161320(((NimStringDesc*) &TMP4303));
		LOC7[1] = rope_161320(Os_159070[(targetos_159602)- 1].Field0);
		LOC7[2] = rope_161320(Cpu_159496[(targetcpu_159600)- 1].Field0);
		LOC7[3] = rope_161320(Cc_170434[(ccompiler_170455)- 1].Field0);
		LOC8 = 0;
		LOC8 = getcompilecfilecmd_171336(cfile, NIM_FALSE);
		LOC7[4] = rope_161320(LOC8);
		result = HEX25_162235(((NimStringDesc*) &TMP4304), LOC7, 5);
	}
	LA1: ;
	return result;
}

static N_INLINE(void, addinttypes_491471)(Ropeobj161009** result) {
	TY161572 LOC1;
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = rope_161407(((NI64) (Cpu_159496[(targetcpu_159600)- 1].Field1)));
	addf_162635(result, ((NimStringDesc*) &TMP4305), LOC1, 1);
}

N_NIMCALL(Ropeobj161009*, getfileheader_491507)(NimStringDesc* cfile) {
	Ropeobj161009* result;
	result = 0;
	result = getcopyright_491483(cfile);
	addinttypes_491471(&result);
	return result;
}

N_NIMCALL(void, generateheaders_489753)(Tcgen456038* m) {
	NimStringDesc* LOC1;
	Tstrentry130024* it;
	LOC1 = 0;
	LOC1 = rawNewString(tnl_159626->Sup.len + tnl_159626->Sup.len + 20);
appendString(LOC1, tnl_159626);
appendString(LOC1, ((NimStringDesc*) &TMP4313));
appendString(LOC1, tnl_159626);
	add_161545(&(*m).s[(((NU8) 1))- 0], LOC1);
	it = ((Tstrentry130024*) ((*m).headerfiles.head));
	{
		while (1) {
			if (!!((it == NIM_NIL))) goto LA3;
			{
				TY161572 LOC8;
				if (!!((((NU8)((*it).data->data[((NI) 0)])) == ((NU8)(34)) || ((NU8)((*it).data->data[((NI) 0)])) == ((NU8)(60))))) goto LA6;
				memset((void*)LOC8, 0, sizeof(LOC8));
				LOC8[0] = rope_161320((*it).data);
				addf_162635(&(*m).s[(((NU8) 1))- 0], ((NimStringDesc*) &TMP4314), LOC8, 1);
			}
			goto LA4;
			LA6: ;
			{
				TY161572 LOC10;
				memset((void*)LOC10, 0, sizeof(LOC10));
				LOC10[0] = rope_161320((*it).data);
				addf_162635(&(*m).s[(((NU8) 1))- 0], ((NimStringDesc*) &TMP4315), LOC10, 1);
			}
			LA4: ;
			it = ((Tstrentry130024*) ((*it).Sup.next));
		} LA3: ;
	}
}

N_NIMCALL(void, generatethreadlocalstorage_466315)(Tcgen456038* m) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		TY161572 LOC13;
		LOC3 = 0;
		LOC3 = !((nimtv_466251 == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = (*m).usesthreadvars;
		if (LOC5) goto LA6;
		LOC5 = (((*(*m).module).flags &(1<<((((NU8) 12))&31)))!=0);
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA7;
		{
			Ttype190849* t_466350;
			NI i_466357;
			NI L_466359;
			t_466350 = 0;
			i_466357 = ((NI) 0);
			L_466359 = (nimtvdeps_466269 ? nimtvdeps_466269->Sup.len : 0);
			{
				while (1) {
					Ropeobj161009* LOC12;
					if (!(i_466357 < L_466359)) goto LA11;
					t_466350 = nimtvdeps_466269->data[i_466357];
					LOC12 = 0;
					LOC12 = gettypedesc_463073(m, t_466350);
					i_466357 += ((NI) 1);
				} LA11: ;
			}
		}
		memset((void*)LOC13, 0, sizeof(LOC13));
		LOC13[0] = nimtv_466251;
		addf_162635(&(*m).s[(((NU8) 4))- 0], ((NimStringDesc*) &TMP4316), LOC13, 1);
	}
	LA7: ;
}

N_NIMCALL(Ropeobj161009*, genmodule_492310)(Tcgen456038* m, NimStringDesc* cfile) {
	Ropeobj161009* result;
	Ropeobj161009* LOC1;
	result = 0;
	result = getfileheader_491507(cfile);
	LOC1 = 0;
	LOC1 = genmergeinfo_457285(m);
	add_161534(&result, LOC1);
	generateheaders_489753(m);
	generatethreadlocalstorage_466315(m);
	{
		NU8 i_492423;
		NI res_492431;
		i_492423 = 0;
		res_492431 = ((NI) 1);
		{
			while (1) {
				Ropeobj161009* LOC5;
				Ropeobj161009* LOC6;
				if (!(res_492431 <= ((NI) 10))) goto LA4;
				i_492423 = ((NU8) (res_492431));
				LOC5 = 0;
				LOC5 = gensectionstart_457028(i_492423);
				add_161534(&result, LOC5);
				add_161534(&result, (*m).s[(i_492423)- 0]);
				LOC6 = 0;
				LOC6 = gensectionend_457069(i_492423);
				add_161534(&result, LOC6);
				res_492431 += ((NI) 1);
			} LA4: ;
		}
	}
	add_161534(&result, (*m).s[(((NU8) 11))- 0]);
	return result;
}

N_NIMCALL(void, updatecachedmodule_493619)(Tcgen456038* m) {
	NimStringDesc* cfile;
	NimStringDesc* cfilenoext;
	cfile = getcfile_493072(m);
	cfilenoext = noschangeFileExt(cfile, ((NimStringDesc*) &TMP3940));
	{
		NIM_BOOL LOC3;
		Ropeobj161009* code;
		LOC3 = 0;
		LOC3 = mergerequired_458106(m);
		if (!(LOC3)) goto LA4;
		LOC3 = !((((*(*m).module).flags &(1<<((((NU8) 12))&31)))!=0));
		LA4: ;
		if (!LOC3) goto LA5;
		mergefiles_458474(cfile, m);
		geninitcode_492110(m);
		finishtypedescriptions_463267(m);
		code = genmodule_492310(m, cfile);
		writerope_162105(code, cfile, NIM_FALSE);
		addfiletocompile_170933(cfile);
	}
	LA5: ;
	addfiletolink_170954(cfilenoext);
}

N_NIMCALL(void, generatethreadvarssize_466372)(Tcgen456038* m) {
	{
		NimStringDesc* externc;
		TY161572 LOC12;
		if (!!((nimtv_466251 == NIM_NIL))) goto LA3;
		{
			NIM_BOOL LOC7;
			LOC7 = 0;
			LOC7 = !((gcmd_154130 == ((NU8) 2)));
			if (!(LOC7)) goto LA8;
			LOC7 = (((*(*m).module).flags &(1<<((((NU8) 27))&31)))!=0);
			LA8: ;
			if (!LOC7) goto LA9;
			externc = copyString(((NimStringDesc*) &TMP4318));
		}
		goto LA5;
		LA9: ;
		{
			externc = copyString(((NimStringDesc*) &TMP3940));
		}
		LA5: ;
		memset((void*)LOC12, 0, sizeof(LOC12));
		LOC12[0] = rope_161320(externc);
		addf_162635(&(*m).s[(((NU8) 10))- 0], ((NimStringDesc*) &TMP4319), LOC12, 1);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, shouldrecompile_493433)(Ropeobj161009* code, NimStringDesc* cfile) {
	NIM_BOOL result;
{	result = 0;
	result = NIM_TRUE;
	{
		NimStringDesc* objfile;
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 1))&31)))!=0))) goto LA3;
		objfile = toobjfile_170923(cfile);
		{
			NIM_BOOL LOC7;
			LOC7 = 0;
			LOC7 = writeropeifnotequal_162930(code, cfile);
			if (!LOC7) goto LA8;
			goto BeforeRet;
		}
		LA8: ;
		{
			NIM_BOOL LOC12;
			LOC12 = 0;
			LOC12 = nosexistsFile(objfile);
			if (!(LOC12)) goto LA13;
			LOC12 = nosfileNewer(objfile, cfile);
			LA13: ;
			if (!LOC12) goto LA14;
			result = NIM_FALSE;
		}
		LA14: ;
	}
	goto LA1;
	LA3: ;
	{
		writerope_162105(code, cfile, NIM_FALSE);
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writemodule_493455)(Tcgen456038* m, NIM_BOOL pending) {
	NimStringDesc* cfile;
	NimStringDesc* cfilenoext;
	cfile = getcfile_493072(m);
	cfilenoext = noschangeFileExt(cfile, ((NimStringDesc*) &TMP3940));
	{
		NIM_BOOL LOC3;
		Ropeobj161009* code;
		LOC3 = 0;
		LOC3 = !((*m).Sup.fromcache);
		if (LOC3) goto LA4;
		LOC3 = ((gglobaloptions_154128 &(1<<((((NU8) 1))&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		geninitcode_492110(m);
		finishtypedescriptions_463267(m);
		{
			if (!(((*(*m).module).flags &(1<<((((NU8) 12))&31)))!=0)) goto LA9;
			add_161534(&(*m).s[(((NU8) 7))- 0], mainmodprocs_456150);
			generatethreadvarssize_466372(m);
		}
		LA9: ;
		code = genmodule_492310(m, cfile);
		{
			NIM_BOOL LOC13;
			LOC13 = 0;
			LOC13 = shouldrecompile_493433(code, cfile);
			if (!LOC13) goto LA14;
			addfiletocompile_170933(cfile);
		}
		LA14: ;
	}
	goto LA1;
	LA5: ;
	{
		NIM_BOOL LOC17;
		NIM_BOOL LOC18;
		Ropeobj161009* code;
		LOC17 = 0;
		LOC18 = 0;
		LOC18 = pending;
		if (!(LOC18)) goto LA19;
		LOC18 = mergerequired_458106(m);
		LA19: ;
		LOC17 = LOC18;
		if (!(LOC17)) goto LA20;
		LOC17 = !((((*(*m).module).flags &(1<<((((NU8) 12))&31)))!=0));
		LA20: ;
		if (!LOC17) goto LA21;
		mergefiles_458474(cfile, m);
		geninitcode_492110(m);
		finishtypedescriptions_463267(m);
		code = genmodule_492310(m, cfile);
		writerope_162105(code, cfile, NIM_FALSE);
		addfiletocompile_170933(cfile);
	}
	goto LA1;
	LA21: ;
	{
		NimStringDesc* LOC24;
		NIM_BOOL LOC25;
		LOC24 = 0;
		LOC24 = toobjfile_170923(cfilenoext);
		LOC25 = 0;
		LOC25 = nosexistsFile(LOC24);
		if (!!(LOC25)) goto LA26;
		addfiletocompile_170933(cfile);
	}
	goto LA1;
	LA26: ;
	LA1: ;
	addfiletolink_170954(cfilenoext);
}

N_NIMCALL(void, writeheader_493004)(Tcgen456038* m) {
	Ropeobj161009* result;
	Ropeobj161009* guard;
	TY161572 LOC1;
	TY119589 LOC2;
	TY161572 LOC3;
	TY460664 LOC13;
	TY161572 LOC14;
	result = getcopyright_491483((*m).filename);
	memset((void*)LOC1, 0, sizeof(LOC1));
	memset((void*)(&LOC2), 0, sizeof(LOC2));
	nossplitFile((*m).filename, (&LOC2));
	LOC1[0] = rope_161320(LOC2.Field1);
	guard = HEX25_162235(((NimStringDesc*) &TMP4330), LOC1, 1);
	memset((void*)LOC3, 0, sizeof(LOC3));
	LOC3[0] = guard;
	addf_162635(&result, ((NimStringDesc*) &TMP4331), LOC3, 1);
	addinttypes_491471(&result);
	generateheaders_489753(m);
	generatethreadlocalstorage_466315(m);
	{
		NU8 i_493027;
		NI res_493053;
		i_493027 = 0;
		res_493053 = ((NI) 1);
		{
			while (1) {
				Ropeobj161009* LOC7;
				Ropeobj161009* LOC8;
				if (!(res_493053 <= ((NI) 10))) goto LA6;
				i_493027 = ((NU8) (res_493053));
				LOC7 = 0;
				LOC7 = gensectionstart_457028(i_493027);
				add_161534(&result, LOC7);
				add_161534(&result, (*m).s[(i_493027)- 0]);
				LOC8 = 0;
				LOC8 = gensectionend_457069(i_493027);
				add_161534(&result, LOC8);
				res_493053 += ((NI) 1);
			} LA6: ;
		}
	}
	add_161534(&result, (*m).s[(((NU8) 11))- 0]);
	{
		if (!((gglobaloptions_154128 &(1<<((((NU8) 8))&31)))!=0)) goto LA11;
		add_161545(&result, ((NimStringDesc*) &TMP3589));
	}
	LA11: ;
	memset((void*)LOC13, 0, sizeof(LOC13));
	addf_162635(&result, ((NimStringDesc*) &TMP4332), LOC13, 0);
	memset((void*)LOC14, 0, sizeof(LOC14));
	LOC14[0] = guard;
	addf_162635(&result, ((NimStringDesc*) &TMP4333), LOC14, 1);
	writerope_162105(result, (*m).filename, NIM_FALSE);
}

N_NIMCALL(void, cgenwritemodules_493720)(void) {
	{
		if (!!((generatedheader_459201 == NIM_NIL))) goto LA3;
		finishmodule_493232(generatedheader_459201);
	}
	LA3: ;
	{
		while (1) {
			if (!(((NI) 0) < gforwardedprocscounter_456173)) goto LA6;
			{
				Tcgen456038* m_493734;
				m_493734 = 0;
				{
					NI i_493753;
					NI HEX3Atmp_493755;
					NI res_493757;
					i_493753 = 0;
					HEX3Atmp_493755 = 0;
					HEX3Atmp_493755 = (gmodules_456172 ? (gmodules_456172->Sup.len-1) : -1);
					res_493757 = ((NI) 0);
					{
						while (1) {
							if (!(res_493757 <= HEX3Atmp_493755)) goto LA10;
							i_493753 = res_493757;
							{
								if (!!((gmodules_456172->data[i_493753] == NIM_NIL))) goto LA13;
								m_493734 = gmodules_456172->data[i_493753];
								{
									if (!!((*m_493734).Sup.fromcache)) goto LA17;
									finishmodule_493232(m_493734);
								}
								LA17: ;
							}
							LA13: ;
							res_493757 += ((NI) 1);
						} LA10: ;
					}
				}
			}
		} LA6: ;
	}
	{
		Tcgen456038* m_493735;
		m_493735 = 0;
		{
			NI i_493764;
			NI HEX3Atmp_493766;
			NI res_493768;
			i_493764 = 0;
			HEX3Atmp_493766 = 0;
			HEX3Atmp_493766 = (gmodules_456172 ? (gmodules_456172->Sup.len-1) : -1);
			res_493768 = ((NI) 0);
			{
				while (1) {
					if (!(res_493768 <= HEX3Atmp_493766)) goto LA22;
					i_493764 = res_493768;
					{
						if (!!((gmodules_456172->data[i_493764] == NIM_NIL))) goto LA25;
						m_493735 = gmodules_456172->data[i_493764];
						{
							if (!(*m_493735).Sup.fromcache) goto LA29;
							updatecachedmodule_493619(m_493735);
						}
						goto LA27;
						LA29: ;
						{
							writemodule_493455(m_493735, NIM_TRUE);
						}
						LA27: ;
					}
					LA25: ;
					res_493768 += ((NI) 1);
				} LA22: ;
			}
		}
	}
	writemapping_171867(gmapping_456154);
	{
		if (!!((generatedheader_459201 == NIM_NIL))) goto LA34;
		writeheader_493004(generatedheader_459201);
	}
	LA34: ;
}

N_NIMCALL(void, nullify_492652)(Ropeobj161009** arr) {
	{
		NU8 i_492668;
		NI res_492672;
		i_492668 = 0;
		res_492672 = ((NI) 0);
		{
			while (1) {
				if (!(res_492672 <= ((NI) 17))) goto LA3;
				i_492668 = ((NU8) (res_492672));
				unsureAsgnRef((void**) (&arr[(i_492668)- 0]), NIM_NIL);
				res_492672 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(void, nullify_492689)(Ropeobj161009** arr) {
	{
		NIM_CHAR i_492823;
		NI res_492827;
		i_492823 = 0;
		res_492827 = ((NI) 48);
		{
			while (1) {
				if (!(res_492827 <= ((NI) 57))) goto LA3;
				i_492823 = ((NIM_CHAR) (res_492827));
				unsureAsgnRef((void**) (&arr[(((NU8)(i_492823)))- 48]), NIM_NIL);
				res_492827 += ((NI) 1);
			} LA3: ;
		}
	}
}

N_NIMCALL(void, resetmodule_492602)(Tcgen456038* m) {
	initlinkedlist_130043((&(*m).headerfiles));
	initintset_187927((&(*m).declaredprotos));
	initidtable_194057((&(*m).forwtypecache));
	asgnRef((void**) (&(*m).initproc), newproc_456229(NIM_NIL, m));
	(*(*m).initproc).options = initprocoptions_492471(m);
	asgnRef((void**) (&(*m).preinitproc), newpreinitproc_492449(m));
	asgnRef((void**) (&(*m).postinitproc), newpostinitproc_492460(m));
	initnodetable_194147((&(*m).datacache));
	if ((*m).typestack) nimGCunrefNoCycle((*m).typestack);
	(*m).typestack = (Ttypeseq190845*) newSeqRC1((&NTI190845), 0);
	if ((*m).forwardedprocs) nimGCunrefNoCycle((*m).forwardedprocs);
	(*m).forwardedprocs = (Tsymseq190815*) newSeqRC1((&NTI190815), 0);
	asgnRefNoCycle((void**) (&(*m).typenodesname), gettempname_461002());
	asgnRefNoCycle((void**) (&(*m).nimtypesname), gettempname_461002());
	(*m).preventstacktrace = (((*(*m).module).flags &(1<<((((NU8) 13))&31)))!=0);
	nullify_492652((*m).s);
	(*m).usesthreadvars = NIM_FALSE;
	(*m).typenodes = ((NI) 0);
	(*m).nimtypes = ((NI) 0);
	nullify_492689((*m).extensionloaders);
	(*m).Sup.fromcache = NIM_TRUE;
}

N_NIMCALL(void, resetcgenmodules_492850)(void) {
	{
		Tcgen456038* m_492852;
		m_492852 = 0;
		{
			NI i_492857;
			NI HEX3Atmp_492859;
			NI res_492861;
			i_492857 = 0;
			HEX3Atmp_492859 = 0;
			HEX3Atmp_492859 = (gmodules_456172 ? (gmodules_456172->Sup.len-1) : -1);
			res_492861 = ((NI) 0);
			{
				while (1) {
					if (!(res_492861 <= HEX3Atmp_492859)) goto LA4;
					i_492857 = res_492861;
					{
						if (!!((gmodules_456172->data[i_492857] == NIM_NIL))) goto LA7;
						m_492852 = gmodules_456172->data[i_492857];
						resetmodule_492602(m_492852);
					}
					LA7: ;
					res_492861 += ((NI) 1);
				} LA4: ;
			}
		}
	}
}
NIM_EXTERNC N_NOINLINE(void, nimsrc_cgenInit)(void) {
	asgnRefNoCycle((void**) (&indent_459921), rope_161320(((NimStringDesc*) &TMP1060)));
	if (nimtvdeps_466269) nimGCunrefNoCycle(nimtvdeps_466269);
	nimtvdeps_466269 = (Ttypeseq190845*) newSeqRC1((&NTI190845), 0);
	chckNil((void*)(&nimtvdeclared_466270));
	genericReset((void*)(&nimtvdeclared_466270), (&NTI187056));
	initintset_187927((&nimtvdeclared_466270));
	breakpointid_477670 = ((NI) 0);
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_cgenDatInit)(void) {
}

