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

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
#undef linux
typedef struct TY_shxop0zPIs5Ec3k71aCLuQ TY_shxop0zPIs5Ec3k71aCLuQ;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell_1zcF9cV8XIAtbN8h5HRUB8g Cell_1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct Cellseq_Axo1XVm9aaQueTOldv8le5w Cellseq_Axo1XVm9aaQueTOldv8le5w;
typedef struct Gcheap_1TRH1TZMaVZTnLNcIHuNFQ Gcheap_1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct Gcstack_7fytPA5bBsob6See21YMRA Gcstack_7fytPA5bBsob6See21YMRA;
typedef struct Memregion_x81NhDv59b8ercDZ9bi85jyg Memregion_x81NhDv59b8ercDZ9bi85jyg;
typedef struct Smallchunk_tXn60W2f8h3jgAYdEmy5NQ Smallchunk_tXn60W2f8h3jgAYdEmy5NQ;
typedef struct Llchunk_XsENErzHIZV9bhvyJx56wGw Llchunk_XsENErzHIZV9bhvyJx56wGw;
typedef struct Bigchunk_Rv9c70Uhp2TytkX7eH78qEg Bigchunk_Rv9c70Uhp2TytkX7eH78qEg;
typedef struct Intset_EZObFrE3NC9bIb3YMkY9crZA Intset_EZObFrE3NC9bIb3YMkY9crZA;
typedef struct Trunk_W0r8S0Y3UGke6T9bIUWnnuw Trunk_W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct Avlnode_IaqjtwKhxLEpvDS9bct9blEw Avlnode_IaqjtwKhxLEpvDS9bct9blEw;
typedef struct Gcstat_0RwLoVBHZPfUAcLczmfQAg Gcstat_0RwLoVBHZPfUAcLczmfQAg;
typedef struct Cellset_jG87P0AI9aZtss9ccTYBIISQ Cellset_jG87P0AI9aZtss9ccTYBIISQ;
typedef struct Pagedesc_fublkgIY4LG3mT51LU2WHg Pagedesc_fublkgIY4LG3mT51LU2WHg;
typedef struct NimStringDesc NimStringDesc;
typedef struct IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw;
typedef struct Tlexer_IOWqYAjEw106AHiXcZcUGg Tlexer_IOWqYAjEw106AHiXcZcUGg;
typedef struct Tbaselexer_z9a7O76kH1tJ9aXJ3h2MdEzA Tbaselexer_z9a7O76kH1tJ9aXJ3h2MdEzA;
typedef struct TNimObject TNimObject;
typedef struct Tllstream_IHsOGFu33dIY69a9bLlFHlHw Tllstream_IHsOGFu33dIY69a9bLlFHlHw;
typedef struct Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw;
typedef struct Ttoken_kLaEEPwLj8cag79cbYQIkHQ Ttoken_kLaEEPwLj8cag79cbYQIkHQ;
typedef struct Tident_4umxGerWTHGPwUms7Yqu3g Tident_4umxGerWTHGPwUms7Yqu3g;
typedef struct Tidobj_raN9cHVgzmvaXisezY9aGg9cg Tidobj_raN9cHVgzmvaXisezY9aGg9cg;
typedef struct Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw;
typedef struct Basechunk_Sdq7WpT6qAH858F5ZEdG3w Basechunk_Sdq7WpT6qAH858F5ZEdG3w;
typedef struct Freecell_u6M5LHprqzkn9axr04yg9bGQ Freecell_u6M5LHprqzkn9axr04yg9bGQ;
typedef struct TY_4eQHGndY6XBYpFOH09apV8Q TY_4eQHGndY6XBYpFOH09apV8Q;
typedef struct TY_UV3llMMYFckfui8YMBuUZA TY_UV3llMMYFckfui8YMBuUZA;
struct  TGenericSeq  {
NI len;
NI reserved;
};
typedef NU8 Tnimkind_jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 Tnimtypeflag_v8QUszD1sWlSIWZz7mC4bQ_Set;
typedef N_NIMCALL_PTR(void, TY_ojoeKfW4VYIm36I9cpDTQIg) (void* p0, NI op0);
typedef N_NIMCALL_PTR(void*, TY_WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p0);
struct  TNimType  {
NI size;
Tnimkind_jIBKr1ejBgsfM33Kxw4j7A kind;
Tnimtypeflag_v8QUszD1sWlSIWZz7mC4bQ_Set flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY_ojoeKfW4VYIm36I9cpDTQIg marker;
TY_WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
typedef NU8 Tnimnodekind_unfNsxrcATrufDZmpBq4HQ;
struct  TNimNode  {
Tnimnodekind_unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef N_NIMCALL_PTR(void, TY_T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
struct  Cell_1zcF9cV8XIAtbN8h5HRUB8g  {
NI refcount;
TNimType* typ;
};
struct  Cellseq_Axo1XVm9aaQueTOldv8le5w  {
NI len;
NI cap;
Cell_1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef Smallchunk_tXn60W2f8h3jgAYdEmy5NQ* TY_SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef Trunk_W0r8S0Y3UGke6T9bIUWnnuw* TY_lh2A89ahMmYg9bCmpVaplLbA[256];
struct  Intset_EZObFrE3NC9bIb3YMkY9crZA  {
TY_lh2A89ahMmYg9bCmpVaplLbA data;
};
struct  Memregion_x81NhDv59b8ercDZ9bi85jyg  {
NI minlargeobj;
NI maxlargeobj;
TY_SiRwrEKZdLgxqz9a9aoVBglg freesmallchunks;
Llchunk_XsENErzHIZV9bhvyJx56wGw* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk_Rv9c70Uhp2TytkX7eH78qEg* freechunkslist;
Intset_EZObFrE3NC9bIb3YMkY9crZA chunkstarts;
Avlnode_IaqjtwKhxLEpvDS9bct9blEw* root;
Avlnode_IaqjtwKhxLEpvDS9bct9blEw* deleted;
Avlnode_IaqjtwKhxLEpvDS9bct9blEw* last;
Avlnode_IaqjtwKhxLEpvDS9bct9blEw* freeavlnodes;
NIM_BOOL locked;
NIM_BOOL blockchunksizeincrease;
NI nextchunksize;
};
struct  Gcstat_0RwLoVBHZPfUAcLczmfQAg  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Cellset_jG87P0AI9aZtss9ccTYBIISQ  {
NI counter;
NI max;
Pagedesc_fublkgIY4LG3mT51LU2WHg* head;
Pagedesc_fublkgIY4LG3mT51LU2WHg** data;
};
struct  Gcheap_1TRH1TZMaVZTnLNcIHuNFQ  {
Gcstack_7fytPA5bBsob6See21YMRA* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq_Axo1XVm9aaQueTOldv8le5w zct;
Cellseq_Axo1XVm9aaQueTOldv8le5w decstack;
Cellseq_Axo1XVm9aaQueTOldv8le5w tempstack;
NI recgclock;
Memregion_x81NhDv59b8ercDZ9bi85jyg region;
Gcstat_0RwLoVBHZPfUAcLczmfQAg stat;
Cellset_jG87P0AI9aZtss9ccTYBIISQ marked;
Cellseq_Axo1XVm9aaQueTOldv8le5w additionalroots;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU64 Tglobaloption_RAfAEZqjnKMDumgyKKc1qw_Set;
typedef NU8 Tglobaloption_RAfAEZqjnKMDumgyKKc1qw;
struct  TNimObject  {
TNimType* m_type;
};
struct  Tbaselexer_z9a7O76kH1tJ9aXJ3h2MdEzA  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream_IHsOGFu33dIY69a9bLlFHlHw* stream;
NI linenumber;
NI sentinel;
NI linestart;
};
typedef NU16 Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw;
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw info0, Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw msg0, NimStringDesc* arg0, void* ClEnv);
void* ClEnv;
} TY_l9buWVPY1qenw5uCj2k2Uqg;
struct  Tlexer_IOWqYAjEw106AHiXcZcUGg  {
  Tbaselexer_z9a7O76kH1tJ9aXJ3h2MdEzA Sup;
NI32 fileidx;
NI indentahead;
NI currlineindent;
NIM_BOOL strongspaces;
NIM_BOOL allowtabs;
TY_l9buWVPY1qenw5uCj2k2Uqg errorhandler;
IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* cache;
};
typedef NU8 Ttoktype_vw8YkgaVtNadqP8v5OpXKA;
typedef NU8 Tnumericalbase_9cbxR9czWgoXwHHSzHtd9aV7Q;
struct  Ttoken_kLaEEPwLj8cag79cbYQIkHQ  {
Ttoktype_vw8YkgaVtNadqP8v5OpXKA toktype;
NI indent;
Tident_4umxGerWTHGPwUms7Yqu3g* ident;
NI64 inumber;
NF fnumber;
Tnumericalbase_9cbxR9czWgoXwHHSzHtd9aV7Q base;
NI8 strongspacea;
NI8 strongspaceb;
NimStringDesc* literal;
NI line;
NI col;
};
typedef NU8 Filemode_fVUBHvW79bXUw1j55Oo9avSQ;
struct  Tidobj_raN9cHVgzmvaXisezY9aGg9cg  {
  TNimObject Sup;
NI id;
};
struct  Tident_4umxGerWTHGPwUms7Yqu3g  {
  Tidobj_raN9cHVgzmvaXisezY9aGg9cg Sup;
NimStringDesc* s;
Tident_4umxGerWTHGPwUms7Yqu3g* next;
NI h;
};
typedef NU16 Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw;
typedef NU8 Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw;
typedef NU8 Msgflag_BzRTaQ6LrPDZKEKt9bswkOQ_Set;
typedef NU8 Formatflag_F4vlKAV4d0Kt9aXmu9cVNBrg_Set;
struct  Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw  {
NI16 line;
NI16 col;
NI32 fileindex;
};
typedef NU8 Tcmdlinepass_IiBn9cB6WYIMDHOT44O82wA;
typedef NimStringDesc* TY_24KAM9afIUgUaqBaEBB6r9bg[3];
struct  Gcstack_7fytPA5bBsob6See21YMRA  {
Gcstack_7fytPA5bBsob6See21YMRA* prev;
Gcstack_7fytPA5bBsob6See21YMRA* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Basechunk_Sdq7WpT6qAH858F5ZEdG3w  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk_tXn60W2f8h3jgAYdEmy5NQ  {
  Basechunk_Sdq7WpT6qAH858F5ZEdG3w Sup;
Smallchunk_tXn60W2f8h3jgAYdEmy5NQ* next;
Smallchunk_tXn60W2f8h3jgAYdEmy5NQ* prev;
Freecell_u6M5LHprqzkn9axr04yg9bGQ* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk_XsENErzHIZV9bhvyJx56wGw  {
NI size;
NI acc;
Llchunk_XsENErzHIZV9bhvyJx56wGw* next;
};
struct  Bigchunk_Rv9c70Uhp2TytkX7eH78qEg  {
  Basechunk_Sdq7WpT6qAH858F5ZEdG3w Sup;
Bigchunk_Rv9c70Uhp2TytkX7eH78qEg* next;
Bigchunk_Rv9c70Uhp2TytkX7eH78qEg* prev;
NI align;
NF data;
};
typedef NI TY_9agrCtWKhCnWWMJpKKugJag[16];
struct  Trunk_W0r8S0Y3UGke6T9bIUWnnuw  {
Trunk_W0r8S0Y3UGke6T9bIUWnnuw* next;
NI key;
TY_9agrCtWKhCnWWMJpKKugJag bits;
};
typedef Avlnode_IaqjtwKhxLEpvDS9bct9blEw* TY_0aOLqZchNi8nWtMTi8ND8w[2];
struct  Avlnode_IaqjtwKhxLEpvDS9bct9blEw  {
TY_0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperbound;
NI level;
};
struct  Pagedesc_fublkgIY4LG3mT51LU2WHg  {
Pagedesc_fublkgIY4LG3mT51LU2WHg* next;
NI key;
TY_9agrCtWKhCnWWMJpKKugJag bits;
};
typedef Tident_4umxGerWTHGPwUms7Yqu3g* TY_CBfZt49asUfAsBVM7a3Rc9cw[8192];
struct  IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw  {
TY_CBfZt49asUfAsBVM7a3Rc9cw buckets;
NI wordcounter;
Tident_4umxGerWTHGPwUms7Yqu3g* idanon;
Tident_4umxGerWTHGPwUms7Yqu3g* iddelegator;
Tident_4umxGerWTHGPwUms7Yqu3g* emptyident;
};
typedef NU8 Tllstreamkind_jVcKY16LbOamXE9bxXUD6pQ;
struct  Tllstream_IHsOGFu33dIY69a9bLlFHlHw  {
  TNimObject Sup;
Tllstreamkind_jVcKY16LbOamXE9bxXUD6pQ kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
typedef NU8 Stringtablemode_G9c4wVDFIzf0xHmQvxso9a9cQ;
struct  Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw  {
  TNimObject Sup;
NI counter;
TY_4eQHGndY6XBYpFOH09apV8Q* data;
Stringtablemode_G9c4wVDFIzf0xHmQvxso9a9cQ mode;
};
struct  Freecell_u6M5LHprqzkn9axr04yg9bGQ  {
Freecell_u6M5LHprqzkn9axr04yg9bGQ* next;
NI zerofield;
};
struct TY_UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct TY_shxop0zPIs5Ec3k71aCLuQ {
  TGenericSeq Sup;
  NIM_BOOL data[SEQ_DECL_SIZE];
};
struct TY_4eQHGndY6XBYpFOH09apV8Q {
  TGenericSeq Sup;
  TY_UV3llMMYFckfui8YMBuUZA data[SEQ_DECL_SIZE];
};
static N_NIMCALL(void, Marker_TY_shxop0zPIs5Ec3k71aCLuQ)(void* p, NI op);
N_NIMCALL(void, nimGCvisit)(void* d0, NI op0);
static N_NIMCALL(void, T_6P25SLSLz0kOcUlvm51BiA_2)(void);
N_NIMCALL(void, nimRegisterGlobalMarker)(TY_T4eqaYlFJYZUv9aG9b1TV0bQ markerproc0);
static N_INLINE(void, nimGCunrefNoCycle)(void* p0);
static N_INLINE(Cell_1zcF9cV8XIAtbN8h5HRUB8g*, usrtocell_yB9aH5WIlwd0xkYrcdPeXrQsystem)(void* usr0);
static N_INLINE(void, rtladdzct_MV4BBk6J1qu70IbBxwEn4w_2system)(Cell_1zcF9cV8XIAtbN8h5HRUB8g* c0);
N_NOINLINE(void, addzct_fCDI7oO1NNVXXURtxSzsRw)(Cellseq_Axo1XVm9aaQueTOldv8le5w* s0, Cell_1zcF9cV8XIAtbN8h5HRUB8g* c0);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ0, NI len0);
N_NIMCALL(void, loadconfigs_FECraGk0JdQ9bewar6pXUkA)(NimStringDesc* cfg0, IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* cache0);
N_NIMCALL(void, setdefaultlibpath_HTBJ7VvmwtM2mD6WCLBTew_2)(void);
N_NIMCALL(void, readconfigfile_iISylA6Y9bl8qXf4SMLPJEg)(NimStringDesc* filename0, IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* cache0);
N_NIMCALL(Tllstream_IHsOGFu33dIY69a9bLlFHlHw*, llstreamopen_TMcHzC3C639c0ccC0wtKA2w)(NimStringDesc* filename0, Filemode_fVUBHvW79bXUw1j55Oo9avSQ mode0);
N_NIMCALL(void, inittoken_FTh5b29clR9cRU4ec2Lu61rA)(Ttoken_kLaEEPwLj8cag79cbYQIkHQ* L0);
N_NIMCALL(void, openlexer_eKdW81U1nNo7kyJQODmbcA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* lex0, NimStringDesc* filename0, Tllstream_IHsOGFu33dIY69a9bLlFHlHw* inputstream0, IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* cache0);
N_NIMCALL(void, conftok_3v87WA2oIx6kCzOIguDxVA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(void, ppgettok_3v87WA2oIx6kCzOIguDxVA_2)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(void, rawgettok_HUKK9cILkwTBvMCbGFTZPSA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a0, NimStringDesc* b0);
static N_INLINE(NIM_BOOL, equalmem_DCrUjdaMvFDHaR1hs7sQGwropes)(void* a0, void* b0, NI size0);
N_NIMCALL(void, parsedirective_3v87WA2oIx6kCzOIguDxVA_3)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw, whichkeyword_WhYAAh6vF1PoyH6Hsspu4Q)(Tident_4umxGerWTHGPwUms7Yqu3g* id0);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq0, NI elemsize0, NI newlen0);
N_NIMCALL(NIM_BOOL, evalppif_1Z9crMmSCb9cE3bh59bzP01NA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(NIM_BOOL, parseexpr_1Z9crMmSCb9cE3bh59bzP01NA_2)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(NIM_BOOL, parseandexpr_1Z9crMmSCb9cE3bh59bzP01NA_3)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(NIM_BOOL, parseatom_1Z9crMmSCb9cE3bh59bzP01NA_4)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(void, lexmessage_moxcy135mexMtB8c1DXBvA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw msg0, NimStringDesc* arg0);
N_NIMCALL(NIM_BOOL, isdefined_rrIlGPFUdgeaN36zhjolNA)(Tident_4umxGerWTHGPwUms7Yqu3g* symbol0);
N_NIMCALL(void, jumptodirective_Brjr1mAvMYRMOrcKXckciA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0, Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw dest0);
N_NIMCALL(void, doelse_3v87WA2oIx6kCzOIguDxVA_4)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(void, doelif_3v87WA2oIx6kCzOIguDxVA_5)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(void, doend_3v87WA2oIx6kCzOIguDxVA_6)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(void, msgwriteln_mpdiFCyqIWmTQYjT6Mj9c6A)(NimStringDesc* s0, Msgflag_BzRTaQ6LrPDZKEKt9bswkOQ_Set flags0);
N_NIMCALL(NimStringDesc*, nstFormat)(NimStringDesc* f0, Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw* t0, Formatflag_F4vlKAV4d0Kt9aXmu9cVNBrg_Set flags0);
N_NIMCALL(NimStringDesc*, toktostr_TtD8kId4CzEkbAITBVCtzQ_2)(Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s0);
N_NIMCALL(void, putenv_Ewmee2rKQBhOdwD9bJ4Lh8A)(NimStringDesc* key0, NimStringDesc* val0);
static N_INLINE(void, appendString)(NimStringDesc* dest0, NimStringDesc* src0);
static N_INLINE(void, copymem_fPlwH3r9agN9aEHB6yCPMh0wsystem)(void* dest0, void* source0, NI size0);
N_NIMCALL(NimStringDesc*, getenv_8zNgT9bxx7m9cTt2TeVdTdIw)(NimStringDesc* key0);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space0);
N_NIMCALL(void, parseassignment_3v87WA2oIx6kCzOIguDxVA_7)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
static N_INLINE(Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw, getlineinfo_4Wz1gkCOZ20XzTOp2YYuaQparser)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw, newlineinfo_Shbbzc11c9bnWkBc9b42npzA)(NI32 fileinfoidx0, NI line0, NI col0);
N_NIMCALL(void, checksymbol_fAmtfycSgSY9bIrtUUY9acAw)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src0);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s0, NIM_CHAR c0);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest0, NI addlen0);
N_NIMCALL(void, processswitch_fi9cs11NueoWLqkTgn63mJg)(NimStringDesc* switch_QGGefqQ9cEe9bEyejcjQ2scQ, NimStringDesc* arg0, Tcmdlinepass_IiBn9cB6WYIMDHOT44O82wA pass0, Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw info0);
N_NIMCALL(void, closelexer_Tac6pvXa9aGE9cnWPr5MhtBw)(Tlexer_IOWqYAjEw106AHiXcZcUGg* lex0);
N_NIMCALL(void, rawmessage_tBJ8mvo7MzzirsGkrHVc9cw)(Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw msg0, NimStringDesc* arg0);
N_NIMCALL(NimStringDesc*, getsystemconfigpath_Giqb229bSoHZCVkHrHFwGUw)(NimStringDesc* filename0);
N_NIMCALL(NimStringDesc*, getprefixdir_rMpbw4SUmKCJTTifDPvxAg)(void);
N_NIMCALL(NimStringDesc*, nosjoinPathOpenArray)(NimStringDesc** parts0, NI parts0Len0);
N_NIMCALL(NimStringDesc*, getuserconfigpath_rYLRrIgaZcIejAsOaoogDw)(NimStringDesc* filename0);
N_NIMCALL(NimStringDesc*, nosjoinPath)(NimStringDesc* head0, NimStringDesc* tail0);
N_NIMCALL(NimStringDesc*, nosgetConfigDir)(void);
N_NIMCALL(NimStringDesc*, nosgetCurrentDir)(void);
N_NIMCALL(NimStringDesc*, HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ)(NimStringDesc* head0, NimStringDesc* tail0);
N_NIMCALL(NIM_BOOL, nosisRootDir)(NimStringDesc* path0);
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path0);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s0, NI start_WPWyPKk58Cr5a6XFFviMjg, NI last0);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s0, NI first0, NI last0);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename0, NimStringDesc* ext0);
static N_INLINE(NIM_BOOL, fileexists_yTPrfdEKg9cKCeSFUA6popQoptions)(NimStringDesc* filename0);
N_NIMCALL(NIM_BOOL, nosexistsFile)(NimStringDesc* filename0);
N_NIMCALL(IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw*, newidentcache_9basvGvZH4FwEO4MVbYyP9aA)(void);
TY_shxop0zPIs5Ec3k71aCLuQ* condstack_d5734yLGW9a3s35S3mLFRog;
extern TNimType NTI_VaVACK0bpYmqIQ0mKcHfQQ;
TNimType NTI_shxop0zPIs5Ec3k71aCLuQ;
extern Gcheap_1TRH1TZMaVZTnLNcIHuNFQ gch_IcYaEuuWivYAS86vFMTS3Q;
extern Tglobaloption_RAfAEZqjnKMDumgyKKc1qw_Set gglobaloptions_j042VVDC9cT5ENYoXnmhhVg;
extern TNimType NTI_IOWqYAjEw106AHiXcZcUGg;
extern Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw* gconfigvars_0Vkej44DF5osh1Rc3US8qw;
extern NimStringDesc* gprojectpath_RQlrqBW2RHkKfot9caCcOtQ;
extern NimStringDesc* gprojectname_QOoHniL6MYtzlAjpv8zzdA;
extern NimStringDesc* gprojectfull_V1rcVHDANDR4ly2ul00asg;
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_3, "@", 1);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_4, "\')\'", 3);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_5, "\':\'", 3);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_6, "@if", 3);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_7, "@end", 4);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_8, "putenv", 6);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_9, "prependenv", 10);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_10, "appendenv", 9);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_11, "-", 1);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_12, "--", 2);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_13, "", 0);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_14, "\']\'", 3);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_15, "%=", 2);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_16, "&", 1);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_17, "config", 6);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_18, "nimcfg", 6);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_19, "nim.cfg", 7);
STRING_LITERAL(T_6P25SLSLz0kOcUlvm51BiA_20, "nimrod.cfg", 10);
static N_NIMCALL(void, Marker_TY_shxop0zPIs5Ec3k71aCLuQ)(void* p, NI op) {
	TY_shxop0zPIs5Ec3k71aCLuQ* a;
	NI LOC1;
	a = (TY_shxop0zPIs5Ec3k71aCLuQ*)p;
	LOC1 = (NI)0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}
