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

#include "nimbase.h"
#include <dirent.h>
#include <setjmp.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <glob.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q;
typedef struct tyObject_Target_9abOl5DLX8suLujOaHSvGzw tyObject_Target_9abOl5DLX8suLujOaHSvGzw;
typedef struct tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg;
typedef struct tyObject_MsgConfig_kV7r8HWT0SqOYW2k2ukC6A tyObject_MsgConfig_kV7r8HWT0SqOYW2k2ukC6A;
typedef struct tySequence_tNFrR3kRuS1FSwuiLGoSSA tySequence_tNFrR3kRuS1FSwuiLGoSSA;
typedef struct tyObject_Table_Ab4q9c36aMR4mtkEOIBzdzA tyObject_Table_Ab4q9c36aMR4mtkEOIBzdzA;
typedef struct tySequence_7lEisrXlQEzwtUKW5pzRCw tySequence_7lEisrXlQEzwtUKW5pzRCw;
typedef struct tySequence_Zi9cGbCWofbtABoHJ5RbLNQ tySequence_Zi9cGbCWofbtABoHJ5RbLNQ;
typedef struct tyObject_HashSet_CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet_CD8Dpv0WGmASelVaNSo6zg;
typedef struct tySequence_4eRCaZmrYLLw2k30GPTiMw tySequence_4eRCaZmrYLLw2k30GPTiMw;
typedef struct tySequence_sM4lkSb7zS6F7OVMvW9cffQ tySequence_sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tySequence_pK3qSsBZwdXd6qyUMkd5Jw tySequence_pK3qSsBZwdXd6qyUMkd5Jw;
typedef struct tyObject_SuggestcolonObjectType__bkMuTTb2G70XfpzAiyNrnQ tyObject_SuggestcolonObjectType__bkMuTTb2G70XfpzAiyNrnQ;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tySequence_uB9b75OUPRENsBAu4AnoePA tySequence_uB9b75OUPRENsBAu4AnoePA;
typedef struct TSafePoint TSafePoint;
typedef struct tyTuple_UV3llMMYFckfui8YMBuUZA tyTuple_UV3llMMYFckfui8YMBuUZA;
typedef struct tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA;
typedef struct tySequence_xv3aaFd3JCw8NbmALHiezQ tySequence_xv3aaFd3JCw8NbmALHiezQ;
typedef struct tyTuple_sPaDkVPSC0MkcoXCxPH9ccA tyTuple_sPaDkVPSC0MkcoXCxPH9ccA;
typedef struct tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap_1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap_1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack_7fytPA5bBsob6See21YMRA tyObject_GcStack_7fytPA5bBsob6See21YMRA;
typedef struct tyObject_MemRegion_x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion_x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk_tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk_tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk_Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk_Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk_XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk_XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet_EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet_EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk_W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk_W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks_PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks_PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple_ujsjpB2O9cjj3uDHsXbnSzg tyTuple_ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat_0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat_0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet_jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet_jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc_fublkgIY4LG3mT51LU2WHg tyObject_PageDesc_fublkgIY4LG3mT51LU2WHg;
typedef struct tyTuple_z822nu9bFF1AlQnLrHjdwpA tyTuple_z822nu9bFF1AlQnLrHjdwpA;
typedef struct tyTuple_xYhUhS7X82rKTqbT9bRfCnw tyTuple_xYhUhS7X82rKTqbT9bRfCnw;
typedef struct tyObject_TFileInfo_GE3hAakXKOEpch4ap3zXAw tyObject_TFileInfo_GE3hAakXKOEpch4ap3zXAw;
typedef struct tyObject_RopeObj_OFzf0kSiPTcNreUIeJgWVA tyObject_RopeObj_OFzf0kSiPTcNreUIeJgWVA;
typedef struct tyTuple_QeWl6B6ffS4pU6WWrtcrDw tyTuple_QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyObject_Cfile_i9cKq1ZGd1wgagjUEHLVFtg tyObject_Cfile_i9cKq1ZGd1wgagjUEHLVFtg;
typedef struct tyObject_StackTraceEntry_oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry_oLyohQ7O2XOvGnflOss8EA;
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q {
NU16 line;
NI16 col;
NI32 fileIndex;
};
typedef NU8 tyEnum_TSystemCPU_XYDt7D1G3qcClFyZy1Ky9ag;
typedef NU8 tyEnum_TSystemOS_s7Mlr1t66SUqP6BKJMXLaQ;
struct tyObject_Target_9abOl5DLX8suLujOaHSvGzw {
tyEnum_TSystemCPU_XYDt7D1G3qcClFyZy1Ky9ag targetCPU;
tyEnum_TSystemCPU_XYDt7D1G3qcClFyZy1Ky9ag hostCPU;
tyEnum_TSystemOS_s7Mlr1t66SUqP6BKJMXLaQ targetOS;
tyEnum_TSystemOS_s7Mlr1t66SUqP6BKJMXLaQ hostOS;
NI intSize;
NI floatSize;
NI ptrSize;
NimStringDesc* tnl;
};
typedef NU32 tySet_tyEnum_TOption_WspMeQySXNP2XoTWR5MTgg;
typedef NU64 tySet_tyEnum_TGlobalOption_RAfAEZqjnKMDumgyKKc1qw;
typedef NU8 tySet_tyEnum_TErrorOutput_fBf8Teueoz9aAkO5cXaxrpA;
struct tyObject_Table_Ab4q9c36aMR4mtkEOIBzdzA {
tySequence_7lEisrXlQEzwtUKW5pzRCw* data;
NI counter;
};
struct tyObject_MsgConfig_kV7r8HWT0SqOYW2k2ukC6A {
tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q trackPos;
NIM_BOOL trackPosAttached;
tySet_tyEnum_TErrorOutput_fBf8Teueoz9aAkO5cXaxrpA errorOutputs;
tySequence_tNFrR3kRuS1FSwuiLGoSSA* msgContext;
tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q lastError;
tyObject_Table_Ab4q9c36aMR4mtkEOIBzdzA filenameToIndexTbl;
tySequence_Zi9cGbCWofbtABoHJ5RbLNQ* fileInfos;
NI32 systemFileIdx;
};
typedef NU8 tyEnum_TCommands_VH3ghgQVwLSg3krOAoXigw;
typedef NU8 tyEnum_TGCMode_tkz389aDYNd8ykeZszCuBSw;
typedef NU8 tyEnum_SymbolFilesOption_gBES9bqm1ru9ape8SeMRAFgQ;
struct tyObject_HashSet_CD8Dpv0WGmASelVaNSo6zg {
tySequence_4eRCaZmrYLLw2k30GPTiMw* data;
NI counter;
};
typedef NU16 tySet_tyEnum_Feature_01UoAKYz1MxZiuG1X2VhNQ;
typedef NU8 tyEnum_IdeCmd_1Ced39bl5eePmZ1PKMPXigQ;
typedef NU8 tyEnum_TSystemCC_1eWBJUonHMOnlBwsOvpFmA;
typedef NU64 tySet_tyEnum_TMsgKind_Ns87ee9bXonvIM8SMewfbmA;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_SuggestcolonObjectType__bkMuTTb2G70XfpzAiyNrnQ* result, void* ClE_0);
void* ClE_0;
} tyProc_QYEVXrYc9beQ379crS3rzqRA;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (NimStringDesc* output, void* ClE_0);
void* ClE_0;
} tyProc_Q1W5D85O9cNu3iq9cZ9alS9aWA;
typedef NU8 tyEnum_Severity_x5BWBPGAbIH9clm5pmNp5DA;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity_x5BWBPGAbIH9clm5pmNp5DA severity, void* ClE_0);
void* ClE_0;
} tyProc_22mgIiTBBoqNe1T0FSw9ahQ;
struct tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw {
tyObject_Target_9abOl5DLX8suLujOaHSvGzw target;
NI linesCompiled;
tySet_tyEnum_TOption_WspMeQySXNP2XoTWR5MTgg options;
tySet_tyEnum_TGlobalOption_RAfAEZqjnKMDumgyKKc1qw globalOptions;
tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* macrosToExpand;
tyObject_MsgConfig_kV7r8HWT0SqOYW2k2ukC6A m;
NI evalTemplateCounter;
NI evalMacroCounter;
NI8 exitcode;
tyEnum_TCommands_VH3ghgQVwLSg3krOAoXigw cmd;
tyEnum_TGCMode_tkz389aDYNd8ykeZszCuBSw selectedGC;
NI verbosity;
NI numberOfProcessors;
NimStringDesc* evalExpr;
NF lastCmdTime;
tyEnum_SymbolFilesOption_gBES9bqm1ru9ape8SeMRAFgQ symbolFiles;
tyObject_HashSet_CD8Dpv0WGmASelVaNSo6zg cppDefines;
NimStringDesc* headerFile;
tySet_tyEnum_Feature_01UoAKYz1MxZiuG1X2VhNQ features;
NimStringDesc* arguments;
tyEnum_IdeCmd_1Ced39bl5eePmZ1PKMPXigQ ideCmd;
NIM_BOOL oldNewlines;
tyEnum_TSystemCC_1eWBJUonHMOnlBwsOvpFmA cCompiler;
tySet_tyEnum_TMsgKind_Ns87ee9bXonvIM8SMewfbmA enableNotes;
tySet_tyEnum_TMsgKind_Ns87ee9bXonvIM8SMewfbmA disableNotes;
tySet_tyEnum_TMsgKind_Ns87ee9bXonvIM8SMewfbmA foreignPackageNotes;
tySet_tyEnum_TMsgKind_Ns87ee9bXonvIM8SMewfbmA notes;
tySet_tyEnum_TMsgKind_Ns87ee9bXonvIM8SMewfbmA mainPackageNotes;
NI mainPackageId;
NI errorCounter;
NI hintCounter;
NI warnCounter;
NI errorMax;
tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* configVars;
tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* symbols;
tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* packageCache;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* searchPaths;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* lazyPaths;
NimStringDesc* outFile;
NimStringDesc* outDir;
NimStringDesc* prefixDir;
NimStringDesc* libpath;
NimStringDesc* nimcacheDir;
tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* dllOverrides;
tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* moduleOverrides;
NimStringDesc* projectName;
NimStringDesc* projectPath;
NimStringDesc* projectFull;
NIM_BOOL projectIsStdin;
NI32 projectMainIdx;
NimStringDesc* command;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* commandArgs;
NIM_BOOL keepComments;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* implicitImports;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* implicitIncludes;
NimStringDesc* docSeeSrcUrl;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* cIncludes;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* cLibs;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* cLinkedLibs;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* externalToLink;
NimStringDesc* linkOptionsCmd;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* compileOptionsCmd;
NimStringDesc* linkOptions;
NimStringDesc* compileOptions;
NimStringDesc* ccompilerpath;
tySequence_pK3qSsBZwdXd6qyUMkd5Jw* toCompile;
tyProc_QYEVXrYc9beQ379crS3rzqRA suggestionResultHook;
NI suggestVersion;
NI suggestMaxResults;
tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q lastLineInfo;
tyProc_Q1W5D85O9cNu3iq9cZ9alS9aWA writelnHook;
tyProc_22mgIiTBBoqNe1T0FSw9ahQ structuredErrorHook;
NimStringDesc* cppCustomNamespace;
};
typedef NU8 tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ;
typedef NU8 tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg;
typedef NU8 tyEnum_TNimKind_jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag_v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc_ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc_WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {
NI size;
tyEnum_TNimKind_jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag_v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc_ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc_WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
struct RootObj {
TNimType* m_type;
};
struct Exception {
  RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence_uB9b75OUPRENsBAu4AnoePA* trace;
NU raiseId;
Exception* up;
};
typedef struct {
N_NIMCALL_PTR(NIM_BOOL, ClP_0) (Exception* e, void* ClE_0);
void* ClE_0;
} tyProc_NT9bSe2DDkjdtx7j9aov2Z6g;
struct TSafePoint {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
tyProc_NT9bSe2DDkjdtx7j9aov2Z6g raiseAction;
};
typedef NIM_CHAR tyArray_dTlC27m9c9aWd5dvuePYanug[256];
typedef NU8 tyEnum_TNimNodeKind_unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind_unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct tyTuple_UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA {
NI a;
NI b;
};
struct tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg {
  RootObj Sup;
NI counter;
tySequence_xv3aaFd3JCw8NbmALHiezQ* data;
tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ mode;
};
struct tyTuple_sPaDkVPSC0MkcoXCxPH9ccA {
NimStringDesc* Field0;
NimStringDesc* Field1;
NIM_BOOL Field2;
};
typedef NCSTRING tyUncheckedArray_nvS6J9clHMUMHfoZd8Ad2zg[1];
struct tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g {
NI refcount;
TNimType* typ;
};
struct tyObject_GcStack_7fytPA5bBsob6See21YMRA {
void* bottom;
};
struct tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w {
NI len;
NI cap;
tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk_tXn60W2f8h3jgAYdEmy5NQ* tyArray_SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef NU32 tyArray_BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk_Rv9c70Uhp2TytkX7eH78qEg* tyArray_N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray_N1u1nqOgmuJN9cSZrnMHgOQ tyArray_B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk_W0r8S0Y3UGke6T9bIUWnnuw* tyArray_lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet_EZObFrE3NC9bIb3YMkY9crZA {
tyArray_lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw* tyArray_0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw {
tyArray_0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple_ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk_Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple_ujsjpB2O9cjj3uDHsXbnSzg tyArray_LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks_PDV1HBZ8CQSQJC9aOBFNRSg {
NI len;
tyArray_LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks_PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion_x81NhDv59b8ercDZ9bi85jyg {
NI minLargeObj;
NI maxLargeObj;
tyArray_SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
NU32 flBitmap;
tyArray_BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray_B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk_XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet_EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode_IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks_PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
};
struct tyObject_GcStat_0RwLoVBHZPfUAcLczmfQAg {
NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet_jG87P0AI9aZtss9ccTYBIISQ {
NI counter;
NI max;
tyObject_PageDesc_fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc_fublkgIY4LG3mT51LU2WHg** data;
};
struct tyObject_GcHeap_1TRH1TZMaVZTnLNcIHuNFQ {
tyObject_GcStack_7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion_x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat_0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet_jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w additionalRoots;
NI gcThreadId;
};
typedef NU8 tyEnum_TMsgKind_29cbg2fC1z5iM1PAI28kR5w;
struct tyTuple_z822nu9bFF1AlQnLrHjdwpA {
tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q Field0;
NimStringDesc* Field1;
};
struct tyTuple_xYhUhS7X82rKTqbT9bRfCnw {
NI Field0;
NimStringDesc* Field1;
NI32 Field2;
};
struct tyObject_TFileInfo_GE3hAakXKOEpch4ap3zXAw {
NimStringDesc* fullPath;
NimStringDesc* projPath;
NimStringDesc* shortName;
tyObject_RopeObj_OFzf0kSiPTcNreUIeJgWVA* quotedName;
tyObject_RopeObj_OFzf0kSiPTcNreUIeJgWVA* quotedFullName;
tySequence_sM4lkSb7zS6F7OVMvW9cffQ* lines;
NimStringDesc* dirtyfile;
NimStringDesc* hash;
NIM_BOOL dirty;
};
struct tyTuple_QeWl6B6ffS4pU6WWrtcrDw {
NI Field0;
NimStringDesc* Field1;
};
typedef NU8 tySet_tyEnum_CfileFlag_Vl9c9ayddDuXiWtnWTsEYGsA;
struct tyObject_Cfile_i9cKq1ZGd1wgagjUEHLVFtg {
NimStringDesc* nimname;
NimStringDesc* cname;
NimStringDesc* obj;
tySet_tyEnum_CfileFlag_Vl9c9ayddDuXiWtnWTsEYGsA flags;
};
struct tyObject_StackTraceEntry_oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence_sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence_tNFrR3kRuS1FSwuiLGoSSA {
  TGenericSeq Sup;
  tyTuple_z822nu9bFF1AlQnLrHjdwpA data[SEQ_DECL_SIZE];
};
struct tySequence_7lEisrXlQEzwtUKW5pzRCw {
  TGenericSeq Sup;
  tyTuple_xYhUhS7X82rKTqbT9bRfCnw data[SEQ_DECL_SIZE];
};
struct tySequence_Zi9cGbCWofbtABoHJ5RbLNQ {
  TGenericSeq Sup;
  tyObject_TFileInfo_GE3hAakXKOEpch4ap3zXAw data[SEQ_DECL_SIZE];
};
struct tySequence_4eRCaZmrYLLw2k30GPTiMw {
  TGenericSeq Sup;
  tyTuple_QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE];
};
struct tySequence_pK3qSsBZwdXd6qyUMkd5Jw {
  TGenericSeq Sup;
  tyObject_Cfile_i9cKq1ZGd1wgagjUEHLVFtg data[SEQ_DECL_SIZE];
};
struct tySequence_uB9b75OUPRENsBAu4AnoePA {
  TGenericSeq Sup;
  tyObject_StackTraceEntry_oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
};
struct tySequence_xv3aaFd3JCw8NbmALHiezQ {
  TGenericSeq Sup;
  tyTuple_sPaDkVPSC0MkcoXCxPH9ccA data[SEQ_DECL_SIZE];
};
static N_INLINE(NIM_BOOL, contains_3L9ahf7LYzqjU9bJ3kGRq42Qsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item);
static N_INLINE(NI, find_eBcAkjaD0IwfsG3Z9b0YwOAsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item);
N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq__RkPToIJrmXtRS03VT1CneA)(NimStringDesc* x, NimStringDesc* y);
static N_INLINE(NI, addInt)(NI a, NI b);
N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(void, insert_qXnbI9b45z8apamwI0NlLCQ)(tySequence_sM4lkSb7zS6F7OVMvW9cffQ** x, NimStringDesc* item, NI i);
N_LIB_PRIVATE N_NIMCALL(void, addPathRec_UEd9aTJg0qrTrAR7KkfO8UA)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* dir, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info);
N_LIB_PRIVATE N_NIMCALL(tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg*, nstnewStringTable)(tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ mode);
static N_INLINE(NI, subInt)(NI a, NI b);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem_9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem_zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, slash__gEyhbzZ1UcxyenWRLJRXNQ)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NIM_BOOL, dirExists_AWUc3v8Mlad7tvNYF3Ak8Qos)(NimStringDesc* dir);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsDir)(NimStringDesc* dir);
N_LIB_PRIVATE N_NIMCALL(void, addPackage_Z7wC8Za0js7gE4MP4B7iXQ)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* packages, NimStringDesc* p, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info);
N_LIB_PRIVATE N_NIMCALL(void, getPathVersion_y9bUp9cafyWC25meiwDsmOUg)(NimStringDesc* p, tyTuple_UV3llMMYFckfui8YMBuUZA* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStr)(NimStringDesc* s, NimStringDesc* sub, NI start, NI last);
N_LIB_PRIVATE N_NIMCALL(NI, rfind_RBQvFC1fmmUZmBD9cXvpZnA)(NimStringDesc* s, NIM_CHAR sub, NI start);
static N_INLINE(NimStringDesc*, X5BX5D__FPvLvuwqfYMFkcbGfPM8QQsystem)(NimStringDesc* s, tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA x);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
static N_INLINE(NI, chckRange)(NI i, NI a, NI b);
N_NOINLINE(void, raiseRangeError)(NI64 val);
static N_INLINE(tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA, dotdot__BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr_iGg0RIKceRvsmvq8FUHOEw)(NimStringDesc* s, NI first);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isValidVersion_0dgQGhHZzK1BiTw7dN6vSQ)(NimStringDesc* v);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, newVersion_W3iW3li9akBsyuI9bUmwiOHg)(NimStringDesc* ver);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem_i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lt__FTCMslDJn4CRjlKnYuYwVQ)(NimStringDesc* ver, NimStringDesc* ver2);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isSpecial_AdvmA61HHSBH32bsbmUbTA)(NimStringDesc* ver);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(tySequence_sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitChar)(NimStringDesc* s, NIM_CHAR sep, NI maxsplit);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseInt)(NimStringDesc* s, NI* number, NI start);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getOrDefault_2a0cbxcfpWcXtK45m9bR5Kg)(tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* t, NimStringDesc* key, NimStringDesc* default_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsthasKey)(tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* t, NimStringDesc* key);
N_LIB_PRIVATE N_NIMCALL(void, nstPut)(tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* t, NimStringDesc* key, NimStringDesc* val);
N_LIB_PRIVATE N_NIMCALL(void, localError_NF6kBGchnhQYPbCedyefVA)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info, NimStringDesc* arg);
N_LIB_PRIVATE N_NIMCALL(tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg, getSymlinkFileKind_wTnLPNAWjgwVnuiJ9ax0ZGQ)(NimStringDesc* path);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(void, reraiseException)(void);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(void, addNimblePath_LofaeXg9cmO8pKsmWT9a9bH9bw)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* p, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info);
static N_INLINE(NIM_BOOL, eqeq__aqip9cmQIuefPKdd25wuEEwsystem)(NCSTRING x, NCSTRING y);
N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(void, decRef_AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(void, rtlAddZCT_AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT_Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq_Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell_QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
N_LIB_PRIVATE N_NIMCALL(tySequence_sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitLines)(NimStringDesc* s, NIM_BOOL keepEol);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readFile_4PGnM9bWmsH0Nu7dnr3XzgA)(NimStringDesc* filename);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosisAbsolute)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(void, message_mMj7lrOf3zBP9bl69amiKu5g)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info, tyEnum_TMsgKind_29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg);
extern TSafePoint* excHandler_rqLlY5bs9atDw2OXYqJEn5g;
extern TSafePoint* excHandler_rqLlY5bs9atDw2OXYqJEn5g;
extern TNimType NTI_UV3llMMYFckfui8YMBuUZA_;
extern TSafePoint* excHandler_rqLlY5bs9atDw2OXYqJEn5g;
extern TSafePoint* excHandler_rqLlY5bs9atDw2OXYqJEn5g;
extern TNimType NTI_sM4lkSb7zS6F7OVMvW9cffQ_;
extern tyObject_GcHeap_1TRH1TZMaVZTnLNcIHuNFQ gch_IcYaEuuWivYAS86vFMTS3Q;
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_7, ".", 1);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_8, "..", 2);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_9, "-#", 2);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_17, "/Users/travis/build/nim-lang/nightlies/nim/e7471cebae2a404f3e42"
"39f199f5a0c422484aac/compiler/nimblecmd.nim(25, 11) `ver.len == "
"0 or ver[0] in {\'#\', \'\\x00\'} + Digits` Wrong version: ", 181);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_18, "#head", 5);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_21, "invalid package name: ", 22);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_22, "*.nimble-link", 13);
STRING_LITERAL(TM_asNQM9aynXXg9ccUABbReyew_25, "/Users/travis/build/nim-lang/nightlies/nim/e7471cebae2a404f3e42"
"39f199f5a0c422484aac/lib/pure/os.nim(1766, 15) `f336264.gl_pathv"
"[i336270] != nil` ", 145);

