/* Generated by Nim Compiler v2.2.10 */
/* Compiled for: MacOSX, arm64, clang */
/* Command for C compiler:
   clang -c  -w -ferror-limit=3 -fno-strict-aliasing -pthread -isysroot /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -target arm64-apple-darwin24.2.0 -O3   -I/Users/runner/work/nightlies/nightlies/nim-2.2.10/lib -I/Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/src -o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@mbasic@scontext.nim.c.o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@mbasic@scontext.nim.c */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks

#include "nimbase.h"
#include <string.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
typedef struct tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ;
typedef struct NimStrPayload NimStrPayload;
typedef struct NimStringV2 NimStringV2;
typedef struct tyObject_Patterns__FXqyqR49aNa9c2SMD9akprhSg tyObject_Patterns__FXqyqR49aNa9c2SMD9akprhSg;
typedef struct tySequence__j9bhAvfiD9alXYEwmFnFGFNA tySequence__j9bhAvfiD9alXYEwmFnFGFNA;
typedef struct tySequence__j9bhAvfiD9alXYEwmFnFGFNA_Content tySequence__j9bhAvfiD9alXYEwmFnFGFNA_Content;
typedef struct tyObject_Table__ao79cQacnAZc5Mu0cN3jybg tyObject_Table__ao79cQacnAZc5Mu0cN3jybg;
typedef struct tySequence__SFipDZIkFtPcrLs0AGBBjQ tySequence__SFipDZIkFtPcrLs0AGBBjQ;
typedef struct tySequence__SFipDZIkFtPcrLs0AGBBjQ_Content tySequence__SFipDZIkFtPcrLs0AGBBjQ_Content;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content;
typedef struct tySequence__4eQHGndY6XBYpFOH09apV8Q tySequence__4eQHGndY6XBYpFOH09apV8Q;
typedef struct tySequence__4eQHGndY6XBYpFOH09apV8Q_Content tySequence__4eQHGndY6XBYpFOH09apV8Q_Content;
typedef struct tyObject_Table__8bDqb52Br017mlUSc5FIOw tyObject_Table__8bDqb52Br017mlUSc5FIOw;
typedef struct tySequence__tas7jtBybgwOq4KxPkjGjg tySequence__tas7jtBybgwOq4KxPkjGjg;
typedef struct tySequence__tas7jtBybgwOq4KxPkjGjg_Content tySequence__tas7jtBybgwOq4KxPkjGjg_Content;
typedef struct tyObject_PluginInfo__jIeVHC5m9cMm7lQxxmW9bmHg tyObject_PluginInfo__jIeVHC5m9cMm7lQxxmW9bmHg;
typedef struct tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA;
typedef struct tyObject_HashSet__v3AgR4bnzCtqFMiyBA9al4Q tyObject_HashSet__v3AgR4bnzCtqFMiyBA9al4Q;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw_Content tySequence__4eRCaZmrYLLw2k30GPTiMw_Content;
typedef struct tyTuple__ZwcqNhWtDfKDJjVz9bcvE9cQ tyTuple__ZwcqNhWtDfKDJjVz9bcvE9cQ;
typedef struct tyObject_Pattern__K9baAv1Y6R5n9b0ZUxBeh6vA tyObject_Pattern__K9baAv1Y6R5n9b0ZUxBeh6vA;
typedef struct tySequence__xjLg9a72SfsVVFciefDuvtw tySequence__xjLg9a72SfsVVFciefDuvtw;
typedef struct tySequence__xjLg9a72SfsVVFciefDuvtw_Content tySequence__xjLg9a72SfsVVFciefDuvtw_Content;
typedef struct tyTuple__8ZxhPt1NwfElsJs8zUSV9bg tyTuple__8ZxhPt1NwfElsJs8zUSV9bg;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyTuple__uSZbD2CRToUhqTsTNx4cgA tyTuple__uSZbD2CRToUhqTsTNx4cgA;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyObject_Instr__dVxI1dKsh9ajF145UocfxWg tyObject_Instr__dVxI1dKsh9ajF145UocfxWg;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
typedef NU32 tySet_tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw;
struct tySequence__j9bhAvfiD9alXYEwmFnFGFNA {
  NI len; tySequence__j9bhAvfiD9alXYEwmFnFGFNA_Content* p;
};
struct tySequence__SFipDZIkFtPcrLs0AGBBjQ {
  NI len; tySequence__SFipDZIkFtPcrLs0AGBBjQ_Content* p;
};
struct tyObject_Table__ao79cQacnAZc5Mu0cN3jybg {
	tySequence__SFipDZIkFtPcrLs0AGBBjQ data;
	NI counter;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  NI len; tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content* p;
};
struct tySequence__4eQHGndY6XBYpFOH09apV8Q {
  NI len; tySequence__4eQHGndY6XBYpFOH09apV8Q_Content* p;
};
struct tyObject_Patterns__FXqyqR49aNa9c2SMD9akprhSg {
	tySequence__j9bhAvfiD9alXYEwmFnFGFNA s;
	tyObject_Table__ao79cQacnAZc5Mu0cN3jybg t;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ strings;
	tySequence__4eQHGndY6XBYpFOH09apV8Q patterns;
};
struct tySequence__tas7jtBybgwOq4KxPkjGjg {
  NI len; tySequence__tas7jtBybgwOq4KxPkjGjg_Content* p;
};
struct tyObject_Table__8bDqb52Br017mlUSc5FIOw {
	tySequence__tas7jtBybgwOq4KxPkjGjg data;
	NI counter;
};
typedef NU8 tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw;
struct tyObject_PluginInfo__jIeVHC5m9cMm7lQxxmW9bmHg {
	tySequence__4eQHGndY6XBYpFOH09apV8Q builderPatterns;
};
struct tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA {
	NimStringV2 scheme;
	NimStringV2 username;
	NimStringV2 password;
	NimStringV2 hostname;
	NimStringV2 port;
	NimStringV2 path;
	NimStringV2 query;
	NimStringV2 anchor;
	NIM_BOOL opaque;
	NIM_BOOL isIpv6;
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
  NI len; tySequence__4eRCaZmrYLLw2k30GPTiMw_Content* p;
};
struct tyObject_HashSet__v3AgR4bnzCtqFMiyBA9al4Q {
	tySequence__4eRCaZmrYLLw2k30GPTiMw data;
	NI counter;
};
struct tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ {
	NimStringV2 projectDir;
	NimStringV2 depsDir;
	NimStringV2 confDirOverride;
	tySet_tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw flags;
	tyObject_Patterns__FXqyqR49aNa9c2SMD9akprhSg nameOverrides;
	tyObject_Patterns__FXqyqR49aNa9c2SMD9akprhSg urlOverrides;
	tyObject_Table__8bDqb52Br017mlUSc5FIOw pkgOverrides;
	tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw defaultAlgo;
	tyObject_PluginInfo__jIeVHC5m9cMm7lQxxmW9bmHg plugins;
	NimStringV2 overridesFile;
	NimStringV2 pluginsFile;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA proxy;
	tyObject_HashSet__v3AgR4bnzCtqFMiyBA9al4Q features;
};
typedef NU8 tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA;
struct tySequence__xjLg9a72SfsVVFciefDuvtw {
  NI len; tySequence__xjLg9a72SfsVVFciefDuvtw_Content* p;
};
struct tyObject_Pattern__K9baAv1Y6R5n9b0ZUxBeh6vA {
	tySequence__xjLg9a72SfsVVFciefDuvtw code;
	NI usedMatches;
	NimStringV2 error;
};
struct tyTuple__ZwcqNhWtDfKDJjVz9bcvE9cQ {
	tyObject_Pattern__K9baAv1Y6R5n9b0ZUxBeh6vA Field0;
	NimStringV2 Field1;
};
struct tySequence__j9bhAvfiD9alXYEwmFnFGFNA_Content { NI cap; tyTuple__ZwcqNhWtDfKDJjVz9bcvE9cQ data[SEQ_DECL_SIZE]; };
struct tyTuple__8ZxhPt1NwfElsJs8zUSV9bg {
	NI Field0;
	NimStringV2 Field1;
	NimStringV2 Field2;
};
struct tySequence__SFipDZIkFtPcrLs0AGBBjQ_Content { NI cap; tyTuple__8ZxhPt1NwfElsJs8zUSV9bg data[SEQ_DECL_SIZE]; };
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content { NI cap; NimStringV2 data[SEQ_DECL_SIZE]; };
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
	NimStringV2 Field0;
	NimStringV2 Field1;
};
struct tySequence__4eQHGndY6XBYpFOH09apV8Q_Content { NI cap; tyTuple__UV3llMMYFckfui8YMBuUZA data[SEQ_DECL_SIZE]; };
struct tyTuple__uSZbD2CRToUhqTsTNx4cgA {
	NI Field0;
	NimStringV2 Field1;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA Field2;
};
struct tySequence__tas7jtBybgwOq4KxPkjGjg_Content { NI cap; tyTuple__uSZbD2CRToUhqTsTNx4cgA data[SEQ_DECL_SIZE]; };
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
	NI Field0;
	NimStringV2 Field1;
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw_Content { NI cap; tyTuple__QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE]; };
typedef NU8 tyEnum_Opcode__6ExfopoXudbZxEsLnN9aAhA;
struct tyObject_Instr__dVxI1dKsh9ajF145UocfxWg {
	tyEnum_Opcode__6ExfopoXudbZxEsLnN9aAhA opc;
	NU8 arg1;
	NU16 arg2;
};
struct tySequence__xjLg9a72SfsVVFciefDuvtw_Content { NI cap; tyObject_Instr__dVxI1dKsh9ajF145UocfxWg data[SEQ_DECL_SIZE]; };
static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1);
static N_INLINE(void, nimSetMem__system_u2188)(void* a_p0, int v_p1, NI size_p2);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___basicZcontext_u90)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* dest_p0, tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___system_u2754)(NimStringV2* dest_p0, NimStringV2 src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___basicZcompiledpatterns_u933)(tySequence__j9bhAvfiD9alXYEwmFnFGFNA* dest_p0, tySequence__j9bhAvfiD9alXYEwmFnFGFNA src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___basicZcompiledpatterns_u882)(tySequence__SFipDZIkFtPcrLs0AGBBjQ* dest_p0, tySequence__SFipDZIkFtPcrLs0AGBBjQ src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___system_u5585)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* dest_p0, tySequence__sM4lkSb7zS6F7OVMvW9cffQ src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___stdZenvvars_u106)(tySequence__4eQHGndY6XBYpFOH09apV8Q* dest_p0, tySequence__4eQHGndY6XBYpFOH09apV8Q src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___basicZcontext_u122)(tySequence__tas7jtBybgwOq4KxPkjGjg* dest_p0, tySequence__tas7jtBybgwOq4KxPkjGjg src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___basicZversions_u1313)(tySequence__4eRCaZmrYLLw2k30GPTiMw* dest_p0, tySequence__4eRCaZmrYLLw2k30GPTiMw src_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, depsDir__basicZcontext_u344)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* ctx_p0, NIM_BOOL relative_p1);
static N_INLINE(NIM_BOOL, eqeq___stdZpaths_u59)(NimStringV2 x_p0, NimStringV2 y_p1);
N_LIB_PRIVATE N_NIMCALL(NI, noscmpPaths)(NimStringV2 pathA_p0, NimStringV2 pathB_p1);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
static N_INLINE(NIM_BOOL, isAbsolute__stdZpaths_u143)(NimStringV2 path_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosisAbsolute)(NimStringV2 path_p0);
static N_INLINE(NimStringV2, slash___stdZpaths_u84)(NimStringV2 head_p0, NimStringV2 tail_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nosjoinPath)(NimStringV2 head_p0, NimStringV2 tail_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*, context__basicZcontext_u319)(void);
N_LIB_PRIVATE N_NOCONV(void, deallocShared)(void* p_p0);
static N_INLINE(NIM_BOOL, fileExists__stdZfiles_u10)(NimStringV2 filename_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosfileExists)(NimStringV2 filename_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqsink___system_u2760)(NimStringV2* dest_p0, NimStringV2 src_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, depsDir__basicZcontext_u348)(NIM_BOOL relative_p0);
static N_INLINE(void, eqdestroy___system_u281)(NimStringV2 x_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isGitDir__basicZcontext_u374)(NimStringV2 path_p0);
static N_INLINE(NimStringV2, slash___stdZprivateZospaths2_u88)(NimStringV2 head_p0, NimStringV2 tail_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosdirExists)(NimStringV2 dir_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getProjectConfig__basicZcontext_u363)(NimStringV2 dir_p0);
static N_INLINE(void, appendString)(NimStringV2* dest_p0, NimStringV2 src_p1);
static N_INLINE(void, copyMem__system_u1755)(void* dest_p0, void* source_p1, NI size_p2);
static N_INLINE(void, nimCopyMem)(void* dest_p0, void* source_p1, NI size_p2);
static N_INLINE(NimStringV2, relativePath__stdZpaths_u146)(NimStringV2 path_p0, NimStringV2 base_p1, NIM_CHAR sep_p2);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nosrelativePath)(NimStringV2 path_p0, NimStringV2 base_p1, NIM_CHAR sep_p2);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, project__basicZcontext_u340)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, rawNewString)(NI space_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZversions_u1310)(tySequence__4eRCaZmrYLLw2k30GPTiMw dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___stdZenvvars_u103)(tySequence__4eQHGndY6XBYpFOH09apV8Q dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZcontext_u119)(tySequence__tas7jtBybgwOq4KxPkjGjg dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___system_u5582)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZcompiledpatterns_u879)(tySequence__SFipDZIkFtPcrLs0AGBBjQ dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZcompiledpatterns_u930)(tySequence__j9bhAvfiD9alXYEwmFnFGFNA dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void);
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__JUMADtOspYmsisXxxcVZVw_2 = { 1 | NIM_STRLIT_FLAG, "." };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_3 = {1, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_2};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__JUMADtOspYmsisXxxcVZVw_4 = { 4 | NIM_STRLIT_FLAG, "deps" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_5 = {4, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_4};
static const struct {
  NI cap; NIM_CHAR data[0+1];
} TM__JUMADtOspYmsisXxxcVZVw_6 = { 0 | NIM_STRLIT_FLAG, "" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_7 = {0, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_6};
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_8 = {0, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_6};
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_9 = {0, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_6};
static const struct {
  NI cap; NIM_CHAR data[12+1];
} TM__JUMADtOspYmsisXxxcVZVw_10 = { 12 | NIM_STRLIT_FLAG, "atlas.config" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_11 = {12, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_10};
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_12 = {12, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_10};
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_13 = {12, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_10};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__JUMADtOspYmsisXxxcVZVw_14 = { 4 | NIM_STRLIT_FLAG, ".git" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_15 = {4, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_14};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__JUMADtOspYmsisXxxcVZVw_16 = { 9 | NIM_STRLIT_FLAG, "_packages" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_17 = {9, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_16};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__JUMADtOspYmsisXxxcVZVw_18 = { 2 | NIM_STRLIT_FLAG, "Ok" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_19 = {2, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_18};
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__JUMADtOspYmsisXxxcVZVw_20 = { 8 | NIM_STRLIT_FLAG, "NotFound" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_21 = {8, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_20};
static const struct {
  NI cap; NIM_CHAR data[10+1];
} TM__JUMADtOspYmsisXxxcVZVw_22 = { 10 | NIM_STRLIT_FLAG, "OtherError" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_23 = {10, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_22};
static const struct {
  NI cap; NIM_CHAR data[0+1];
} TM__JUMADtOspYmsisXxxcVZVw_24 = { 0 | NIM_STRLIT_FLAG, "" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_25 = {0, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_24};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__JUMADtOspYmsisXxxcVZVw_26 = { 9 | NIM_STRLIT_FLAG, "$project/" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_27 = {9, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_26};
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__JUMADtOspYmsisXxxcVZVw_28 = { 8 | NIM_STRLIT_FLAG, "_nimbles" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_29 = {8, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_28};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__JUMADtOspYmsisXxxcVZVw_30 = { 16 | NIM_STRLIT_FLAG, "atlas.cache.json" };
static const NimStringV2 TM__JUMADtOspYmsisXxxcVZVw_31 = {16, (NimStrPayload*)&TM__JUMADtOspYmsisXxxcVZVw_30};
N_LIB_PRIVATE tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ atlasContext__basicZcontext_u81;
extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4198;
static N_INLINE(void, nimSetMem__system_u2188)(void* a_p0, int v_p1, NI size_p2) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a_p0, v_p1, ((size_t) (size_p2)));
}
static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1) {
	nimSetMem__system_u2188(p_p0, ((int)0), size_p1);
}
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___basicZcontext_u90)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* dest_p0, tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* src_p1) {
	eqcopy___system_u2754((&(*dest_p0).projectDir), (*src_p1).projectDir);
	eqcopy___system_u2754((&(*dest_p0).depsDir), (*src_p1).depsDir);
	eqcopy___system_u2754((&(*dest_p0).confDirOverride), (*src_p1).confDirOverride);
	(*dest_p0).flags = (*src_p1).flags;
	eqcopy___basicZcompiledpatterns_u933((&(*dest_p0).nameOverrides.s), (*src_p1).nameOverrides.s);
	eqcopy___basicZcompiledpatterns_u882((&(*dest_p0).nameOverrides.t.data), (*src_p1).nameOverrides.t.data);
	(*dest_p0).nameOverrides.t.counter = (*src_p1).nameOverrides.t.counter;
	eqcopy___system_u5585((&(*dest_p0).nameOverrides.strings), (*src_p1).nameOverrides.strings);
	eqcopy___stdZenvvars_u106((&(*dest_p0).nameOverrides.patterns), (*src_p1).nameOverrides.patterns);
	eqcopy___basicZcompiledpatterns_u933((&(*dest_p0).urlOverrides.s), (*src_p1).urlOverrides.s);
	eqcopy___basicZcompiledpatterns_u882((&(*dest_p0).urlOverrides.t.data), (*src_p1).urlOverrides.t.data);
	(*dest_p0).urlOverrides.t.counter = (*src_p1).urlOverrides.t.counter;
	eqcopy___system_u5585((&(*dest_p0).urlOverrides.strings), (*src_p1).urlOverrides.strings);
	eqcopy___stdZenvvars_u106((&(*dest_p0).urlOverrides.patterns), (*src_p1).urlOverrides.patterns);
	eqcopy___basicZcontext_u122((&(*dest_p0).pkgOverrides.data), (*src_p1).pkgOverrides.data);
	(*dest_p0).pkgOverrides.counter = (*src_p1).pkgOverrides.counter;
	(*dest_p0).defaultAlgo = (*src_p1).defaultAlgo;
	eqcopy___stdZenvvars_u106((&(*dest_p0).plugins.builderPatterns), (*src_p1).plugins.builderPatterns);
	eqcopy___system_u2754((&(*dest_p0).overridesFile), (*src_p1).overridesFile);
	eqcopy___system_u2754((&(*dest_p0).pluginsFile), (*src_p1).pluginsFile);
	eqcopy___system_u2754((&(*dest_p0).proxy.scheme), (*src_p1).proxy.scheme);
	eqcopy___system_u2754((&(*dest_p0).proxy.username), (*src_p1).proxy.username);
	eqcopy___system_u2754((&(*dest_p0).proxy.password), (*src_p1).proxy.password);
	eqcopy___system_u2754((&(*dest_p0).proxy.hostname), (*src_p1).proxy.hostname);
	eqcopy___system_u2754((&(*dest_p0).proxy.port), (*src_p1).proxy.port);
	eqcopy___system_u2754((&(*dest_p0).proxy.path), (*src_p1).proxy.path);
	eqcopy___system_u2754((&(*dest_p0).proxy.query), (*src_p1).proxy.query);
	eqcopy___system_u2754((&(*dest_p0).proxy.anchor), (*src_p1).proxy.anchor);
	(*dest_p0).proxy.opaque = (*src_p1).proxy.opaque;
	(*dest_p0).proxy.isIpv6 = (*src_p1).proxy.isIpv6;
	eqcopy___basicZversions_u1313((&(*dest_p0).features.data), (*src_p1).features.data);
	(*dest_p0).features.counter = (*src_p1).features.counter;
}
N_LIB_PRIVATE N_NIMCALL(void, setContext__basicZcontext_u82)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* ctx_p0) {
	eqcopy___basicZcontext_u90((&atlasContext__basicZcontext_u81), ctx_p0);
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*, context__basicZcontext_u319)(void) {
	tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* result;
	result = (&atlasContext__basicZcontext_u81);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, project__basicZcontext_u342)(NimStringV2 ws_p0) {
	eqcopy___system_u2754((&atlasContext__basicZcontext_u81.projectDir), ws_p0);
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (&nimInErrorMode__system_u4198);
	return result;
}
static N_INLINE(NIM_BOOL, eqeq___stdZpaths_u59)(NimStringV2 x_p0, NimStringV2 y_p1) {
	NIM_BOOL result;
	NI T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = noscmpPaths(x_p0, y_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = (T1_ == ((NI)0));
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, isAbsolute__stdZpaths_u143)(NimStringV2 path_p0) {
	NIM_BOOL result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	result = nosisAbsolute(path_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NimStringV2, slash___stdZpaths_u84)(NimStringV2 head_p0, NimStringV2 tail_p1) {
	NimStringV2 result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	result = nosjoinPath(head_p0, tail_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, depsDir__basicZcontext_u344)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* ctx_p0, NIM_BOOL relative_p1) {
	NimStringV2 result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = eqeq___stdZpaths_u59((*ctx_p0).depsDir, TM__JUMADtOspYmsisXxxcVZVw_8);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!T3_) goto LA4_;
		result = TM__JUMADtOspYmsisXxxcVZVw_9;
	}
	goto LA1_;
LA4_: ;
	{
		NIM_BOOL T7_;
		T7_ = (NIM_BOOL)0;
		T7_ = relative_p1;
		if (T7_) goto LA8_;
		T7_ = isAbsolute__stdZpaths_u143((*ctx_p0).depsDir);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
LA8_: ;
		if (!T7_) goto LA9_;
		eqcopy___system_u2754((&result), (*ctx_p0).depsDir);
	}
	goto LA1_;
LA9_: ;
	{
		result = slash___stdZpaths_u84((*ctx_p0).projectDir, (*ctx_p0).depsDir);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
LA1_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, depsDir__basicZcontext_u348)(NIM_BOOL relative_p0) {
	NimStringV2 result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	result = depsDir__basicZcontext_u344((&atlasContext__basicZcontext_u81), relative_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, fileExists__stdZfiles_u10)(NimStringV2 filename_p0) {
	NIM_BOOL result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	result = nosfileExists(filename_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, eqdestroy___system_u281)(NimStringV2 x_p0) {
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getProjectConfig__basicZcontext_u363)(NimStringV2 dir_p0) {
	NimStringV2 result;
	NimStringV2 colontmpD_;
	NimStringV2 T13_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T4_;
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T7_;
		T4_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T4_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(((NI)0) < (*T4_).confDirOverride.len)) goto LA5_;
		T7_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T7_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		result = slash___stdZpaths_u84((*T7_).confDirOverride, TM__JUMADtOspYmsisXxxcVZVw_11);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		goto BeforeRet_;
	}
LA5_: ;
	result = slash___stdZpaths_u84(dir_p0, TM__JUMADtOspYmsisXxxcVZVw_12);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T10_;
		T10_ = (NIM_BOOL)0;
		T10_ = fileExists__stdZfiles_u10(result);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!T10_) goto LA11_;
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		goto BeforeRet_;
	}
LA11_: ;
	colontmpD_ = depsDir__basicZcontext_u348(NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T13_.len = 0; T13_.p = NIM_NIL;
	T13_ = slash___stdZpaths_u84(colontmpD_, TM__JUMADtOspYmsisXxxcVZVw_13);
	if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T13_); goto LA1_;}
	eqsink___system_u2760((&result), T13_);
	{
		LA1_:;
	}
	{
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, project__basicZcontext_u340)(void) {
	NimStringV2 result;
	result.len = 0; result.p = NIM_NIL;
	eqcopy___system_u2754((&result), atlasContext__basicZcontext_u81.projectDir);
	return result;
}
static N_INLINE(NimStringV2, slash___stdZprivateZospaths2_u88)(NimStringV2 head_p0, NimStringV2 tail_p1) {
	NimStringV2 result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	result = nosjoinPath(head_p0, tail_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isGitDir__basicZcontext_u374)(NimStringV2 path_p0) {
	NIM_BOOL result;
	NimStringV2 gitPath_1;
	NIM_BOOL T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	gitPath_1.len = 0; gitPath_1.p = NIM_NIL;
	gitPath_1 = slash___stdZprivateZospaths2_u88(path_p0, TM__JUMADtOspYmsisXxxcVZVw_15);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T1_ = (NIM_BOOL)0;
	T1_ = nosdirExists(gitPath_1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	if (T1_) goto LA2_;
	T1_ = nosfileExists(gitPath_1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
LA2_: ;
	result = T1_;
	if (gitPath_1.p && !(gitPath_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(gitPath_1.p);
}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isGitDir__basicZcontext_u378)(NimStringV2 path_p0) {
	NIM_BOOL result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	result = isGitDir__basicZcontext_u374(path_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, packagesDirectory__basicZcontext_u351)(void) {
	NimStringV2 result;
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD_ = depsDir__basicZcontext_u348(NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = slash___stdZpaths_u84(colontmpD_, TM__JUMADtOspYmsisXxxcVZVw_17);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isMainProject__basicZcontext_u366)(NimStringV2 dir_p0) {
	NIM_BOOL result;
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD_ = getProjectConfig__basicZcontext_u363(dir_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = fileExists__stdZfiles_u10(colontmpD_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___basicZcontext_u31)(tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA e_p0) {
	NimStringV2 result;
	switch (e_p0) {
	case ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)0):
	{
		result = TM__JUMADtOspYmsisXxxcVZVw_19;
	}
	break;
	case ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)1):
	{
		result = TM__JUMADtOspYmsisXxxcVZVw_21;
	}
	break;
	case ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)2):
	{
		result = TM__JUMADtOspYmsisXxxcVZVw_23;
	}
	break;
	default:
	{
		result = TM__JUMADtOspYmsisXxxcVZVw_25;
	}
	break;
	}
	return result;
}
static N_INLINE(void, nimCopyMem)(void* dest_p0, void* source_p1, NI size_p2) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest_p0, source_p1, ((size_t) (size_p2)));
}
static N_INLINE(void, copyMem__system_u1755)(void* dest_p0, void* source_p1, NI size_p2) {
	nimCopyMem(dest_p0, source_p1, size_p2);
}
static N_INLINE(void, appendString)(NimStringV2* dest_p0, NimStringV2 src_p1) {
	{
		if (!(((NI)0) < src_p1.len)) goto LA3_;
		copyMem__system_u1755(((void*) ((&(*(*dest_p0).p).data[(*dest_p0).len]))), ((void*) ((&(*src_p1.p).data[((NI)0)]))), (src_p1.len));
		(*dest_p0).len += src_p1.len;
		(*(*dest_p0).p).data[(*dest_p0).len] = 0;
	}
LA3_: ;
}
static N_INLINE(NimStringV2, relativePath__stdZpaths_u146)(NimStringV2 path_p0, NimStringV2 base_p1, NIM_CHAR sep_p2) {
	NimStringV2 result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	result = nosrelativePath(path_p0, base_p1, sep_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, relativeToWorkspace__basicZcontext_u360)(NimStringV2 path_p0) {
	NimStringV2 result;
	NimStringV2 colontmpD_;
	NimStringV2 colontmpD__2;
	NimStringV2 T2_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	T2_.len = 0; T2_.p = NIM_NIL;
	colontmpD_ = project__basicZcontext_u340();
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD__2 = relativePath__stdZpaths_u146(path_p0, colontmpD_, 47);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T2_ = rawNewString(colontmpD__2.len + 9);
appendString((&T2_), TM__JUMADtOspYmsisXxxcVZVw_27);
appendString((&T2_), colontmpD__2);
	result = T2_;
	{
		LA1_:;
	}
	{
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nimbleCachesDirectory__basicZcontext_u355)(void) {
	NimStringV2 result;
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD_ = depsDir__basicZcontext_u348(NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = slash___stdZpaths_u84(colontmpD_, TM__JUMADtOspYmsisXxxcVZVw_29);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, depGraphCacheFile__basicZcontext_u357)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* ctx_p0) {
	NimStringV2 result;
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD_ = depsDir__basicZcontext_u344(ctx_p0, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = slash___stdZpaths_u84(colontmpD_, TM__JUMADtOspYmsisXxxcVZVw_31);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZcontext_u87)(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* dest_p0) {
	eqdestroy___basicZversions_u1310((*dest_p0).features.data);
	if ((*dest_p0).proxy.anchor.p && !((*dest_p0).proxy.anchor.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.anchor.p);
}
	if ((*dest_p0).proxy.query.p && !((*dest_p0).proxy.query.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.query.p);
}
	if ((*dest_p0).proxy.path.p && !((*dest_p0).proxy.path.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.path.p);
}
	if ((*dest_p0).proxy.port.p && !((*dest_p0).proxy.port.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.port.p);
}
	if ((*dest_p0).proxy.hostname.p && !((*dest_p0).proxy.hostname.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.hostname.p);
}
	if ((*dest_p0).proxy.password.p && !((*dest_p0).proxy.password.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.password.p);
}
	if ((*dest_p0).proxy.username.p && !((*dest_p0).proxy.username.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.username.p);
}
	if ((*dest_p0).proxy.scheme.p && !((*dest_p0).proxy.scheme.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).proxy.scheme.p);
}
	if ((*dest_p0).pluginsFile.p && !((*dest_p0).pluginsFile.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).pluginsFile.p);
}
	if ((*dest_p0).overridesFile.p && !((*dest_p0).overridesFile.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).overridesFile.p);
}
	eqdestroy___stdZenvvars_u103((*dest_p0).plugins.builderPatterns);
	eqdestroy___basicZcontext_u119((*dest_p0).pkgOverrides.data);
	eqdestroy___stdZenvvars_u103((*dest_p0).urlOverrides.patterns);
	eqdestroy___system_u5582((*dest_p0).urlOverrides.strings);
	eqdestroy___basicZcompiledpatterns_u879((*dest_p0).urlOverrides.t.data);
	eqdestroy___basicZcompiledpatterns_u930((*dest_p0).urlOverrides.s);
	eqdestroy___stdZenvvars_u103((*dest_p0).nameOverrides.patterns);
	eqdestroy___system_u5582((*dest_p0).nameOverrides.strings);
	eqdestroy___basicZcompiledpatterns_u879((*dest_p0).nameOverrides.t.data);
	eqdestroy___basicZcompiledpatterns_u930((*dest_p0).nameOverrides.s);
	if ((*dest_p0).confDirOverride.p && !((*dest_p0).confDirOverride.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).confDirOverride.p);
}
	if ((*dest_p0).depsDir.p && !((*dest_p0).depsDir.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).depsDir.p);
}
	if ((*dest_p0).projectDir.p && !((*dest_p0).projectDir.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).projectDir.p);
}
}
N_LIB_PRIVATE N_NIMCALL(void, atmbasicatscontextdotnim_Init000)(void) {
{
	nimZeroMem((void*)(&atlasContext__basicZcontext_u81), sizeof(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ));
	atlasContext__basicZcontext_u81.projectDir = TM__JUMADtOspYmsisXxxcVZVw_3;
	atlasContext__basicZcontext_u81.depsDir = TM__JUMADtOspYmsisXxxcVZVw_5;
	atlasContext__basicZcontext_u81.confDirOverride = TM__JUMADtOspYmsisXxxcVZVw_7;
	atlasContext__basicZcontext_u81.flags = 0;
	atlasContext__basicZcontext_u81.defaultAlgo = ((tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw)1);
	nimTestErrorFlag();
}
}