static N_NIMCALL(void, T_6P25SLSLz0kOcUlvm51BiA_2)(void) {
	nimGCvisit((void*)condstack_d5734yLGW9a3s35S3mLFRog, 0);
}

static N_INLINE(Cell_1zcF9cV8XIAtbN8h5HRUB8g*, usrtocell_yB9aH5WIlwd0xkYrcdPeXrQsystem)(void* usr0) {
	Cell_1zcF9cV8XIAtbN8h5HRUB8g* result0;
	result0 = (Cell_1zcF9cV8XIAtbN8h5HRUB8g*)0;
	result0 = ((Cell_1zcF9cV8XIAtbN8h5HRUB8g*) ((NI)((NU32)(((NI) (usr0))) - (NU32)(((NI)sizeof(Cell_1zcF9cV8XIAtbN8h5HRUB8g))))));
	return result0;
}

static N_INLINE(void, rtladdzct_MV4BBk6J1qu70IbBxwEn4w_2system)(Cell_1zcF9cV8XIAtbN8h5HRUB8g* c0) {
	addzct_fCDI7oO1NNVXXURtxSzsRw((&gch_IcYaEuuWivYAS86vFMTS3Q.zct), c0);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p0) {
	Cell_1zcF9cV8XIAtbN8h5HRUB8g* c0;
	c0 = usrtocell_yB9aH5WIlwd0xkYrcdPeXrQsystem(p0);
	{
		(*c0).refcount -= ((NI) 8);
		if (!((NU32)((*c0).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_MV4BBk6J1qu70IbBxwEn4w_2system(c0);
	}
	LA3: ;
}

N_NIMCALL(void, ppgettok_3v87WA2oIx6kCzOIguDxVA_2)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	rawgettok_HUKK9cILkwTBvMCbGFTZPSA(L0, tok0);
	{
		while (1) {
			if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 113))) goto LA2;
			rawgettok_HUKK9cILkwTBvMCbGFTZPSA(L0, tok0);
		} LA2: ;
	}
}