static N_INLINE(NI, addInt)(NI a, NI b) {
	NI result;
{	result = (NI)0;
	result = (NI)((NU64)(a) + (NU64)(b));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(result ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(result ^ b));
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	raiseOverflow();
	}BeforeRet_: ;
	return result;
}

static N_INLINE(NI, find_eBcAkjaD0IwfsG3Z9b0YwOAsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item) {
	NI result;
{	result = (NI)0;
	{
		NimStringDesc* i;
		NI i_2;
		i = (NimStringDesc*)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				NI TM_asNQM9aynXXg9ccUABbReyew_2;
				NI TM_asNQM9aynXXg9ccUABbReyew_3;
				if (!(i_2 < aLen_0)) goto LA3;
				if ((NU)(i_2) >= (NU)(aLen_0)) raiseIndexError2(i_2,aLen_0-1);
				i = a[i_2];
				{
					NIM_BOOL T6_;
					T6_ = (NIM_BOOL)0;
					T6_ = eqeq__RkPToIJrmXtRS03VT1CneA(i, item);
					if (!T6_) goto LA7_;
					goto BeforeRet_;
				}
				LA7_: ;
				TM_asNQM9aynXXg9ccUABbReyew_2 = addInt(result, ((NI) 1));
				result = (NI)(TM_asNQM9aynXXg9ccUABbReyew_2);
				TM_asNQM9aynXXg9ccUABbReyew_3 = addInt(i_2, ((NI) 1));
				i_2 = (NI)(TM_asNQM9aynXXg9ccUABbReyew_3);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	}BeforeRet_: ;
	return result;
}

static N_INLINE(NIM_BOOL, contains_3L9ahf7LYzqjU9bJ3kGRq42Qsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item) {
	NIM_BOOL result;
	NI T1_;
{	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = find_eBcAkjaD0IwfsG3Z9b0YwOAsystem(a, aLen_0, item);
	result = (((NI) 0) <= T1_);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}

N_LIB_PRIVATE N_NIMCALL(void, addPath_yQoptEnH9cvj9cZKgjcndthg)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* path, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info) {
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = contains_3L9ahf7LYzqjU9bJ3kGRq42Qsystem((*conf).searchPaths->data, ((*conf).searchPaths ? (*conf).searchPaths->Sup.len : 0), path);
		if (!!(T3_)) goto LA4_;
		insert_qXnbI9b45z8apamwI0NlLCQ((&(*conf).searchPaths), path, ((NI) 0));
	}
	LA4_: ;
}