static N_INLINE(NIM_BOOL, equalmem_DCrUjdaMvFDHaR1hs7sQGwropes)(void* a0, void* b0, NI size0) {
	NIM_BOOL result0;
	int LOC1;
	result0 = (NIM_BOOL)0;
	LOC1 = (int)0;
	LOC1 = memcmp(a0, b0, ((size_t) (size0)));
	result0 = (LOC1 == ((NI32) 0));
	return result0;
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a0, NimStringDesc* b0) {
	NIM_BOOL result0;
	NIM_BOOL LOC11;
{	result0 = (NIM_BOOL)0;
	{
		if (!(a0 == b0)) goto LA3;
		result0 = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = (NIM_BOOL)0;
		LOC7 = (a0 == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b0 == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result0 = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = (NIM_BOOL)0;
	LOC11 = ((*a0).Sup.len == (*b0).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC11 = equalmem_DCrUjdaMvFDHaR1hs7sQGwropes(((void*) ((*a0).data)), ((void*) ((*b0).data)), ((NI) ((*a0).Sup.len)));
	LA12: ;
	result0 = LOC11;
	goto BeforeRet;
	}BeforeRet: ;
	return result0;
}

N_NIMCALL(NIM_BOOL, parseatom_1Z9crMmSCb9cE3bh59bzP01NA_4)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	NIM_BOOL result0;
	result0 = (NIM_BOOL)0;
	{
		if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 93))) goto LA3;
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		result0 = parseexpr_1Z9crMmSCb9cE3bh59bzP01NA_2(L0, tok0);
		{
			if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 94))) goto LA7;
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		}
		goto LA5;
		LA7: ;
		{
			lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_4));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC13;
		if (!((*(*tok0).ident).Sup.id == ((NI) 45))) goto LA11;
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		LOC13 = (NIM_BOOL)0;
		LOC13 = parseatom_1Z9crMmSCb9cE3bh59bzP01NA_4(L0, tok0);
		result0 = !(LOC13);
	}
	goto LA1;
	LA11: ;
	{
		result0 = isdefined_rrIlGPFUdgeaN36zhjolNA((*tok0).ident);
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	}
	LA1: ;
	return result0;
}