static N_INLINE(NI, subInt)(NI a, NI b) {
	NI result;
{	result = (NI)0;
	result = (NI)((NU64)(a) - (NU64)(b));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(result ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(result ^ (NI)((NU64) ~(b))));
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	raiseOverflow();
	}BeforeRet_: ;
	return result;
}

static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) {
	NCSTRING result;
	result = (NCSTRING)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (s == NIM_NIL);
		if (T3_) goto LA4_;
		T3_ = ((*s).Sup.len == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		result = "";
	}
	goto LA1_;
	LA5_: ;
	{
		result = ((NCSTRING) ((*s).data));
	}
	LA1_: ;
	return result;
}

static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
	(*s).hasRaiseAction = NIM_FALSE;
	(*s).prev = excHandler_rqLlY5bs9atDw2OXYqJEn5g;
	excHandler_rqLlY5bs9atDw2OXYqJEn5g = s;
}

static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
	int result;
	result = (int)0;
	result = memcmp(a, b, ((size_t) (size)));
	return result;
}

static N_INLINE(NIM_BOOL, equalMem_9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) {
	NIM_BOOL result;
	int T1_;
	result = (NIM_BOOL)0;
	T1_ = (int)0;
	T1_ = nimCmpMem(a, b, size);
	result = (T1_ == ((NI32) 0));
	return result;
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NI alen;
	NI blen;
{	result = (NIM_BOOL)0;
	alen = (a ? a->Sup.len : 0);
	blen = (b ? b->Sup.len : 0);
	{
		if (!(alen == blen)) goto LA3_;
		{
			if (!(alen == ((NI) 0))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
		LA7_: ;
		result = equalMem_9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
		goto BeforeRet_;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}

static N_INLINE(void, nimSetMem_zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a, v, ((size_t) (size)));
}

static N_INLINE(void, nimZeroMem)(void* p, NI size) {
	nimSetMem_zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}

static N_INLINE(NIM_BOOL, dirExists_AWUc3v8Mlad7tvNYF3Ak8Qos)(NimStringDesc* dir) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = nosexistsDir(dir);
	return result;
}

static N_INLINE(NI, chckRange)(NI i, NI a, NI b) {
	NI result;
{	result = (NI)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (a <= i);
		if (!(T3_)) goto LA4_;
		T3_ = (i <= b);
		LA4_: ;
		if (!T3_) goto LA5_;
		result = i;
		goto BeforeRet_;
	}
	goto LA1_;
	LA5_: ;
	{
		raiseRangeError(((NI64) (i)));
	}
	LA1_: ;
	}BeforeRet_: ;
	return result;
}

static N_INLINE(NimStringDesc*, X5BX5D__FPvLvuwqfYMFkcbGfPM8QQsystem)(NimStringDesc* s, tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA x) {
	NimStringDesc* result;
	NI a;
	NI L;
	NI TM_asNQM9aynXXg9ccUABbReyew_11;
	NI TM_asNQM9aynXXg9ccUABbReyew_12;
	result = (NimStringDesc*)0;
	a = x.a;
	TM_asNQM9aynXXg9ccUABbReyew_11 = subInt(x.b, a);
	TM_asNQM9aynXXg9ccUABbReyew_12 = addInt((NI)(TM_asNQM9aynXXg9ccUABbReyew_11), ((NI) 1));
	L = (NI)(TM_asNQM9aynXXg9ccUABbReyew_12);
	result = mnewString(((NI)chckRange(L, ((NI) 0), ((NI) IL64(9223372036854775807)))));
	{
		NI i;
		NI i_2;
		i = (NI)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				NI TM_asNQM9aynXXg9ccUABbReyew_13;
				NI TM_asNQM9aynXXg9ccUABbReyew_14;
				if (!(i_2 < L)) goto LA3;
				i = i_2;
				if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
				TM_asNQM9aynXXg9ccUABbReyew_13 = addInt(i, a);
				if ((NU)((NI)(TM_asNQM9aynXXg9ccUABbReyew_13)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM_asNQM9aynXXg9ccUABbReyew_13),(s ? s->Sup.len : 0)-1);
				result->data[i] = s->data[(NI)(TM_asNQM9aynXXg9ccUABbReyew_13)];
				TM_asNQM9aynXXg9ccUABbReyew_14 = addInt(i_2, ((NI) 1));
				i_2 = (NI)(TM_asNQM9aynXXg9ccUABbReyew_14);
			} LA3: ;
		}
	}
	return result;
}