N_NIMCALL(NIM_BOOL, parseandexpr_1Z9crMmSCb9cE3bh59bzP01NA_3)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	NIM_BOOL result0;
	result0 = (NIM_BOOL)0;
	result0 = parseatom_1Z9crMmSCb9cE3bh59bzP01NA_4(L0, tok0);
	{
		while (1) {
			NIM_BOOL b0;
			NIM_BOOL LOC3;
			if (!((*(*tok0).ident).Sup.id == ((NI) 2))) goto LA2;
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			b0 = parseatom_1Z9crMmSCb9cE3bh59bzP01NA_4(L0, tok0);
			LOC3 = (NIM_BOOL)0;
			LOC3 = result0;
			if (!(LOC3)) goto LA4;
			LOC3 = b0;
			LA4: ;
			result0 = LOC3;
		} LA2: ;
	}
	return result0;
}

N_NIMCALL(NIM_BOOL, parseexpr_1Z9crMmSCb9cE3bh59bzP01NA_2)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	NIM_BOOL result0;
	result0 = (NIM_BOOL)0;
	result0 = parseandexpr_1Z9crMmSCb9cE3bh59bzP01NA_3(L0, tok0);
	{
		while (1) {
			NIM_BOOL b0;
			NIM_BOOL LOC3;
			if (!((*(*tok0).ident).Sup.id == ((NI) 49))) goto LA2;
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			b0 = parseandexpr_1Z9crMmSCb9cE3bh59bzP01NA_3(L0, tok0);
			LOC3 = (NIM_BOOL)0;
			LOC3 = result0;
			if (LOC3) goto LA4;
			LOC3 = b0;
			LA4: ;
			result0 = LOC3;
		} LA2: ;
	}
	return result0;
}

N_NIMCALL(NIM_BOOL, evalppif_1Z9crMmSCb9cE3bh59bzP01NA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	NIM_BOOL result0;
	result0 = (NIM_BOOL)0;
	ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	result0 = parseexpr_1Z9crMmSCb9cE3bh59bzP01NA_2(L0, tok0);
	{
		if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 107))) goto LA3;
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	}
	goto LA1;
	LA3: ;
	{
		lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_5));
	}
	LA1: ;
	return result0;
}

N_NIMCALL(void, doelse_3v87WA2oIx6kCzOIguDxVA_4)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	{
		if (!((condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1) < ((NI) 0))) goto LA3;
		lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_6));
	}
	LA3: ;
	ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	{
		if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 107))) goto LA7;
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	}
	LA7: ;
	{
		if (!condstack_d5734yLGW9a3s35S3mLFRog->data[(condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1)]) goto LA11;
		jumptodirective_Brjr1mAvMYRMOrcKXckciA(L0, tok0, ((Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw) 0));
	}
	LA11: ;
}

N_NIMCALL(void, doelif_3v87WA2oIx6kCzOIguDxVA_5)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	NIM_BOOL res0;
	{
		if (!((condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1) < ((NI) 0))) goto LA3;
		lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_6));
	}
	LA3: ;
	res0 = evalppif_1Z9crMmSCb9cE3bh59bzP01NA(L0, tok0);
	{
		NIM_BOOL LOC7;
		LOC7 = (NIM_BOOL)0;
		LOC7 = condstack_d5734yLGW9a3s35S3mLFRog->data[(condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1)];
		if (LOC7) goto LA8;
		LOC7 = !(res0);
		LA8: ;
		if (!LOC7) goto LA9;
		jumptodirective_Brjr1mAvMYRMOrcKXckciA(L0, tok0, ((Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw) 1));
	}
	goto LA5;
	LA9: ;
	{
		condstack_d5734yLGW9a3s35S3mLFRog->data[(condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1)] = NIM_TRUE;
	}
	LA5: ;
}

N_NIMCALL(void, doend_3v87WA2oIx6kCzOIguDxVA_6)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	{
		if (!((condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1) < ((NI) 0))) goto LA3;
		lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_6));
	}
	LA3: ;
	ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	condstack_d5734yLGW9a3s35S3mLFRog = (TY_shxop0zPIs5Ec3k71aCLuQ*) setLengthSeq(&(condstack_d5734yLGW9a3s35S3mLFRog)->Sup, sizeof(NIM_BOOL), ((NI) ((condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1))));
}

N_NIMCALL(void, jumptodirective_Brjr1mAvMYRMOrcKXckciA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0, Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw dest0) {
	NI nestedifs0;
	nestedifs0 = ((NI) 0);
	{
		while (1) {
			{
				NIM_BOOL LOC5;
				Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw LOC9;
				LOC5 = (NIM_BOOL)0;
				LOC5 = !(((*tok0).ident == NIM_NIL));
				if (!(LOC5)) goto LA6;
				LOC5 = eqStrings((*(*tok0).ident).s, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_3));
				LA6: ;
				if (!LOC5) goto LA7;
				ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
				LOC9 = (Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw)0;
				LOC9 = whichkeyword_WhYAAh6vF1PoyH6Hsspu4Q((*tok0).ident);
				switch (LOC9) {
				case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 31):
				{
					nestedifs0 += ((NI) 1);
				}
				break;
				case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 21):
				{
					{
						NIM_BOOL LOC14;
						LOC14 = (NIM_BOOL)0;
						LOC14 = (dest0 == ((Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw) 1));
						if (!(LOC14)) goto LA15;
						LOC14 = (nestedifs0 == ((NI) 0));
						LA15: ;
						if (!LOC14) goto LA16;
						doelse_3v87WA2oIx6kCzOIguDxVA_4(L0, tok0);
						goto LA1;
					}
					LA16: ;
				}
				break;
				case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 20):
				{
					{
						NIM_BOOL LOC21;
						LOC21 = (NIM_BOOL)0;
						LOC21 = (dest0 == ((Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw) 1));
						if (!(LOC21)) goto LA22;
						LOC21 = (nestedifs0 == ((NI) 0));
						LA22: ;
						if (!LOC21) goto LA23;
						doelif_3v87WA2oIx6kCzOIguDxVA_5(L0, tok0);
						goto LA1;
					}
					LA23: ;
				}
				break;
				case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 22):
				{
					{
						if (!(nestedifs0 == ((NI) 0))) goto LA28;
						doend_3v87WA2oIx6kCzOIguDxVA_6(L0, tok0);
						goto LA1;
					}
					LA28: ;
					{
						if (!(((NI) 0) < nestedifs0)) goto LA32;
						nestedifs0 -= ((NI) 1);
					}
					LA32: ;
				}
				break;
				default:
				{
				}
				break;
				}
				ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			}
			goto LA3;
			LA7: ;
			{
				if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 1))) goto LA36;
				lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_7));
			}
			goto LA3;
			LA36: ;
			{
				ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			}
			LA3: ;
		}
	} LA1: ;
}

static N_INLINE(void, copymem_fPlwH3r9agN9aEHB6yCPMh0wsystem)(void* dest0, void* source0, NI size0) {
	void* LOC1;
	LOC1 = (void*)0;
	LOC1 = memcpy(dest0, source0, ((size_t) (size0)));
}

static N_INLINE(void, appendString)(NimStringDesc* dest0, NimStringDesc* src0) {
	copymem_fPlwH3r9agN9aEHB6yCPMh0wsystem(((void*) ((&(*dest0).data[((*dest0).Sup.len)- 0]))), ((void*) ((*src0).data)), ((NI) ((NI)((*src0).Sup.len + ((NI) 1)))));
	(*dest0).Sup.len += (*src0).Sup.len;
}

N_NIMCALL(void, parsedirective_3v87WA2oIx6kCzOIguDxVA_3)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw LOC1;
	ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	LOC1 = (Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw)0;
	LOC1 = whichkeyword_WhYAAh6vF1PoyH6Hsspu4Q((*tok0).ident);
	switch (LOC1) {
	case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 31):
	{
		NIM_BOOL res0;
		condstack_d5734yLGW9a3s35S3mLFRog = (TY_shxop0zPIs5Ec3k71aCLuQ*) setLengthSeq(&(condstack_d5734yLGW9a3s35S3mLFRog)->Sup, sizeof(NIM_BOOL), ((NI) ((NI)((condstack_d5734yLGW9a3s35S3mLFRog ? condstack_d5734yLGW9a3s35S3mLFRog->Sup.len : 0) + ((NI) 1)))));
		res0 = evalppif_1Z9crMmSCb9cE3bh59bzP01NA(L0, tok0);
		condstack_d5734yLGW9a3s35S3mLFRog->data[(condstack_d5734yLGW9a3s35S3mLFRog ? (condstack_d5734yLGW9a3s35S3mLFRog->Sup.len-1) : -1)] = res0;
		{
			if (!!(res0)) goto LA5;
			jumptodirective_Brjr1mAvMYRMOrcKXckciA(L0, tok0, ((Tjumpdest_cqZXj5qWN1LkH2B3t29cnfw) 1));
		}
		LA5: ;
	}
	break;
	case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 20):
	{
		doelif_3v87WA2oIx6kCzOIguDxVA_5(L0, tok0);
	}
	break;
	case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 21):
	{
		doelse_3v87WA2oIx6kCzOIguDxVA_4(L0, tok0);
	}
	break;
	case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 22):
	{
		doend_3v87WA2oIx6kCzOIguDxVA_6(L0, tok0);
	}
	break;
	case ((Tspecialword_ycbpMCRV6Cd2eBh3X9biEiw) 186):
	{
		NimStringDesc* LOC11;
		NimStringDesc* LOC12;
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		LOC11 = (NimStringDesc*)0;
		LOC11 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
		LOC12 = (NimStringDesc*)0;
		LOC12 = nstFormat(LOC11, gconfigvars_0Vkej44DF5osh1Rc3US8qw, 5);
		msgwriteln_mpdiFCyqIWmTQYjT6Mj9c6A(LOC12, 0);
		ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	}
	break;
	default:
	{
		NimStringDesc* LOC14;
		LOC14 = (NimStringDesc*)0;
		LOC14 = nsuNormalize((*(*tok0).ident).s);
		if (eqStrings(LOC14, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_8))) goto LA15;
		if (eqStrings(LOC14, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_9))) goto LA16;
		if (eqStrings(LOC14, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_10))) goto LA17;
		goto LA18;
		LA15: ;
		{
			NimStringDesc* key0;
			NimStringDesc* LOC21;
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			key0 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			LOC21 = (NimStringDesc*)0;
			LOC21 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			putenv_Ewmee2rKQBhOdwD9bJ4Lh8A(key0, LOC21);
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		}
		goto LA19;
		LA16: ;
		{
			NimStringDesc* key0;
			NimStringDesc* LOC23;
			NimStringDesc* LOC24;
			NimStringDesc* LOC25;
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			key0 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			LOC23 = (NimStringDesc*)0;
			LOC24 = (NimStringDesc*)0;
			LOC24 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			LOC25 = (NimStringDesc*)0;
			LOC25 = getenv_8zNgT9bxx7m9cTt2TeVdTdIw(key0);
			LOC23 = rawNewString(LOC24->Sup.len + LOC25->Sup.len + 0);
appendString(LOC23, LOC24);
appendString(LOC23, LOC25);
			putenv_Ewmee2rKQBhOdwD9bJ4Lh8A(key0, LOC23);
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		}
		goto LA19;
		LA17: ;
		{
			NimStringDesc* key0;
			NimStringDesc* LOC27;
			NimStringDesc* LOC28;
			NimStringDesc* LOC29;
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			key0 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
			LOC27 = (NimStringDesc*)0;
			LOC28 = (NimStringDesc*)0;
			LOC28 = getenv_8zNgT9bxx7m9cTt2TeVdTdIw(key0);
			LOC29 = (NimStringDesc*)0;
			LOC29 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			LOC27 = rawNewString(LOC28->Sup.len + LOC29->Sup.len + 0);
appendString(LOC27, LOC28);
appendString(LOC27, LOC29);
			putenv_Ewmee2rKQBhOdwD9bJ4Lh8A(key0, LOC27);
			ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
		}
		goto LA19;
		LA18: ;
		{
			NimStringDesc* LOC31;
			LOC31 = (NimStringDesc*)0;
			LOC31 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 31), LOC31);
		}
		LA19: ;
	}
	break;
	}
}