static N_INLINE(tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA, dotdot__BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b) {
	tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA result;
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA));
	chckNil((void*)(&result));
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA));
	result.a = a;
	result.b = b;
	return result;
}

N_LIB_PRIVATE N_NIMCALL(void, getPathVersion_y9bUp9cafyWC25meiwDsmOUg)(NimStringDesc* p, tyTuple_UV3llMMYFckfui8YMBuUZA* Result) {
	NI sepIdx;
	NI TM_asNQM9aynXXg9ccUABbReyew_15;
	tyObject_HSlice_EE5dzjqoOrHT6HJhIPXAvA T16_;
	NI TM_asNQM9aynXXg9ccUABbReyew_16;
{	chckNil((void*)Result);
	genericReset((void*)Result, (&NTI_UV3llMMYFckfui8YMBuUZA_));
	unsureAsgnRef((void**) (&(*Result).Field0), ((NimStringDesc*) NIM_NIL));
	unsureAsgnRef((void**) (&(*Result).Field1), ((NimStringDesc*) NIM_NIL));
	sepIdx = nsuFindStr(p, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_9), ((NI) 0), ((NI) 0));
	{
		if (!(sepIdx == ((NI) -1))) goto LA3_;
		sepIdx = rfind_RBQvFC1fmmUZmBD9cXvpZnA(p, 45, ((NI) -1));
	}
	LA3_: ;
	{
		if (!(sepIdx == ((NI) -1))) goto LA7_;
		unsureAsgnRef((void**) (&(*Result).Field0), copyString(p));
		goto BeforeRet_;
	}
	LA7_: ;
	{
		NI i;
		NI colontmp_;
		NI i_2;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = (p ? p->Sup.len : 0);
		i_2 = sepIdx;
		{
			while (1) {
				NI TM_asNQM9aynXXg9ccUABbReyew_10;
				if (!(i_2 < colontmp_)) goto LA11;
				i = i_2;
				{
					if ((NU)(i) >= (NU)(p ? p->Sup.len : 0)) raiseIndexError2(i,(p ? p->Sup.len : 0)-1);
					if (!(((NU8)(p->data[i])) == ((NU8)(47)) || ((NU8)(p->data[i])) == ((NU8)(47)))) goto LA14_;
					unsureAsgnRef((void**) (&(*Result).Field0), copyString(p));
					goto BeforeRet_;
				}
				LA14_: ;
				TM_asNQM9aynXXg9ccUABbReyew_10 = addInt(i_2, ((NI) 1));
				i_2 = (NI)(TM_asNQM9aynXXg9ccUABbReyew_10);
			} LA11: ;
		}
	}
	TM_asNQM9aynXXg9ccUABbReyew_15 = subInt(sepIdx, ((NI) 1));
	T16_ = dotdot__BokNSDrKN1xmV1nA01G9brAsystem(((NI) 0), (NI)(TM_asNQM9aynXXg9ccUABbReyew_15));
	unsureAsgnRef((void**) (&(*Result).Field0), X5BX5D__FPvLvuwqfYMFkcbGfPM8QQsystem(p, T16_));
	TM_asNQM9aynXXg9ccUABbReyew_16 = addInt(sepIdx, ((NI) 1));
	unsureAsgnRef((void**) (&(*Result).Field1), substr_iGg0RIKceRvsmvq8FUHOEw(p, (NI)(TM_asNQM9aynXXg9ccUABbReyew_16)));
	}BeforeRet_: ;
}