N_NIMCALL(void, conftok_3v87WA2oIx6kCzOIguDxVA)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	ppgettok_3v87WA2oIx6kCzOIguDxVA_2(L0, tok0);
	{
		while (1) {
			NIM_BOOL LOC3;
			LOC3 = (NIM_BOOL)0;
			LOC3 = !(((*tok0).ident == NIM_NIL));
			if (!(LOC3)) goto LA4;
			LOC3 = eqStrings((*(*tok0).ident).s, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_3));
			LA4: ;
			if (!LOC3) goto LA2;
			parsedirective_3v87WA2oIx6kCzOIguDxVA_3(L0, tok0);
		} LA2: ;
	}
}

static N_INLINE(Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw, getlineinfo_4Wz1gkCOZ20XzTOp2YYuaQparser)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw result0;
	memset((void*)(&result0), 0, sizeof(result0));
	result0 = newlineinfo_Shbbzc11c9bnWkBc9b42npzA((*L0).fileidx, (*tok0).line, (*tok0).col);
	return result0;
}

N_NIMCALL(void, checksymbol_fAmtfycSgSY9bIrtUUY9acAw)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	{
		NimStringDesc* LOC5;
		if (!!(((*tok0).toktype >= ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 2) && (*tok0).toktype <= ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 72) || (*tok0).toktype >= ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 87) && (*tok0).toktype <= ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 89)))) goto LA3;
		LOC5 = (NimStringDesc*)0;
		LOC5 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2(tok0);
		lexmessage_moxcy135mexMtB8c1DXBvA(L0, ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 20), LOC5);
	}
	LA3: ;
}

N_NIMCALL(void, parseassignment_3v87WA2oIx6kCzOIguDxVA_7)(Tlexer_IOWqYAjEw106AHiXcZcUGg* L0, Ttoken_kLaEEPwLj8cag79cbYQIkHQ* tok0) {
	Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw info0;
	NimStringDesc* s0;
	NimStringDesc* val0;
	NIM_BOOL percent0;
	NIM_BOOL LOC20;
	{
		NIM_BOOL LOC3;
		LOC3 = (NIM_BOOL)0;
		LOC3 = eqStrings((*(*tok0).ident).s, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_11));
		if (LOC3) goto LA4;
		LOC3 = eqStrings((*(*tok0).ident).s, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_12));
		LA4: ;
		if (!LOC3) goto LA5;
		conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
	}
	LA5: ;
	info0 = getlineinfo_4Wz1gkCOZ20XzTOp2YYuaQparser((&(*L0)), (&(*tok0)));
	checksymbol_fAmtfycSgSY9bIrtUUY9acAw((&(*L0)), (&(*tok0)));
	s0 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
	conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
	val0 = copyString(((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_13));
	{
		while (1) {
			NimStringDesc* LOC9;
			if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 110))) goto LA8;
			s0 = addChar(s0, 46);
			conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
			checksymbol_fAmtfycSgSY9bIrtUUY9acAw((&(*L0)), (&(*tok0)));
			LOC9 = (NimStringDesc*)0;
			LOC9 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
			s0 = resizeString(s0, LOC9->Sup.len + 0);
appendString(s0, LOC9);
			conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
		} LA8: ;
	}
	{
		NimStringDesc* LOC14;
		if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 95))) goto LA12;
		conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
		checksymbol_fAmtfycSgSY9bIrtUUY9acAw((&(*L0)), (&(*tok0)));
		LOC14 = (NimStringDesc*)0;
		LOC14 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
		val0 = resizeString(val0, LOC14->Sup.len + 0);
appendString(val0, LOC14);
		conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
		{
			if (!((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 96))) goto LA17;
			conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
		}
		goto LA15;
		LA17: ;
		{
			lexmessage_moxcy135mexMtB8c1DXBvA((&(*L0)), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_14));
		}
		LA15: ;
		val0 = addChar(val0, 93);
	}
	LA12: ;
	LOC20 = (NIM_BOOL)0;
	LOC20 = !(((*tok0).ident == NIM_NIL));
	if (!(LOC20)) goto LA21;
	LOC20 = eqStrings((*(*tok0).ident).s, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_15));
	LA21: ;
	percent0 = LOC20;
	{
		NIM_BOOL LOC24;
		NimStringDesc* LOC32;
		LOC24 = (NIM_BOOL)0;
		LOC24 = ((*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 107) || (*tok0).toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 109));
		if (LOC24) goto LA25;
		LOC24 = percent0;
		LA25: ;
		if (!LOC24) goto LA26;
		{
			if (!(((NI) 0) < (val0 ? val0->Sup.len : 0))) goto LA30;
			val0 = addChar(val0, 58);
		}
		LA30: ;
		conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
		checksymbol_fAmtfycSgSY9bIrtUUY9acAw((&(*L0)), (&(*tok0)));
		LOC32 = (NimStringDesc*)0;
		LOC32 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
		val0 = resizeString(val0, LOC32->Sup.len + 0);