N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isValidVersion_0dgQGhHZzK1BiTw7dN6vSQ)(NimStringDesc* v) {
	NIM_BOOL result;
{	result = (NIM_BOOL)0;
	{
		if (!(((NI) 0) < (v ? v->Sup.len : 0))) goto LA3_;
		{
			if ((NU)(((NI) 0)) >= (NU)(v ? v->Sup.len : 0)) raiseIndexError2(((NI) 0),(v ? v->Sup.len : 0)-1);
			if (!(((NU8)(v->data[((NI) 0)])) == ((NU8)(35)) || ((NU8)(v->data[((NI) 0)])) >= ((NU8)(48)) && ((NU8)(v->data[((NI) 0)])) <= ((NU8)(57)))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
		LA7_: ;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}

static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}

static N_INLINE(void, copyMem_i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
	nimCopyMem(dest, source, size);
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	{
		if (!!((src == NIM_NIL))) goto LA3_;
		copyMem_i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}

N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, newVersion_W3iW3li9akBsyuI9bUmwiOHg)(NimStringDesc* ver) {
	NimStringDesc* result;
{	result = (NimStringDesc*)0;
	{
		NIM_BOOL T3_;
		NimStringDesc* T7_;
		T3_ = (NIM_BOOL)0;
		T3_ = ((ver ? ver->Sup.len : 0) == ((NI) 0));
		if (T3_) goto LA4_;
		if ((NU)(((NI) 0)) >= (NU)(ver ? ver->Sup.len : 0)) raiseIndexError2(((NI) 0),(ver ? ver->Sup.len : 0)-1);
		T3_ = (((NU8)(ver->data[((NI) 0)])) == ((NU8)(0)) || ((NU8)(ver->data[((NI) 0)])) == ((NU8)(35)) || ((NU8)(ver->data[((NI) 0)])) >= ((NU8)(48)) && ((NU8)(ver->data[((NI) 0)])) <= ((NU8)(57)));
		LA4_: ;
		if (!!(T3_)) goto LA5_;
		T7_ = (NimStringDesc*)0;
		T7_ = rawNewString((ver ? ver->Sup.len : 0) + 181);
appendString(T7_, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_17));
appendString(T7_, ver);
		failedAssertImpl_W9cjVocn1tjhW7p7xohJj6A(T7_);
	}
	LA5_: ;
	result = copyString(ver);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}

N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isSpecial_AdvmA61HHSBH32bsbmUbTA)(NimStringDesc* ver) {
	NIM_BOOL result;
	NIM_BOOL T1_;
{	result = (NIM_BOOL)0;
	T1_ = (NIM_BOOL)0;
	T1_ = (((NI) 0) < (ver ? ver->Sup.len : 0));
	if (!(T1_)) goto LA2_;
	if ((NU)(((NI) 0)) >= (NU)(ver ? ver->Sup.len : 0)) raiseIndexError2(((NI) 0),(ver ? ver->Sup.len : 0)-1);
	T1_ = ((NU8)(ver->data[((NI) 0)]) == (NU8)(35));
	LA2_: ;
	result = T1_;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}

N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lt__FTCMslDJn4CRjlKnYuYwVQ)(NimStringDesc* ver, NimStringDesc* ver2) {
	NIM_BOOL result;
	tySequence_sM4lkSb7zS6F7OVMvW9cffQ* sVer;
	tySequence_sM4lkSb7zS6F7OVMvW9cffQ* sVer2;
{	result = (NIM_BOOL)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = isSpecial_AdvmA61HHSBH32bsbmUbTA(ver);
		if (T3_) goto LA4_;
		T3_ = isSpecial_AdvmA61HHSBH32bsbmUbTA(ver2);
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			NIM_BOOL T9_;
			NimStringDesc* T11_;
			NimStringDesc* T14_;
			T9_ = (NIM_BOOL)0;
			T9_ = isSpecial_AdvmA61HHSBH32bsbmUbTA(ver2);
			if (!(T9_)) goto LA10_;
			T11_ = (NimStringDesc*)0;
			T11_ = nsuNormalize(ver2);
			T9_ = eqStrings(T11_, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_18));
			LA10_: ;
			if (!T9_) goto LA12_;
			T14_ = (NimStringDesc*)0;
			T14_ = nsuNormalize(ver);
			result = !(eqStrings(T14_, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_18)));
			goto BeforeRet_;
		}
		LA12_: ;
		{
			NIM_BOOL T17_;
			NimStringDesc* T20_;
			T17_ = (NIM_BOOL)0;
			T17_ = isSpecial_AdvmA61HHSBH32bsbmUbTA(ver2);
			if (!!(T17_)) goto LA18_;
			T20_ = (NimStringDesc*)0;
			T20_ = nsuNormalize(ver);
			result = !(eqStrings(T20_, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_18)));
			goto BeforeRet_;
		}
		LA18_: ;
	}
	LA5_: ;
	sVer = nsuSplitChar(ver, 46, ((NI) -1));
	sVer2 = nsuSplitChar(ver2, 46, ((NI) -1));
	{
		NI i;
		NI colontmp_;
		NI T22_;
		NI T23_;
		NI TM_asNQM9aynXXg9ccUABbReyew_19;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		T22_ = (sVer ? sVer->Sup.len : 0);
		T23_ = (sVer2 ? sVer2->Sup.len : 0);
		TM_asNQM9aynXXg9ccUABbReyew_19 = subInt(((T22_ >= T23_) ? T22_ : T23_), ((NI) 1));
		colontmp_ = (NI)(TM_asNQM9aynXXg9ccUABbReyew_19);
		res = ((NI) 0);
		{
			while (1) {
				NI sVerI;
				NI sVerI2;
				NI TM_asNQM9aynXXg9ccUABbReyew_20;
				if (!(res <= colontmp_)) goto LA25;
				i = res;
				sVerI = ((NI) 0);
				{
					NI T28_;
					NI T31_;
					T28_ = (sVer ? sVer->Sup.len : 0);
					if (!(i < T28_)) goto LA29_;
					if ((NU)(i) >= (NU)(sVer ? sVer->Sup.len : 0)) raiseIndexError2(i,(sVer ? sVer->Sup.len : 0)-1);
					T31_ = (NI)0;
					T31_ = npuParseInt(sVer->data[i], (&sVerI), ((NI) 0));
					(void)(T31_);
				}
				LA29_: ;
				sVerI2 = ((NI) 0);
				{
					NI T34_;
					NI T37_;
					T34_ = (sVer2 ? sVer2->Sup.len : 0);
					if (!(i < T34_)) goto LA35_;
					if ((NU)(i) >= (NU)(sVer2 ? sVer2->Sup.len : 0)) raiseIndexError2(i,(sVer2 ? sVer2->Sup.len : 0)-1);
					T37_ = (NI)0;
					T37_ = npuParseInt(sVer2->data[i], (&sVerI2), ((NI) 0));
					(void)(T37_);
				}
				LA35_: ;
				{
					if (!(sVerI < sVerI2)) goto LA40_;
					result = NIM_TRUE;
					goto BeforeRet_;
				}
				goto LA38_;
				LA40_: ;
				{
					if (!(sVerI == sVerI2)) goto LA43_;
				}
				goto LA38_;
				LA43_: ;
				{
					result = NIM_FALSE;
					goto BeforeRet_;
				}
				LA38_: ;
				TM_asNQM9aynXXg9ccUABbReyew_20 = addInt(res, ((NI) 1));
				res = (NI)(TM_asNQM9aynXXg9ccUABbReyew_20);
			} LA25: ;
		}
	}
	}BeforeRet_: ;
	return result;
}

N_LIB_PRIVATE N_NIMCALL(void, addPackage_Z7wC8Za0js7gE4MP4B7iXQ)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* packages, NimStringDesc* p, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info) {
	tyTuple_UV3llMMYFckfui8YMBuUZA T1_;
	NimStringDesc* name;
	NimStringDesc* ver;
	nimZeroMem((void*)(&T1_), sizeof(tyTuple_UV3llMMYFckfui8YMBuUZA));
	getPathVersion_y9bUp9cafyWC25meiwDsmOUg(p, (&T1_));
	name = (NimStringDesc*)0;
	name = T1_.Field0;
	ver = (NimStringDesc*)0;
	ver = T1_.Field1;
	{
		NIM_BOOL T4_;
		NimStringDesc* version;
		T4_ = (NIM_BOOL)0;
		T4_ = isValidVersion_0dgQGhHZzK1BiTw7dN6vSQ(ver);
		if (!T4_) goto LA5_;
		version = newVersion_W3iW3li9akBsyuI9bUmwiOHg(ver);
		{
			NIM_BOOL T9_;
			NimStringDesc* T10_;
			NimStringDesc* T11_;
			NIM_BOOL T13_;
			T9_ = (NIM_BOOL)0;
			T10_ = (NimStringDesc*)0;
			T10_ = getOrDefault_2a0cbxcfpWcXtK45m9bR5Kg(packages, name, ((NimStringDesc*) NIM_NIL));
			T11_ = (NimStringDesc*)0;
			T11_ = newVersion_W3iW3li9akBsyuI9bUmwiOHg(T10_);
			T9_ = lt__FTCMslDJn4CRjlKnYuYwVQ(T11_, version);
			if (T9_) goto LA12_;
			T13_ = (NIM_BOOL)0;
			T13_ = nsthasKey(packages, name);
			T9_ = !(T13_);
			LA12_: ;
			if (!T9_) goto LA14_;
			nstPut(packages, name, version);
		}
		LA14_: ;
	}
	goto LA2_;
	LA5_: ;
	{
		NimStringDesc* T17_;
		T17_ = (NimStringDesc*)0;
		T17_ = rawNewString((p ? p->Sup.len : 0) + 22);
appendString(T17_, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_21));
appendString(T17_, p);
		localError_NF6kBGchnhQYPbCedyefVA(conf, info, T17_);
	}
	LA2_: ;
}

static N_INLINE(void, popSafePoint)(void) {
	excHandler_rqLlY5bs9atDw2OXYqJEn5g = (*excHandler_rqLlY5bs9atDw2OXYqJEn5g).prev;
}

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

static N_INLINE(NIM_BOOL, eqeq__aqip9cmQIuefPKdd25wuEEwsystem)(NCSTRING x, NCSTRING y) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	{
		if (!(((void*) (x)) == ((void*) (y)))) goto LA3_;
		result = NIM_TRUE;
	}
	goto LA1_;
	LA3_: ;
	{
		NIM_BOOL T6_;
		T6_ = (NIM_BOOL)0;
		T6_ = (x == 0);
		if (T6_) goto LA7_;
		T6_ = (y == 0);
		LA7_: ;
		if (!T6_) goto LA8_;
		result = NIM_FALSE;
	}
	goto LA1_;
	LA8_: ;
	{
		int T11_;
		T11_ = (int)0;
		T11_ = strcmp(x, y);
		result = (T11_ == ((NI32) 0));
	}
	LA1_: ;
	return result;
}

static N_INLINE(void, rtlAddZCT_AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* c) {
	addZCT_Y66tOYFjgwJ0k4aLz4bc0Q((&gch_IcYaEuuWivYAS86vFMTS3Q.zct), c);
}

static N_INLINE(void, decRef_AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) - (NU64)(((NI) 8)));
	{
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3_;
		rtlAddZCT_AT1eRuflKWyTTBdLjEDZbg_2system(c);
	}
	LA3_: ;
}