appendString(val0, LOC32);
		conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
		{
			while (1) {
				NIM_BOOL LOC35;
				NimStringDesc* LOC37;
				LOC35 = (NIM_BOOL)0;
				LOC35 = !(((*tok0).ident == NIM_NIL));
				if (!(LOC35)) goto LA36;
				LOC35 = eqStrings((*(*tok0).ident).s, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_16));
				LA36: ;
				if (!LOC35) goto LA34;
				conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
				checksymbol_fAmtfycSgSY9bIrtUUY9acAw((&(*L0)), (&(*tok0)));
				LOC37 = (NimStringDesc*)0;
				LOC37 = toktostr_TtD8kId4CzEkbAITBVCtzQ_2((&(*tok0)));
				val0 = resizeString(val0, LOC37->Sup.len + 0);
appendString(val0, LOC37);
				conftok_3v87WA2oIx6kCzOIguDxVA(L0, tok0);
			} LA34: ;
		}
	}
	LA26: ;
	{
		NimStringDesc* LOC42;
		if (!percent0) goto LA40;
		LOC42 = (NimStringDesc*)0;
		LOC42 = nstFormat(val0, gconfigvars_0Vkej44DF5osh1Rc3US8qw, 3);
		processswitch_fi9cs11NueoWLqkTgn63mJg(s0, LOC42, ((Tcmdlinepass_IiBn9cB6WYIMDHOT44O82wA) 2), info0);
	}
	goto LA38;
	LA40: ;
	{
		processswitch_fi9cs11NueoWLqkTgn63mJg(s0, val0, ((Tcmdlinepass_IiBn9cB6WYIMDHOT44O82wA) 2), info0);
	}
	LA38: ;
}

N_NIMCALL(void, readconfigfile_iISylA6Y9bl8qXf4SMLPJEg)(NimStringDesc* filename0, IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* cache0) {
	Tlexer_IOWqYAjEw106AHiXcZcUGg L0;
	Ttoken_kLaEEPwLj8cag79cbYQIkHQ tok0;
	Tllstream_IHsOGFu33dIY69a9bLlFHlHw* stream0;
	memset((void*)(&L0), 0, sizeof(L0));
	L0.Sup.Sup.m_type = (&NTI_IOWqYAjEw106AHiXcZcUGg);
	memset((void*)(&tok0), 0, sizeof(tok0));
	stream0 = (Tllstream_IHsOGFu33dIY69a9bLlFHlHw*)0;
	stream0 = llstreamopen_TMcHzC3C639c0ccC0wtKA2w(filename0, ((Filemode_fVUBHvW79bXUw1j55Oo9avSQ) 0));
	{
		if (!!((stream0 == NIM_NIL))) goto LA3;
		inittoken_FTh5b29clR9cRU4ec2Lu61rA((&tok0));
		openlexer_eKdW81U1nNo7kyJQODmbcA((&L0), filename0, stream0, cache0);
		tok0.toktype = ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 1);
		conftok_3v87WA2oIx6kCzOIguDxVA((&L0), (&tok0));
		{
			while (1) {
				if (!!((tok0.toktype == ((Ttoktype_vw8YkgaVtNadqP8v5OpXKA) 1)))) goto LA6;
				parseassignment_3v87WA2oIx6kCzOIguDxVA_7((&L0), (&tok0));
			} LA6: ;
		}
		{
			if (!(((NI) 0) < (condstack_d5734yLGW9a3s35S3mLFRog ? condstack_d5734yLGW9a3s35S3mLFRog->Sup.len : 0))) goto LA9;
			lexmessage_moxcy135mexMtB8c1DXBvA((&L0), ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 24), ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_7));
		}
		LA9: ;
		closelexer_Tac6pvXa9aGE9cnWPr5MhtBw((&L0));
		rawmessage_tBJ8mvo7MzzirsGkrHVc9cw(((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 278), filename0);
	}
	LA3: ;
}