static N_INLINE(tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell_QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) {
	tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* result;
	result = (tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g*)0;
	result = ((tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g*) ((NI)((NU64)(((NI) (ptrdiff_t) (usr))) - (NU64)(((NI) 16)))));
	return result;
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g* T1_;
	T1_ = (tyObject_Cell_1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = usrToCell_QFQqcLB3lgOdwipkv9a60xwsystem(p);
	decRef_AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
}

N_LIB_PRIVATE N_NIMCALL(void, addNimblePath_LofaeXg9cmO8pKsmWT9a9bH9bw)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* p, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info) {
	NimStringDesc* path;
	tySequence_sM4lkSb7zS6F7OVMvW9cffQ* nimbleLinks;
	tySequence_sM4lkSb7zS6F7OVMvW9cffQ* result;
	path = copyString(p);
	result = NIM_NIL;
	{
		NimStringDesc* x;
		NimStringDesc* colontmp_;
		glob_t f;
		NI res;
		int T2_;
		TSafePoint TM_asNQM9aynXXg9ccUABbReyew_23;
		x = (NimStringDesc*)0;
		colontmp_ = (NimStringDesc*)0;
		colontmp_ = slash__gEyhbzZ1UcxyenWRLJRXNQ(p, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_22));
		nimZeroMem((void*)(&f), sizeof(glob_t));
		res = (NI)0;
		f.gl_offs = ((NI) 0);
		f.gl_pathc = ((NI) 0);
		f.gl_pathv = NIM_NIL;
		T2_ = (int)0;
		T2_ = glob(nimToCStringConv(colontmp_), ((int) 0), NIM_NIL, (&f));
		res = ((NI) (T2_));
		pushSafePoint(&TM_asNQM9aynXXg9ccUABbReyew_23);
		TM_asNQM9aynXXg9ccUABbReyew_23.status = setjmp(TM_asNQM9aynXXg9ccUABbReyew_23.context);
		if (TM_asNQM9aynXXg9ccUABbReyew_23.status == 0) {
			{
				if (!(res == ((NI) 0))) goto LA6_;
				{
					NI i;
					NI colontmp__2;
					NI TM_asNQM9aynXXg9ccUABbReyew_24;
					NI res_2;
					i = (NI)0;
					colontmp__2 = (NI)0;
					TM_asNQM9aynXXg9ccUABbReyew_24 = subInt(f.gl_pathc, ((NI) 1));
					colontmp__2 = (NI)(TM_asNQM9aynXXg9ccUABbReyew_24);
					res_2 = ((NI) 0);
					{
						while (1) {
							NimStringDesc* path_2;
							NI TM_asNQM9aynXXg9ccUABbReyew_26;
							if (!(res_2 <= colontmp__2)) goto LA10;
							i = res_2;
							{
								NIM_BOOL T13_;
								T13_ = (NIM_BOOL)0;
								T13_ = eqeq__aqip9cmQIuefPKdd25wuEEwsystem(f.gl_pathv[i], NIM_NIL);
								if (!!(!(T13_))) goto LA14_;
								failedAssertImpl_W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_25));
							}
							LA14_: ;
							path_2 = cstrToNimstr(f.gl_pathv[i]);
							{
								NI T20_;
								NimStringDesc* T21_;
								if (!NIM_TRUE) goto LA18_;
								x = path_2;
								result = (tySequence_sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI_sM4lkSb7zS6F7OVMvW9cffQ_));
								T20_ = result->Sup.len++;
								T21_ = (NimStringDesc*)0;
								T21_ = result->data[T20_]; result->data[T20_] = copyStringRC1(x);
								if (T21_) nimGCunrefNoCycle(T21_);
							}
							LA18_: ;
							TM_asNQM9aynXXg9ccUABbReyew_26 = addInt(res_2, ((NI) 1));
							res_2 = (NI)(TM_asNQM9aynXXg9ccUABbReyew_26);
						} LA10: ;
					}
				}
			}
			LA6_: ;
			popSafePoint();
		}
		else {
			popSafePoint();
		}
		{
			globfree((&f));
		}
		if (TM_asNQM9aynXXg9ccUABbReyew_23.status != 0) reraiseException();
	}
	nimbleLinks = result;
	{
		NI T26_;
		tySequence_sM4lkSb7zS6F7OVMvW9cffQ* nimbleLinkLines;
		NimStringDesc* T29_;
		T26_ = (nimbleLinks ? nimbleLinks->Sup.len : 0);
		if (!(((NI) 0) < T26_)) goto LA27_;
		if ((NU)(((NI) 0)) >= (NU)(nimbleLinks ? nimbleLinks->Sup.len : 0)) raiseIndexError2(((NI) 0),(nimbleLinks ? nimbleLinks->Sup.len : 0)-1);
		T29_ = (NimStringDesc*)0;
		T29_ = readFile_4PGnM9bWmsH0Nu7dnr3XzgA(nimbleLinks->data[((NI) 0)]);
		nimbleLinkLines = nsuSplitLines(T29_, NIM_FALSE);
		if ((NU)(((NI) 1)) >= (NU)(nimbleLinkLines ? nimbleLinkLines->Sup.len : 0)) raiseIndexError2(((NI) 1),(nimbleLinkLines ? nimbleLinkLines->Sup.len : 0)-1);
		path = copyString(nimbleLinkLines->data[((NI) 1)]);
		{
			NIM_BOOL T32_;
			T32_ = (NIM_BOOL)0;
			T32_ = nosisAbsolute(path);
			if (!!(T32_)) goto LA33_;
			path = slash__gEyhbzZ1UcxyenWRLJRXNQ(p, path);
		}
		LA33_: ;
	}
	LA27_: ;
	{
		NIM_BOOL T37_;
		T37_ = (NIM_BOOL)0;
		T37_ = contains_3L9ahf7LYzqjU9bJ3kGRq42Qsystem((*conf).searchPaths->data, ((*conf).searchPaths ? (*conf).searchPaths->Sup.len : 0), path);
		if (!!(T37_)) goto LA38_;
		message_mMj7lrOf3zBP9bl69amiKu5g(conf, info, ((tyEnum_TMsgKind_29cbg2fC1z5iM1PAI28kR5w) 55), path);
		insert_qXnbI9b45z8apamwI0NlLCQ((&(*conf).lazyPaths), path, ((NI) 0));
	}
	LA38_: ;
}

N_LIB_PRIVATE N_NIMCALL(void, addPathRec_UEd9aTJg0qrTrAR7KkfO8UA)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* dir, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info) {
	tyObject_StringTableObj_V5PVrt9bIxZEeV7lfvqqtNg* packages;
	NI pos;
	NI TM_asNQM9aynXXg9ccUABbReyew_4;
	packages = nstnewStringTable(((tyEnum_StringTableMode_G9c4wVDFIzf0xHmQvxso9a9cQ) 2));
	TM_asNQM9aynXXg9ccUABbReyew_4 = subInt((dir ? dir->Sup.len : 0), ((NI) 1));
	pos = (NI)(TM_asNQM9aynXXg9ccUABbReyew_4);
	{
		NI TM_asNQM9aynXXg9ccUABbReyew_5;
		if ((NU)(pos) >= (NU)(dir ? dir->Sup.len : 0)) raiseIndexError2(pos,(dir ? dir->Sup.len : 0)-1);
		if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3_;
		TM_asNQM9aynXXg9ccUABbReyew_5 = addInt(pos, ((NI) 1));
		pos = (NI)(TM_asNQM9aynXXg9ccUABbReyew_5);
	}
	LA3_: ;
	{
		tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg k;
		NimStringDesc* p;
		DIR* d;
		k = (tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg)0;
		p = (NimStringDesc*)0;
		d = opendir(nimToCStringConv(dir));
		{
			TSafePoint TM_asNQM9aynXXg9ccUABbReyew_6;
			if (!!((d == NIM_NIL))) goto LA8_;
			pushSafePoint(&TM_asNQM9aynXXg9ccUABbReyew_6);
			TM_asNQM9aynXXg9ccUABbReyew_6.status = setjmp(TM_asNQM9aynXXg9ccUABbReyew_6.context);
			if (TM_asNQM9aynXXg9ccUABbReyew_6.status == 0) {
				{
					while (1) {
						{
							struct dirent* x;
							NimStringDesc* y;
							x = readdir(d);
							{
								if (!(x == NIM_NIL)) goto LA16_;
								goto LA11;
							}
							LA16_: ;
							y = cstrToNimstr(((NCSTRING) ((*x).d_name)));
							{
								NIM_BOOL T20_;
								struct stat s;
								NimStringDesc* path;
								tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg k_2;
								T20_ = (NIM_BOOL)0;
								T20_ = !(eqStrings(y, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_7)));
								if (!(T20_)) goto LA21_;
								T20_ = !(eqStrings(y, ((NimStringDesc*) &TM_asNQM9aynXXg9ccUABbReyew_8)));
								LA21_: ;
								if (!T20_) goto LA22_;
								nimZeroMem((void*)(&s), sizeof(struct stat));
								path = slash__gEyhbzZ1UcxyenWRLJRXNQ(dir, y);
								{
									if (!NIM_TRUE) goto LA26_;
									y = copyString(path);
								}
								LA26_: ;
								k_2 = ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 0);
								{
									if (!!(((*x).d_type == ((NI8) 0)))) goto LA30_;
									{
										if (!((*x).d_type == ((NI8) 4))) goto LA34_;
										k_2 = ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 2);
									}
									LA34_: ;
									{
										if (!((*x).d_type == ((NI8) 10))) goto LA38_;
										{
											NIM_BOOL T42_;
											T42_ = (NIM_BOOL)0;
											T42_ = dirExists_AWUc3v8Mlad7tvNYF3Ak8Qos(path);
											if (!T42_) goto LA43_;
											k_2 = ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 3);
										}
										goto LA40_;
										LA43_: ;
										{
											k_2 = ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 1);
										}
										LA40_: ;
									}
									LA38_: ;
									k = k_2;
									p = y;
									{
										NIM_BOOL T48_;
										T48_ = (NIM_BOOL)0;
										T48_ = (k == ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 2));
										if (!(T48_)) goto LA49_;
										if ((NU)(pos) >= (NU)(p ? p->Sup.len : 0)) raiseIndexError2(pos,(p ? p->Sup.len : 0)-1);
										T48_ = !(((NU8)(p->data[pos]) == (NU8)(46)));
										LA49_: ;
										if (!T48_) goto LA50_;
										addPackage_Z7wC8Za0js7gE4MP4B7iXQ(conf, packages, p, info);
									}
									LA50_: ;
									goto LA13;
								}
								LA30_: ;
								{
									int T54_;
									T54_ = (int)0;
									T54_ = lstat(nimToCStringConv(path), (&s));
									if (!(T54_ < ((NI32) 0))) goto LA55_;
									goto LA11;
								}
								LA55_: ;
								{
									NIM_BOOL T59_;
									T59_ = (NIM_BOOL)0;
									T59_ = S_ISDIR(s.st_mode);
									if (!T59_) goto LA60_;
									k_2 = ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 2);
								}
								goto LA57_;
								LA60_: ;
								{
									NIM_BOOL T63_;
									T63_ = (NIM_BOOL)0;
									T63_ = S_ISLNK(s.st_mode);
									if (!T63_) goto LA64_;
									k_2 = getSymlinkFileKind_wTnLPNAWjgwVnuiJ9ax0ZGQ(path);
								}
								goto LA57_;
								LA64_: ;
								LA57_: ;
								k = k_2;
								p = y;
								{
									NIM_BOOL T68_;
									T68_ = (NIM_BOOL)0;
									T68_ = (k == ((tyEnum_PathComponent_9c1SIU9cO1wHcl09b703A9cDrg) 2));
									if (!(T68_)) goto LA69_;
									if ((NU)(pos) >= (NU)(p ? p->Sup.len : 0)) raiseIndexError2(pos,(p ? p->Sup.len : 0)-1);
									T68_ = !(((NU8)(p->data[pos]) == (NU8)(46)));
									LA69_: ;
									if (!T68_) goto LA70_;
									addPackage_Z7wC8Za0js7gE4MP4B7iXQ(conf, packages, p, info);
								}
								LA70_: ;
							}
							LA22_: ;
						} LA13: ;
					}
				} LA11: ;
				popSafePoint();
			}
			else {
				popSafePoint();
			}
			{
				int T74_;
				T74_ = (int)0;
				T74_ = closedir(d);
				(void)(T74_);
			}
			if (TM_asNQM9aynXXg9ccUABbReyew_6.status != 0) reraiseException();
		}
		LA8_: ;
	}
	{
		NimStringDesc* p_2;
		p_2 = (NimStringDesc*)0;
		{
			NimStringDesc* key;
			NimStringDesc* val;
			key = (NimStringDesc*)0;
			val = (NimStringDesc*)0;
			{
				NI h;
				NI colontmp_;
				NI T78_;
				NI res;
				h = (NI)0;
				colontmp_ = (NI)0;
				T78_ = (((*packages).data ? (*packages).data->Sup.len : 0)-1);
				colontmp_ = T78_;
				res = ((NI) 0);
				{
					while (1) {
						NI TM_asNQM9aynXXg9ccUABbReyew_27;
						if (!(res <= colontmp_)) goto LA80;
						h = res;
						{
							NimStringDesc* res_2;
							if ((NU)(h) >= (NU)((*packages).data ? (*packages).data->Sup.len : 0)) raiseIndexError2(h,((*packages).data ? (*packages).data->Sup.len : 0)-1);
							if (!(*packages).data->data[h].Field2) goto LA83_;
							if ((NU)(h) >= (NU)((*packages).data ? (*packages).data->Sup.len : 0)) raiseIndexError2(h,((*packages).data ? (*packages).data->Sup.len : 0)-1);
							key = (*packages).data->data[h].Field0;
							if ((NU)(h) >= (NU)((*packages).data ? (*packages).data->Sup.len : 0)) raiseIndexError2(h,((*packages).data ? (*packages).data->Sup.len : 0)-1);
							val = (*packages).data->data[h].Field1;
							{
								if (!((val ? val->Sup.len : 0) == ((NI) 0))) goto LA87_;
								res_2 = key;
							}
							goto LA85_;
							LA87_: ;
							{
								NimStringDesc* T90_;
								T90_ = (NimStringDesc*)0;
								T90_ = rawNewString((key ? key->Sup.len : 0) + (val ? val->Sup.len : 0) + 1);
appendString(T90_, key);
appendChar(T90_, 45);
appendString(T90_, val);
								res_2 = T90_;
							}
							LA85_: ;
							p_2 = res_2;
							addNimblePath_LofaeXg9cmO8pKsmWT9a9bH9bw(conf, p_2, info);
						}
						LA83_: ;
						TM_asNQM9aynXXg9ccUABbReyew_27 = addInt(res, ((NI) 1));
						res = (NI)(TM_asNQM9aynXXg9ccUABbReyew_27);
					} LA80: ;
				}
			}
		}
	}
}

N_LIB_PRIVATE N_NIMCALL(void, nimblePath_yQoptEnH9cvj9cZKgjcndthg_2)(tyObject_ConfigRefcolonObjectType__LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* path, tyObject_TLineInfo_WGx4rAexNXnczy1Avn646Q info) {
	addPathRec_UEd9aTJg0qrTrAR7KkfO8UA(conf, path, info);
	addNimblePath_LofaeXg9cmO8pKsmWT9a9bH9bw(conf, path, info);
}