N_NIMCALL(NimStringDesc*, getsystemconfigpath_Giqb229bSoHZCVkHrHFwGUw)(NimStringDesc* filename0) {
	NimStringDesc* result0;
	NimStringDesc* p0;
	TY_24KAM9afIUgUaqBaEBB6r9bg LOC1;
	result0 = (NimStringDesc*)0;
	p0 = getprefixdir_rMpbw4SUmKCJTTifDPvxAg();
	memset((void*)LOC1, 0, sizeof(LOC1));
	LOC1[0] = copyString(p0);
	LOC1[1] = copyString(((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_17));
	LOC1[2] = copyString(filename0);
	result0 = nosjoinPathOpenArray(LOC1, 3);
	return result0;
}

N_NIMCALL(NimStringDesc*, getuserconfigpath_rYLRrIgaZcIejAsOaoogDw)(NimStringDesc* filename0) {
	NimStringDesc* result0;
	NimStringDesc* LOC1;
	result0 = (NimStringDesc*)0;
	LOC1 = (NimStringDesc*)0;
	LOC1 = nosgetConfigDir();
	result0 = nosjoinPath(LOC1, filename0);
	return result0;
}

static N_INLINE(NIM_BOOL, fileexists_yTPrfdEKg9cKCeSFUA6popQoptions)(NimStringDesc* filename0) {
	NIM_BOOL result0;
	result0 = (NIM_BOOL)0;
	result0 = nosexistsFile(filename0);
	return result0;
}

N_NIMCALL(void, loadconfigs_FECraGk0JdQ9bewar6pXUkA)(NimStringDesc* cfg0, IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* cache0) {
	NimStringDesc* pd0;
	setdefaultlibpath_HTBJ7VvmwtM2mD6WCLBTew_2();
	{
		NimStringDesc* LOC5;
		if (!!(((gglobaloptions_j042VVDC9cT5ENYoXnmhhVg &((NU64)1<<((NU)(((Tglobaloption_RAfAEZqjnKMDumgyKKc1qw) 16))&63U)))!=0))) goto LA3;
		LOC5 = (NimStringDesc*)0;
		LOC5 = getsystemconfigpath_Giqb229bSoHZCVkHrHFwGUw(cfg0);
		readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC5, cache0);
	}
	LA3: ;
	{
		NimStringDesc* LOC10;
		if (!!(((gglobaloptions_j042VVDC9cT5ENYoXnmhhVg &((NU64)1<<((NU)(((Tglobaloption_RAfAEZqjnKMDumgyKKc1qw) 18))&63U)))!=0))) goto LA8;
		LOC10 = (NimStringDesc*)0;
		LOC10 = getuserconfigpath_rYLRrIgaZcIejAsOaoogDw(cfg0);
		readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC10, cache0);
	}
	LA8: ;
	{
		if (!(((NI) 0) < (gprojectpath_RQlrqBW2RHkKfot9caCcOtQ ? gprojectpath_RQlrqBW2RHkKfot9caCcOtQ->Sup.len : 0))) goto LA13;
		pd0 = copyString(gprojectpath_RQlrqBW2RHkKfot9caCcOtQ);
	}
	goto LA11;
	LA13: ;
	{
		pd0 = nosgetCurrentDir();
	}
	LA11: ;
	{
		if (!!(((gglobaloptions_j042VVDC9cT5ENYoXnmhhVg &((NU64)1<<((NU)(((Tglobaloption_RAfAEZqjnKMDumgyKKc1qw) 19))&63U)))!=0))) goto LA18;
		{
			NimStringDesc* dir_k3e0re9bCQ9b56sJMFG5mkEA;
			dir_k3e0re9bCQ9b56sJMFG5mkEA = (NimStringDesc*)0;
			{
				NimStringDesc* current_AxFC7tMCrpiKfycNKTzpDQ;
				if (!NIM_FALSE) goto LA23;
				current_AxFC7tMCrpiKfycNKTzpDQ = copyString(pd0);
				{
					NimStringDesc* LOC29;
					if (!NIM_FALSE) goto LA27;
					dir_k3e0re9bCQ9b56sJMFG5mkEA = pd0;
					LOC29 = (NimStringDesc*)0;
					LOC29 = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir_k3e0re9bCQ9b56sJMFG5mkEA, cfg0);
					readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC29, cache0);
				}
				LA27: ;
				{
					while (1) {
						NimStringDesc* LOC37;
						{
							NIM_BOOL LOC34;
							LOC34 = (NIM_BOOL)0;
							LOC34 = nosisRootDir(current_AxFC7tMCrpiKfycNKTzpDQ);
							if (!LOC34) goto LA35;
							goto LA30;
						}
						LA35: ;
						current_AxFC7tMCrpiKfycNKTzpDQ = nosparentDir(current_AxFC7tMCrpiKfycNKTzpDQ);
						dir_k3e0re9bCQ9b56sJMFG5mkEA = current_AxFC7tMCrpiKfycNKTzpDQ;
						LOC37 = (NimStringDesc*)0;
						LOC37 = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir_k3e0re9bCQ9b56sJMFG5mkEA, cfg0);
						readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC37, cache0);
					}
				} LA30: ;
			}
			goto LA21;
			LA23: ;
			{
				{
					NI i_e5rwmbu8hTWbblgNB2KvSQ;
					NI HEX3Atmp_qibjqCGP9bcCnesKkiY9c83g;
					NI res_5prLlAo5spcmXMYzGTsx3A;
					i_e5rwmbu8hTWbblgNB2KvSQ = (NI)0;
					HEX3Atmp_qibjqCGP9bcCnesKkiY9c83g = (NI)0;
					HEX3Atmp_qibjqCGP9bcCnesKkiY9c83g = (NI)((pd0 ? pd0->Sup.len : 0) - ((NI) 2));
					res_5prLlAo5spcmXMYzGTsx3A = ((NI) 0);
					{
						while (1) {
							if (!(res_5prLlAo5spcmXMYzGTsx3A <= HEX3Atmp_qibjqCGP9bcCnesKkiY9c83g)) goto LA41;
							i_e5rwmbu8hTWbblgNB2KvSQ = res_5prLlAo5spcmXMYzGTsx3A;
							{
								NIM_BOOL LOC44;
								NIM_BOOL LOC46;
								NimStringDesc* LOC50;
								LOC44 = (NIM_BOOL)0;
								LOC44 = (((NU8)(pd0->data[i_e5rwmbu8hTWbblgNB2KvSQ])) == ((NU8)(92)) || ((NU8)(pd0->data[i_e5rwmbu8hTWbblgNB2KvSQ])) == ((NU8)(47)));
								if (!(LOC44)) goto LA45;
								LOC46 = (NIM_BOOL)0;
								LOC46 = (i_e5rwmbu8hTWbblgNB2KvSQ == ((NI) 0));
								if (LOC46) goto LA47;
								LOC46 = !((((NU8)(pd0->data[(NI)(i_e5rwmbu8hTWbblgNB2KvSQ - ((NI) 1))])) == ((NU8)(92)) || ((NU8)(pd0->data[(NI)(i_e5rwmbu8hTWbblgNB2KvSQ - ((NI) 1))])) == ((NU8)(47))));
								LA47: ;
								LOC44 = LOC46;
								LA45: ;
								if (!LOC44) goto LA48;
								dir_k3e0re9bCQ9b56sJMFG5mkEA = copyStrLast(pd0, ((NI) 0), i_e5rwmbu8hTWbblgNB2KvSQ);
								LOC50 = (NimStringDesc*)0;
								LOC50 = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir_k3e0re9bCQ9b56sJMFG5mkEA, cfg0);
								readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC50, cache0);
							}
							LA48: ;
							res_5prLlAo5spcmXMYzGTsx3A += ((NI) 1);
						} LA41: ;
					}
				}
				{
					NimStringDesc* LOC55;
					if (!NIM_FALSE) goto LA53;
					dir_k3e0re9bCQ9b56sJMFG5mkEA = pd0;
					LOC55 = (NimStringDesc*)0;
					LOC55 = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir_k3e0re9bCQ9b56sJMFG5mkEA, cfg0);
					readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC55, cache0);
				}
				LA53: ;
			}
			LA21: ;
		}
	}
	LA18: ;
	{
		NimStringDesc* LOC60;
		if (!!(((gglobaloptions_j042VVDC9cT5ENYoXnmhhVg &((NU64)1<<((NU)(((Tglobaloption_RAfAEZqjnKMDumgyKKc1qw) 17))&63U)))!=0))) goto LA58;
		LOC60 = (NimStringDesc*)0;
		LOC60 = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(pd0, cfg0);
		readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(LOC60, cache0);
		{
			NimStringDesc* projectconfig0;
			if (!!(((gprojectname_QOoHniL6MYtzlAjpv8zzdA ? gprojectname_QOoHniL6MYtzlAjpv8zzdA->Sup.len : 0) == ((NI) 0)))) goto LA63;
			projectconfig0 = noschangeFileExt(gprojectfull_V1rcVHDANDR4ly2ul00asg, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_18));
			{
				NIM_BOOL LOC67;
				LOC67 = (NIM_BOOL)0;
				LOC67 = fileexists_yTPrfdEKg9cKCeSFUA6popQoptions(projectconfig0);
				if (!!(LOC67)) goto LA68;
				projectconfig0 = noschangeFileExt(gprojectfull_V1rcVHDANDR4ly2ul00asg, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_19));
			}
			LA68: ;
			{
				NIM_BOOL LOC72;
				LOC72 = (NIM_BOOL)0;
				LOC72 = fileexists_yTPrfdEKg9cKCeSFUA6popQoptions(projectconfig0);
				if (!!(LOC72)) goto LA73;
				projectconfig0 = noschangeFileExt(gprojectfull_V1rcVHDANDR4ly2ul00asg, ((NimStringDesc*) &T_6P25SLSLz0kOcUlvm51BiA_20));
				{
					NIM_BOOL LOC77;
					LOC77 = (NIM_BOOL)0;
					LOC77 = fileexists_yTPrfdEKg9cKCeSFUA6popQoptions(projectconfig0);
					if (!LOC77) goto LA78;
					rawmessage_tBJ8mvo7MzzirsGkrHVc9cw(((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 240), projectconfig0);
				}
				LA78: ;
			}
			LA73: ;
			readconfigfile_iISylA6Y9bl8qXf4SMLPJEg(projectconfig0, cache0);
		}
		LA63: ;
	}
	LA58: ;
}

N_NIMCALL(void, loadconfigs_g69cAL3PilmjORegF8eKWNw)(NimStringDesc* cfg0) {
	IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw* LOC1;
	LOC1 = (IdentcacheHEX3Aobjecttype_TzLHS09bRH9a0TYLs39cqcNaw*)0;
	LOC1 = newidentcache_9basvGvZH4FwEO4MVbYyP9aA();
	loadconfigs_FECraGk0JdQ9bewar6pXUkA(cfg0, LOC1);
}
NIM_EXTERNC N_NOINLINE(void, compiler_nimconfInit000)(void) {
nimRegisterGlobalMarker(T_6P25SLSLz0kOcUlvm51BiA_2);
	if (condstack_d5734yLGW9a3s35S3mLFRog) nimGCunrefNoCycle(condstack_d5734yLGW9a3s35S3mLFRog);
	condstack_d5734yLGW9a3s35S3mLFRog = (TY_shxop0zPIs5Ec3k71aCLuQ*) newSeqRC1((&NTI_shxop0zPIs5Ec3k71aCLuQ), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_nimconfDatInit000)(void) {
NTI_shxop0zPIs5Ec3k71aCLuQ.size = sizeof(TY_shxop0zPIs5Ec3k71aCLuQ*);
NTI_shxop0zPIs5Ec3k71aCLuQ.kind = 24;
NTI_shxop0zPIs5Ec3k71aCLuQ.base = (&NTI_VaVACK0bpYmqIQ0mKcHfQQ);
NTI_shxop0zPIs5Ec3k71aCLuQ.flags = 2;
NTI_shxop0zPIs5Ec3k71aCLuQ.marker = Marker_TY_shxop0zPIs5Ec3k71aCLuQ;
}

