/* 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@sgitops.nim.c.o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@mbasic@sgitops.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 NimStrPayload NimStrPayload;
typedef struct NimStringV2 NimStringV2;
typedef struct tyTuple__XOVT24GHXwqiEj5GCsEGCA tyTuple__XOVT24GHXwqiEj5GCsEGCA;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content;
typedef struct tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA;
typedef struct TNimTypeV2 TNimTypeV2;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct tySequence__3EvzHGO0xyXGnJBUggwfKQ tySequence__3EvzHGO0xyXGnJBUggwfKQ;
typedef struct tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content;
typedef struct tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ;
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__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_HashSet__v3AgR4bnzCtqFMiyBA9al4Q tyObject_HashSet__v3AgR4bnzCtqFMiyBA9al4Q;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw_Content tySequence__4eRCaZmrYLLw2k30GPTiMw_Content;
typedef struct tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ;
typedef struct tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg;
typedef struct tyTuple__TLTPscngTyX39coeZ9b9cEB7w tyTuple__TLTPscngTyX39coeZ9b9cEB7w;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q;
typedef struct tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA;
typedef struct tyObject_VersionTag__io9bcihbopiwucKorobyKdg tyObject_VersionTag__io9bcihbopiwucKorobyKdg;
typedef struct tySequence__ROG4zVH2lrODohp66awvUw tySequence__ROG4zVH2lrODohp66awvUw;
typedef struct tySequence__ROG4zVH2lrODohp66awvUw_Content tySequence__ROG4zVH2lrODohp66awvUw_Content;
typedef struct tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA;
typedef struct tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw;
typedef struct tyTuple__8c9aE37D67XHNzuQEKrzh5g tyTuple__8c9aE37D67XHNzuQEKrzh5g;
typedef struct tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA;
typedef struct tySequence__U9bYx6tPvWzQNzbZoriLUYA tySequence__U9bYx6tPvWzQNzbZoriLUYA;
typedef struct tySequence__U9bYx6tPvWzQNzbZoriLUYA_Content tySequence__U9bYx6tPvWzQNzbZoriLUYA_Content;
typedef struct tyTuple__YD0AUsyqL09aC9bx7rbQtoeA tyTuple__YD0AUsyqL09aC9bx7rbQtoeA;
typedef struct tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw;
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__uSZbD2CRToUhqTsTNx4cgA tyTuple__uSZbD2CRToUhqTsTNx4cgA;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyObject_VersionReq__eFOT6plIfXH54d8sBkqpng tyObject_VersionReq__eFOT6plIfXH54d8sBkqpng;
typedef struct tyTuple__5z13DioL2O9cny1CehriGcQ tyTuple__5z13DioL2O9cny1CehriGcQ;
typedef struct tyObject_Instr__dVxI1dKsh9ajF145UocfxWg tyObject_Instr__dVxI1dKsh9ajF145UocfxWg;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
	NimStringV2 Field0;
	NI Field1;
};
typedef NU8 tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg;
typedef NU8 tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw;
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  NI len; tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content* p;
};
typedef NimStringV2 tyArray__Seu7uK9aaOSN0BK3EAjjSHw[4];
typedef NimStringV2 tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ[2];
typedef NimStringV2 tyArray__TonP9cxJgj8gXu71dWIyNlA[1];
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
typedef NimStringV2 tyArray__YgExxhfgKcesA5EOUj1MOA[1];
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 TNimTypeV2 {
	void* destructor;
	NI size;
	NI16 align;
	NI16 depth;
	NU32* display;
	void* traceImpl;
	void* typeInfoV1;
	NI flags;
	void* vTable[SEQ_DECL_SIZE];
};
struct RootObj {
	TNimTypeV2* m_type;
};
struct tySequence__3EvzHGO0xyXGnJBUggwfKQ {
  NI len; tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content* p;
};
struct Exception {
	RootObj Sup;
	Exception* parent;
	NCSTRING name;
	NimStringV2 message;
	tySequence__3EvzHGO0xyXGnJBUggwfKQ trace;
	Exception* up;
};
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__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 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_Flag__YJpVNZDPDp9bqb0qWHXEQFw;
struct tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ {
	NI a;
	NI b;
};
struct tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg {
	NI a;
	NI b;
};
typedef NU8 tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA;
struct tyTuple__TLTPscngTyX39coeZ9b9cEB7w {
	tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA Field0;
	NimStringV2 Field1;
};
typedef NI tyArray__kwH07lKnsR9bj3o9bSnruElQ[6];
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
	NimStringV2 Field0;
	NimStringV2 Field1;
};
struct tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q {
	NIM_BOOL Field0;
	NimStringV2 Field1;
};
typedef NU8 tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww;
struct tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA {
	NimStringV2 h;
	tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww orig;
};
struct tyObject_VersionTag__io9bcihbopiwucKorobyKdg {
	tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA c;
	NimStringV2 v;
	NIM_BOOL isTip;
};
struct tySequence__ROG4zVH2lrODohp66awvUw {
  NI len; tySequence__ROG4zVH2lrODohp66awvUw_Content* p;
};
struct tyTuple__8c9aE37D67XHNzuQEKrzh5g {
	NIM_BOOL Field0;
	NI Field1;
};
struct tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw {
	tyTuple__8c9aE37D67XHNzuQEKrzh5g val;
	NIM_BOOL has;
};
struct tySequence__U9bYx6tPvWzQNzbZoriLUYA {
  NI len; tySequence__U9bYx6tPvWzQNzbZoriLUYA_Content* p;
};
struct tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA {
	tySequence__U9bYx6tPvWzQNzbZoriLUYA data;
	NI counter;
};
struct tyTuple__YD0AUsyqL09aC9bx7rbQtoeA {
	tySequence__ROG4zVH2lrODohp66awvUw Field0;
	NIM_BOOL Field1;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content { NI cap; NimStringV2 data[SEQ_DECL_SIZE]; };
struct tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw {
	NCSTRING procname;
	NI line;
	NCSTRING filename;
};
struct tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content { NI cap; tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw data[SEQ_DECL_SIZE]; };
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__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]; };
struct tySequence__ROG4zVH2lrODohp66awvUw_Content { NI cap; tyObject_VersionTag__io9bcihbopiwucKorobyKdg data[SEQ_DECL_SIZE]; };
typedef NU8 tyEnum_VersionRelation__4XquEtylWSi3MRH9c7xlRFw;
struct tyObject_VersionReq__eFOT6plIfXH54d8sBkqpng {
	tyEnum_VersionRelation__4XquEtylWSi3MRH9c7xlRFw r;
	NimStringV2 v;
};
struct tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA {
	tyObject_VersionReq__eFOT6plIfXH54d8sBkqpng a;
	tyObject_VersionReq__eFOT6plIfXH54d8sBkqpng b;
	NIM_BOOL isInterval;
};
struct tyTuple__5z13DioL2O9cny1CehriGcQ {
	NI Field0;
	tyObject_VersionTag__io9bcihbopiwucKorobyKdg Field1;
};
struct tySequence__U9bYx6tPvWzQNzbZoriLUYA_Content { NI cap; tyTuple__5z13DioL2O9cny1CehriGcQ 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]; };
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getRemoteUrlFor__basicZgitops_u342)(NimStringV2 path_p0, NimStringV2 remote_p1);
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(tyTuple__XOVT24GHXwqiEj5GCsEGCA, exec__basicZgitops_u76)(tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg gitCmd_p0, NimStringV2 path_p1, NimStringV2* args_p2, NI args_p2Len_0, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3, NimStringV2* subs_p4, NI subs_p4Len_0, NIM_BOOL requireRepo_p5, NIM_BOOL streamOutput_p6);
N_LIB_PRIVATE N_NIMCALL(void*, newSeqPayload)(NI cap_p0, NI elemSize_p1, NI elemAlign_p2);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, eqdup___system_u2757)(NimStringV2 src_p0);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i_p0, NI n_p1);
N_LIB_PRIVATE N_NIMCALL(void, add__stdZenumutils_u70)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x_p0, NimStringV2 y_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nsuFormatOpenArray)(NimStringV2 formatstr_p0, NimStringV2* a_p1, NI a_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___basicZgitops_u54)(tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg e_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isGitDir__basicZcontext_u378)(NimStringV2 path_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___system_u2754)(NimStringV2* dest_p0, NimStringV2 src_p1);
static N_INLINE(void, nimAddCharV1)(NimStringV2* s_p0, NIM_CHAR c_p1);
N_LIB_PRIVATE N_NIMCALL(void, prepareAdd)(NimStringV2* s_p0, NI addLen_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nospquoteShell)(NimStringV2 s_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);
N_LIB_PRIVATE N_NOCONV(void, deallocShared)(void* p_p0);
static N_INLINE(NIM_BOOL, nimAddInt)(NI a_p0, NI b_p1, NI* res_p2);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(NI, nosexecShellCmd)(NimStringV2 command_p0);
N_LIB_PRIVATE N_NIMCALL(tyTuple__XOVT24GHXwqiEj5GCsEGCA, silentExec__basicZosutils_u78)(NimStringV2 cmd_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(void, message__basicZgitops_u181)(tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw k_p0, NimStringV2 p_p1, NimStringV2* args_p2, NI args_p2Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___systemZdollars_u14)(NI xX60gensym0__p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nsuJoinSep)(NimStringV2* a_p0, NI a_p0Len_0, NimStringV2 sep_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___system_u5582)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ dest_p0);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
N_LIB_PRIVATE N_NIMCALL(void, eqwasMoved___system_u2751)(NimStringV2* dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZosutils_u97)(tyTuple__XOVT24GHXwqiEj5GCsEGCA* dest_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nsuStrip)(NimStringV2 s_p0, NIM_BOOL leading_p1, NIM_BOOL trailing_p2, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars_p3);
N_LIB_PRIVATE N_NIMCALL(void, error__basicZgitops_u1259)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, rawNewString)(NI space_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, resolveRemoteName__basicZgitops_u65)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getCanonicalUrl__basicZgitops_u349)(NimStringV2 path_p0, NimStringV2 origin_p1);
N_LIB_PRIVATE N_NIMCALL(void, message__basicZgitops_u366)(tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw k_p0, NimStringV2 p_p1, NimStringV2* args_p2, NI args_p2Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, remoteNameFromGitUrl__basicZgitops_u323)(NimStringV2 rawUrl_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___pureZuri_u213)(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* dest_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringV2 s_p0, NimStringV2 prefix_p1);
N_LIB_PRIVATE N_NIMCALL(void, parseUri__pureZuri_u295)(NimStringV2 uri_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* Result);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nsuReplaceStr)(NimStringV2 s_p0, NimStringV2 sub_p1, NimStringV2 by_p2);
static N_INLINE(void, eqdestroy___system_u281)(NimStringV2 x_p0);
static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2);
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___system_u3719)(Exception** dest_p0, Exception* src_p1, NIM_BOOL cyclic_p2);
N_LIB_PRIVATE N_NIMCALL(void, nsuRemovePrefixString)(NimStringV2* s_p0, NimStringV2 prefix_p1);
N_LIB_PRIVATE N_NIMCALL(void, nsuRemoveSuffixString)(NimStringV2* s_p0, NimStringV2 suffix_p1);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, nsuSplitString)(NimStringV2 s_p0, NimStringV2 sep_p1, NI maxsplit_p2);
static N_INLINE(NimStringV2, X5BX5D___basicZgitops_u106)(NimStringV2* s_p0, NI s_p0Len_0, NI i_p1);
static N_INLINE(NIM_BOOL, nimSubInt)(NI a_p0, NI b_p1, NI* res_p2);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, listRemotes__basicZgitops_u195)(NimStringV2 path_p0);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, newSeq__stdZsyncio_u578)(NI len_p0);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, nsuSplitLines)(NimStringV2 s_p0, NIM_BOOL keepEol_p1);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i_p0, NI64 a_p1, NI64 b_p2);
N_LIB_PRIVATE N_NIMCALL(void, eqsink___system_u2760)(NimStringV2* dest_p0, NimStringV2 src_p1);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u95)(NimStringV2 msg_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqwasMoved___system_u5579)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* dest_p0);
static N_INLINE(NIM_BOOL, contains__stdZenumutils_u50)(NimStringV2* a_p0, NI a_p0Len_0, NimStringV2 item_p1);
static N_INLINE(NI, find__stdZenumutils_u55)(NimStringV2* a_p0, NI a_p0Len_0, NimStringV2 item_p1);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringV2 a_p0, NimStringV2 b_p1);
static N_INLINE(NIM_BOOL, equalMem__system_u1763)(void* a_p0, void* b_p1, NI size_p2);
static N_INLINE(int, nimCmpMem)(void* a_p0, void* b_p1, NI size_p2);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ensureRemoteUrl__basicZgitops_u353)(NimStringV2 path_p0, NimStringV2 remote_p1, NimStringV2 url_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___pureZuri_u409)(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* u_p0);
N_LIB_PRIVATE N_NIMCALL(tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*, context__basicZcontext_u319)(void);
N_LIB_PRIVATE N_NIMCALL(void, maybeUrlProxy__basicZgitops_u69)(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* url_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* Result);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___pureZuri_u216)(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* dest_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* src_p1);
N_LIB_PRIVATE N_NIMCALL(void, info__basicZconfigutils_u114)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, gitDescribeRefTag__basicZgitops_u674)(NimStringV2 path_p0, NimStringV2 commit_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, incrementTag__basicZgitops_u1299)(NimStringV2 displayName_p0, NimStringV2 lastTag_p1, NI field_p2);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindChar)(NimStringV2 s_p0, NIM_CHAR sub_p1, NI start_p2, NI last_p3);
N_LIB_PRIVATE N_NIMCALL(void, error__basicZconfigutils_u107)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NI, nsuParseInt)(NimStringV2 s_p0);
static N_INLINE(NimStringV2, X5BX5D___pureZstrutils_u1291)(NimStringV2 s_p0, tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ x_p1);
N_NIMCALL(NimStringV2, mnewString)(NI len_p0);
static N_INLINE(void, nimPrepareStrMutationV2)(NimStringV2* s_p0);
N_LIB_PRIVATE N_NIMCALL(void, nimPrepareStrMutationImpl__system_u2493)(NimStringV2* s_p0);
static N_INLINE(tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ, dotdot___stdZstrbasics_u48)(NI a_p0, NI b_p1);
static N_INLINE(NimStringV2, X5BX5D___pureZstrutils_u1319)(NimStringV2 s_p0, tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg x_p1);
static N_INLINE(tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg, dotdot___stdZenumutils_u105)(NI a_p0, NI b_p1);
N_LIB_PRIVATE N_NIMCALL(void, debug__basicZgitops_u1252)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ensureCanonicalOrigin__basicZgitops_u381)(NimStringV2 path_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* url_p1, NimStringV2 origin_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3);
N_LIB_PRIVATE N_NIMCALL(void, nossleep)(NI milsecs_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqsink___basicZgitops_u646)(tyTuple__TLTPscngTyX39coeZ9b9cEB7w* dest_p0, tyTuple__TLTPscngTyX39coeZ9b9cEB7w src_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__pureZstrutils_u1900)(NimStringV2 s_p0, NimStringV2 sub_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteTagsByName__basicZgitops_u61)(NimStringV2 path_p0, NimStringV2 remote_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___stdZenvvars_u103)(tySequence__4eQHGndY6XBYpFOH09apV8Q dest_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, syncRemoteRefs__basicZgitops_u71)(NimStringV2 path_p0, NimStringV2 srcRemote_p1, NimStringV2 dstRemote_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3);
N_LIB_PRIVATE N_NIMCALL(void, warn__basicZgitops_u3033)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(void, add__basicZgitops_u4200)(tySequence__4eQHGndY6XBYpFOH09apV8Q* x_p0, tyTuple__UV3llMMYFckfui8YMBuUZA* y_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, updateRemote__basicZgitops_u4050)(NimStringV2 path_p0, NimStringV2 remote_p1, NIM_BOOL onlyTags_p2);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZgitops_u3775)(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q* dest_p0);
N_LIB_PRIVATE N_NIMCALL(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q, remoteRefsSnapshot__basicZgitops_u3761)(NimStringV2 path_p0, NimStringV2 remote_p1, NIM_BOOL onlyTags_p2);
N_LIB_PRIVATE N_NIMCALL(void, notice__basicZgitops_u4065)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NI, countUpdatedRefs__basicZgitops_u3793)(NimStringV2 beforeRefs_p0, NimStringV2 afterRefs_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_Table__ao79cQacnAZc5Mu0cN3jybg, initTable__basicZcompiledpatterns_u722)(NI initialSize_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, substr__system_u9096)(NimStringV2 s_p0, NI first_p1, NI last_p2);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, nsuSplitWhitespace)(NimStringV2 s_p0, NI maxsplit_p1);
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___basicZcompiledpatterns_u1236)(tyObject_Table__ao79cQacnAZc5Mu0cN3jybg* t_p0, NimStringV2 key_p1, NimStringV2 val_p2);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__basicZcompiledpatterns_u2497)(tyObject_Table__ao79cQacnAZc5Mu0cN3jybg t_p0, NimStringV2 key_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2*, X5BX5D___basicZgitops_u3975)(tyObject_Table__ao79cQacnAZc5Mu0cN3jybg* t_p0, NimStringV2 key_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZcompiledpatterns_u861)(tyObject_Table__ao79cQacnAZc5Mu0cN3jybg* dest_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteHeadsAndTagsByName__basicZgitops_u420)(NimStringV2 path_p0, NimStringV2 remote_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, initCommitHash__basicZversions_u85)(NimStringV2 raw_p0, tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww origin_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, resolveRemoteTipRef__basicZgitops_u90)(NimStringV2 path_p0, NimStringV2 remote_p1);
N_LIB_PRIVATE N_NIMCALL(tyTuple__XOVT24GHXwqiEj5GCsEGCA, execQuiet__basicZgitops_u84)(tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg gitCmd_p0, NimStringV2 path_p1, NimStringV2* args_p2, NI args_p2Len_0, NimStringV2* subs_p3, NI subs_p3Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, substr__system_u9109)(NimStringV2 s_p0, NI first_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteHeads__basicZgitops_u458)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteHeadsByName__basicZgitops_u393)(NimStringV2 path_p0, NimStringV2 remote_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
N_LIB_PRIVATE N_NIMCALL(tySequence__ROG4zVH2lrODohp66awvUw, parseTaggedVersions__basicZversions_u723)(NimStringV2 outp_p0, NIM_BOOL requireVersions_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqwasMoved___basicZversions_u3506)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZversions_u4782)(tySequence__ROG4zVH2lrODohp66awvUw dest_p0);
static N_INLINE(NIM_BOOL, isHead__basicZversions_u288)(NimStringV2 v_p0);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreCase)(NimStringV2 a_p0, NimStringV2 b_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, version__basicZversions_u196)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* vt_p0);
N_LIB_PRIVATE N_NIMCALL(void, findOriginTip__basicZgitops_u681)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2, NIM_BOOL isLocalOnly_p3, tyObject_VersionTag__io9bcihbopiwucKorobyKdg* Result);
N_LIB_PRIVATE N_NIMCALL(void, eqsink___basicZversions_u120)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA* dest_p0, tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA src_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqwasMoved___basicZversions_u108)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA* dest_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___basicZversions_u73)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA c_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___basicZversions_u187)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* vt_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, repr__basicZversions_u190)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* vt_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZversions_u3509)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* dest_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___basicZversions_u5261)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA a_p0, tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA b_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, currentGitCommit__basicZgitops_u1058)(NimStringV2 path_p0, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isFull__basicZversions_u136)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA c_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZversions_u111)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA* dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, trace__basicZgitops_u1078)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(void, trace__basicZgitops_u1126)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isShort__basicZversions_u139)(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA c_p0);
N_LIB_PRIVATE N_NIMCALL(void, info__basicZparse95requires_u40)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
static N_INLINE(NIM_BOOL, fileExists__stdZfiles_u10)(NimStringV2 filename_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosfileExists)(NimStringV2 filename_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(void, notice__basicZgitops_u1160)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, relativeToWorkspace__basicZcontext_u360)(NimStringV2 path_p0);
N_LIB_PRIVATE N_NIMCALL(void, debug__basicZgitops_u1174)(NimStringV2 p_p0, NimStringV2* args_p1, NI args_p1Len_0);
N_LIB_PRIVATE N_NIMCALL(tySequence__ROG4zVH2lrODohp66awvUw, collectTaggedVersions__basicZgitops_u731)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2, NIM_BOOL isLocalOnly_p3);
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, selectBestCommitMinVer__basicZversions_u5199)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* data_p0, NI data_p0Len_0, tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA* elem_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, selectBestCommitSemVer__basicZversions_u5234)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* data_p0, NI data_p0Len_0, tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA* elem_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, selectBestCommitMaxVer__basicZversions_u5212)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* data_p0, NI data_p0Len_0, tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA* elem_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA, toHashSet__basicZgitops_u1424)(tyObject_VersionTag__io9bcihbopiwucKorobyKdg* keys_p0, NI keys_p0Len_0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getRemoteUrl__basicZgitops_u1403)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
static N_INLINE(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw, none__basicZgitops_u2995)(void);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZgitops_u1640)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA* dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZgitops_u1040)(tyTuple__YD0AUsyqL09aC9bx7rbQtoeA* dest_p0);
N_LIB_PRIVATE N_NIMCALL(tyTuple__YD0AUsyqL09aC9bx7rbQtoeA, listRemoteTags__basicZgitops_u1024)(NimStringV2 path_p0, NimStringV2 url_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2);
N_LIB_PRIVATE N_NIMCALL(void, eqwasMoved___basicZversions_u4779)(tySequence__ROG4zVH2lrODohp66awvUw* dest_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lt___basicZgitops_u3053)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s_p0, tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA t_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___basicZgitops_u3535)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s_p0);
static N_INLINE(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA, minus___basicZgitops_u3377)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s1_p0, tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s2_p1);
N_LIB_PRIVATE N_NIMCALL(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA, difference__basicZgitops_u3386)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s1_p0, tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s2_p1);
static N_INLINE(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw, some__basicZgitops_u3661)(tyTuple__8c9aE37D67XHNzuQEKrzh5g val_p0);
N_LIB_PRIVATE N_NIMCALL(NI, len__basicZgitops_u3121)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s_p0);
static const struct {
  NI cap; NIM_CHAR data[3+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_2 = { 3 | NIM_STRLIT_FLAG, "DIR" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_3 = {3, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_2};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_4 = { 9 | NIM_STRLIT_FLAG, "git clone" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_5 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_4};
static const struct {
  NI cap; NIM_CHAR data[43+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_6 = { 43 | NIM_STRLIT_FLAG, "git -C $DIR config --get remote.$REMOTE.url" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_7 = {43, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_6};
static const struct {
  NI cap; NIM_CHAR data[18+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_8 = { 18 | NIM_STRLIT_FLAG, "git -C $DIR remote" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_9 = {18, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_8};
static const struct {
  NI cap; NIM_CHAR data[22+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_10 = { 22 | NIM_STRLIT_FLAG, "git -C $DIR remote add" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_11 = {22, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_10};
static const struct {
  NI cap; NIM_CHAR data[26+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_12 = { 26 | NIM_STRLIT_FLAG, "git -C $DIR remote set-url" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_13 = {26, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_12};
static const struct {
  NI cap; NIM_CHAR data[25+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_14 = { 25 | NIM_STRLIT_FLAG, "git -C $DIR remote rename" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_15 = {25, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_14};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_16 = { 16 | NIM_STRLIT_FLAG, "git -C $DIR diff" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_17 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_16};
static const struct {
  NI cap; NIM_CHAR data[17+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_18 = { 17 | NIM_STRLIT_FLAG, "git -C $DIR fetch" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_19 = {17, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_18};
static const struct {
  NI cap; NIM_CHAR data[64+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_20 = { 64 | NIM_STRLIT_FLAG, "git -C $DIR fetch $REMOTE \'+refs/heads/*:refs/remotes/$REMOTE/*\'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_21 = {64, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_20};
static const struct {
  NI cap; NIM_CHAR data[15+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_22 = { 15 | NIM_STRLIT_FLAG, "git -C $DIR tag" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_23 = {15, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_22};
static const struct {
  NI cap; NIM_CHAR data[27+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_24 = { 27 | NIM_STRLIT_FLAG, "git -C $DIR show-ref --tags" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_25 = {27, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_24};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_26 = { 20 | NIM_STRLIT_FLAG, "git -C $DIR show-ref" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_27 = {20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_26};
static const struct {
  NI cap; NIM_CHAR data[41+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_28 = { 41 | NIM_STRLIT_FLAG, "git -C $DIR rev-list --tags --max-count=1" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_29 = {41, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_28};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_30 = { 20 | NIM_STRLIT_FLAG, "git -C $DIR describe" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_31 = {20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_30};
static const struct {
  NI cap; NIM_CHAR data[21+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_32 = { 21 | NIM_STRLIT_FLAG, "git -C $DIR rev-parse" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_33 = {21, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_32};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_34 = { 20 | NIM_STRLIT_FLAG, "git -C $DIR checkout" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_35 = {20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_34};
static const struct {
  NI cap; NIM_CHAR data[35+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_36 = { 35 | NIM_STRLIT_FLAG, "git -C $DIR submodule update --init" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_37 = {35, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_36};
static const struct {
  NI cap; NIM_CHAR data[24+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_38 = { 24 | NIM_STRLIT_FLAG, "git -C $DIR push $REMOTE" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_39 = {24, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_38};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_40 = { 16 | NIM_STRLIT_FLAG, "git -C $DIR pull" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_41 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_40};
static const struct {
  NI cap; NIM_CHAR data[31+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_42 = { 31 | NIM_STRLIT_FLAG, "git -C $DIR log -n1 --format=%H" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_43 = {31, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_42};
static const struct {
  NI cap; NIM_CHAR data[22+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_44 = { 22 | NIM_STRLIT_FLAG, "git -C $DIR merge-base" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_45 = {22, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_44};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_46 = { 20 | NIM_STRLIT_FLAG, "git -C $DIR ls-files" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_47 = {20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_46};
static const struct {
  NI cap; NIM_CHAR data[35+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_48 = { 35 | NIM_STRLIT_FLAG, "git -C $DIR log --format=%H $REMOTE" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_49 = {35, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_48};
static const struct {
  NI cap; NIM_CHAR data[32+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_50 = { 32 | NIM_STRLIT_FLAG, "git -C $DIR log --format=%H HEAD" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_51 = {32, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_50};
static const struct {
  NI cap; NIM_CHAR data[39+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_52 = { 39 | NIM_STRLIT_FLAG, "git -C $DIR rev-parse --abbrev-ref HEAD" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_53 = {39, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_52};
static const struct {
  NI cap; NIM_CHAR data[36+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_54 = { 36 | NIM_STRLIT_FLAG, "git -C $DIR ls-remote --quiet --tags" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_55 = {36, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_54};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_56 = { 16 | NIM_STRLIT_FLAG, "git -C $DIR show" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_57 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_56};
static const struct {
  NI cap; NIM_CHAR data[34+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_58 = { 34 | NIM_STRLIT_FLAG, "git -C $DIR ls-tree --name-only -r" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_59 = {34, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_58};
static const struct {
  NI cap; NIM_CHAR data[24+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_60 = { 24 | NIM_STRLIT_FLAG, "git -C $DIR for-each-ref" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_61 = {24, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_60};
static const struct {
  NI cap; NIM_CHAR data[0+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_62 = { 0 | NIM_STRLIT_FLAG, "" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_63 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_62};
static const struct {
  NI cap; NIM_CHAR data[14+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_64 = { 14 | NIM_STRLIT_FLAG, "Not a git repo" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_65 = {14, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_64};
static const struct {
  NI cap; NIM_CHAR data[0+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_67 = { 0 | NIM_STRLIT_FLAG, "" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_68 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_69 = { 6 | NIM_STRLIT_FLAG, "gitops" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_70 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_69};
static const struct {
  NI cap; NIM_CHAR data[19+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_71 = { 19 | NIM_STRLIT_FLAG, "Running Git failed:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_72 = {19, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_71};
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_73 = { 8 | NIM_STRLIT_FLAG, "command:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_74 = {8, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_73};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_75 = { 7 | NIM_STRLIT_FLAG, "`$1 $2`" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_76 = {7, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_75};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_77 = { 1 | NIM_STRLIT_FLAG, " " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_78 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_77};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_79 = { 6 | NIM_STRLIT_FLAG, "REMOTE" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_80 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_79};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_81 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__woSSp9bWtDECsT5QjOFwmRw_82 = {
0x00, 0x3e, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static const struct {
  NI cap; NIM_CHAR data[19+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_83 = { 19 | NIM_STRLIT_FLAG, "could not \'git tag " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_84 = {19, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_83};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_85 = { 1 | NIM_STRLIT_FLAG, "\'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_86 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[26+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_87 = { 26 | NIM_STRLIT_FLAG, "missing canonical remote \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_88 = {26, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_87};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_89 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_90 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_91 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_92 = { 4 | NIM_STRLIT_FLAG, "git@" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_93 = {4, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_92};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_94 = { 6 | NIM_STRLIT_FLAG, "ssh://" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_95 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_94};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_96 = { 1 | NIM_STRLIT_FLAG, ":" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_97 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_96};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_98 = { 1 | NIM_STRLIT_FLAG, "/" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_99 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_98};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_100 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_101 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_102 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_98};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_103 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_98};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_104 = { 4 | NIM_STRLIT_FLAG, ".git" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_105 = {4, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_104};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_106 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_98};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_107 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_109 = { 1 | NIM_STRLIT_FLAG, "." };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_110 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_109};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_111 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_109};
static const struct {
  NI cap; NIM_CHAR data[49+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_112 = { 49 | NIM_STRLIT_FLAG, "could not derive remote name from canonical URL: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_113 = {49, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_112};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_114 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[90+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_116 = { 90 | NIM_STRLIT_FLAG, "iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_117 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_118 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const struct {
  NI cap; NIM_CHAR data[25+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_120 = { 25 | NIM_STRLIT_FLAG, "could not rename remote \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_121 = {25, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_120};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_122 = { 6 | NIM_STRLIT_FLAG, "\' to \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_123 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_122};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_124 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_125 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[22+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_126 = { 22 | NIM_STRLIT_FLAG, "could not add remote \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_127 = {22, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_126};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_128 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[30+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_129 = { 30 | NIM_STRLIT_FLAG, "could not set URL for remote \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_130 = {30, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_129};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_131 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[3+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_132 = { 3 | NIM_STRLIT_FLAG, "git" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_133 = {3, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_132};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_134 = { 5 | NIM_STRLIT_FLAG, "https" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_135 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_134};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_136 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[10+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_137 = { 10 | NIM_STRLIT_FLAG, "github.com" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_138 = {10, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_137};
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__woSSp9bWtDECsT5QjOFwmRw_139 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
static const struct {
  NI cap; NIM_CHAR data[41+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_140 = { 41 | NIM_STRLIT_FLAG, "could not resolve remote from canonical \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_141 = {41, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_140};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_142 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_143 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_79};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_144 = { 20 | NIM_STRLIT_FLAG, "could not \'git push " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_145 = {20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_144};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_146 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_77};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_147 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[21+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_148 = { 21 | NIM_STRLIT_FLAG, "Everything up-to-date" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_149 = {21, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_148};
static const struct {
  NI cap; NIM_CHAR data[13+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_151 = { 13 | NIM_STRLIT_FLAG, "is up-to-date" };
static const struct {
  NI cap; NIM_CHAR data[25+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_152 = { 25 | NIM_STRLIT_FLAG, "successfully pushed tag: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_153 = {25, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_152};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_154 = { 6 | NIM_STRLIT_FLAG, "v0.0.1" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_155 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_154};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_156 = { 6 | NIM_STRLIT_FLAG, "--tags" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_157 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_156};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_158 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_159 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_154};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_160 = { 20 | NIM_STRLIT_FLAG, "the current commit \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_161 = {20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_160};
static const struct {
  NI cap; NIM_CHAR data[21+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_162 = { 21 | NIM_STRLIT_FLAG, "\' is already tagged \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_163 = {21, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_162};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_164 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[14+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_165 = { 14 | NIM_STRLIT_FLAG, "the last tag \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_166 = {14, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_165};
static const struct {
  NI cap; NIM_CHAR data[22+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_167 = { 22 | NIM_STRLIT_FLAG, "\' is missing . periods" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_168 = {22, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_167};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_169 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[17+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_184 = { 17 | NIM_STRLIT_FLAG, "git pull error: \012" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_185 = {17, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_184};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_186 = { 5 | NIM_STRLIT_FLAG, "\012>>> " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_187 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_186};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_189 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_190 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_192 = { 20 | NIM_STRLIT_FLAG, "could not \'git pull\'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_193 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_194 = { 9 | NIM_STRLIT_FLAG, "--depth=1" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_195 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_194};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_196 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_197 = { 8 | NIM_STRLIT_FLAG, "--origin" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_198 = {8, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_197};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_199 = { 9 | NIM_STRLIT_FLAG, "--no-tags" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_200 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_199};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_201 = { 6 | NIM_STRLIT_FLAG, "origin" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_202 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_201};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_203 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_204 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_201};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_205 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_206 = { 9 | NIM_STRLIT_FLAG, "not found" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_207 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_206};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_208 = {14, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_64};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_209 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_206};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_211 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_212 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_194};
static const struct {
  NI cap; NIM_CHAR data[26+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_213 = { 26 | NIM_STRLIT_FLAG, "+refs/tags/*:refs/remotes/" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_214 = {26, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_213};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_215 = { 7 | NIM_STRLIT_FLAG, "/tags/*" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_216 = {7, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_215};
static const struct {
  NI cap; NIM_CHAR data[28+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_217 = { 28 | NIM_STRLIT_FLAG, "could not fetch remote tags:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_218 = {28, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_217};
static const struct {
  NI cap; NIM_CHAR data[29+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_220 = { 29 | NIM_STRLIT_FLAG, "not a git repo; cannot update" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_221 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[31+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_223 = { 31 | NIM_STRLIT_FLAG, "no remotes found; cannot update" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_224 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_225 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_226 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const struct {
  NI cap; NIM_CHAR data[17+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_227 = { 17 | NIM_STRLIT_FLAG, "skipping remote \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_228 = {17, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_227};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_229 = { 16 | NIM_STRLIT_FLAG, "\'; same URL as \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_230 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_229};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_231 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[14+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_232 = { 14 | NIM_STRLIT_FLAG, "+refs/remotes/" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_233 = {14, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_232};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_234 = { 16 | NIM_STRLIT_FLAG, "/*:refs/remotes/" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_235 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_234};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_236 = { 2 | NIM_STRLIT_FLAG, "/*" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_237 = {2, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_236};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_238 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_109};
static const struct {
  NI cap; NIM_CHAR data[33+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_239 = { 33 | NIM_STRLIT_FLAG, "could not sync remote refs from \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_240 = {33, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_239};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_241 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_122};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_242 = { 2 | NIM_STRLIT_FLAG, "\':" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_243 = {2, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_242};
static const struct {
  NI cap; NIM_CHAR data[34+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_244 = { 34 | NIM_STRLIT_FLAG, "could not sync remote alias refs \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_245 = {34, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_244};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_246 = { 6 | NIM_STRLIT_FLAG, "\' -> \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_247 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_246};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_248 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const struct {
  NI cap; NIM_CHAR data[30+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_250 = { 30 | NIM_STRLIT_FLAG, "no remote found; cannot update" };
static const struct {
  NI cap; NIM_CHAR data[13+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_251 = { 13 | NIM_STRLIT_FLAG, "refs/remotes/" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_252 = {13, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_251};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_253 = { 5 | NIM_STRLIT_FLAG, "/tags" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_254 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_253};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_255 = {13, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_251};
static const struct {
  NI cap; NIM_CHAR data[33+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_256 = { 33 | NIM_STRLIT_FLAG, "--format=%(objectname) %(refname)" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_257 = {33, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_256};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_258 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[30+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_259 = { 30 | NIM_STRLIT_FLAG, "could not update remote tags: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_260 = {30, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_259};
static const struct {
  NI cap; NIM_CHAR data[25+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_261 = { 25 | NIM_STRLIT_FLAG, "tags already up to date: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_262 = {25, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_261};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_276 = { 4 | NIM_STRLIT_FLAG, " ref" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_277 = {4, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_276};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_278 = { 5 | NIM_STRLIT_FLAG, " refs" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_279 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_278};
static const struct {
  NI cap; NIM_CHAR data[21+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_280 = { 21 | NIM_STRLIT_FLAG, "updated remote tags: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_281 = {21, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_280};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_282 = { 2 | NIM_STRLIT_FLAG, " (" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_283 = {2, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_282};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_284 = { 9 | NIM_STRLIT_FLAG, " updated)" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_285 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_284};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_286 = {21, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_280};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_287 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_194};
static const struct {
  NI cap; NIM_CHAR data[27+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_288 = { 27 | NIM_STRLIT_FLAG, "+refs/heads/*:refs/remotes/" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_289 = {27, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_288};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_290 = {2, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_236};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_291 = {26, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_213};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_292 = {7, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_215};
static const struct {
  NI cap; NIM_CHAR data[34+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_293 = { 34 | NIM_STRLIT_FLAG, "could not fetch remote heads/tags:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_294 = {34, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_293};
static const struct {
  NI cap; NIM_CHAR data[36+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_295 = { 36 | NIM_STRLIT_FLAG, "could not update remote heads/tags: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_296 = {36, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_295};
static const struct {
  NI cap; NIM_CHAR data[12+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_297 = { 12 | NIM_STRLIT_FLAG, "up to date: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_298 = {12, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_297};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_299 = {4, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_276};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_300 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_278};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_301 = { 16 | NIM_STRLIT_FLAG, "updated remote: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_302 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_301};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_303 = {2, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_282};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_304 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_284};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_305 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_301};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_306 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const struct {
  NI cap; NIM_CHAR data[41+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_308 = { 41 | NIM_STRLIT_FLAG, "could not update repo tags across remotes" };
static const struct {
  NI cap; NIM_CHAR data[29+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_310 = { 29 | NIM_STRLIT_FLAG, "could not update repo remotes" };
static const struct {
  NI cap; NIM_CHAR data[30+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_312 = { 30 | NIM_STRLIT_FLAG, "successfully updated repo tags" };
static const struct {
  NI cap; NIM_CHAR data[25+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_314 = { 25 | NIM_STRLIT_FLAG, "successfully updated repo" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_315 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_316 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_317 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_318 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_319 = {13, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_251};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_320 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_98};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_321 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_328 = { 4 | NIM_STRLIT_FLAG, "HEAD" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_329 = {4, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_328};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_330 = { 4 | NIM_STRLIT_FLAG, "main" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_331 = {4, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_330};
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_332 = { 6 | NIM_STRLIT_FLAG, "master" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_333 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_332};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_334 = { 5 | NIM_STRLIT_FLAG, "/HEAD" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_335 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_334};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_336 = { 5 | NIM_STRLIT_FLAG, "/main" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_337 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_336};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_338 = { 7 | NIM_STRLIT_FLAG, "/master" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_339 = {7, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_338};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_340 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_341 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_194};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_342 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_79};
static const struct {
  NI cap; NIM_CHAR data[29+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_343 = { 29 | NIM_STRLIT_FLAG, "could not fetch remote heads:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_344 = {29, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_343};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_345 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_79};
static const struct {
  NI cap; NIM_CHAR data[32+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_346 = { 32 | NIM_STRLIT_FLAG, "could not find remote head for \'" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_347 = {32, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_346};
static const struct {
  NI cap; NIM_CHAR data[23+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_348 = { 23 | NIM_STRLIT_FLAG, "\'; using local HEAD at:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_349 = {23, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_348};
static const struct {
  NI cap; NIM_CHAR data[3+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_351 = { 3 | NIM_STRLIT_FLAG, "-n1" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_353 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_354 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_96};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_355 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_356 = { 5 | NIM_STRLIT_FLAG, "#head" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_357 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_356};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_358 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_359 = { 1 | NIM_STRLIT_FLAG, "#" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_360 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_359};
static const struct {
  NI cap; NIM_CHAR data[15+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_361 = { 15 | NIM_STRLIT_FLAG, "expandSpecial: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_362 = {15, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_361};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_363 = { 7 | NIM_STRLIT_FLAG, "result:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_364 = {7, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_363};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_365 = {41, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_140};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_366 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_367 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_98};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_368 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_359};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_369 = {15, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_361};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_370 = {7, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_363};
static const struct {
  NI cap; NIM_CHAR data[33+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_371 = { 33 | NIM_STRLIT_FLAG, "could not expand special version:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_372 = {33, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_371};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_373 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_374 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_375 = {6, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_79};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_376 = { 2 | NIM_STRLIT_FLAG, "--" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_377 = {2, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_376};
static const struct {
  NI cap; NIM_CHAR data[34+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_378 = { 34 | NIM_STRLIT_FLAG, "could not collect file commits at:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_379 = {34, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_378};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_380 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_381 = { 9 | NIM_STRLIT_FLAG, "refs/tags" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_382 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_381};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_383 = {33, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_256};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_384 = {13, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_251};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_385 = {5, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_253};
static const struct {
  NI cap; NIM_CHAR data[36+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_386 = { 36 | NIM_STRLIT_FLAG, "could not collect tagged commits at:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_387 = {36, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_386};
static const struct {
  NI cap; NIM_CHAR data[26+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_388 = { 26 | NIM_STRLIT_FLAG, "could not checkout commit " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_389 = {26, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_388};
static const struct {
  NI cap; NIM_CHAR data[19+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_390 = { 19 | NIM_STRLIT_FLAG, "updated package to " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_391 = {19, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_390};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_392 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_194};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_393 = {41, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_140};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_394 = {1, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_85};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_395 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_396 = { 16 | NIM_STRLIT_FLAG, "--update-shallow" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_397 = {16, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_396};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_398 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_399 = {9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_199};
static const struct {
  NI cap; NIM_CHAR data[23+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_400 = { 23 | NIM_STRLIT_FLAG, "could not fetch commit " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_401 = {23, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_400};
static const struct {
  NI cap; NIM_CHAR data[23+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_402 = { 23 | NIM_STRLIT_FLAG, "fetched package commit " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_403 = {23, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_402};
static const struct {
  NI cap; NIM_CHAR data[51+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_404 = { 51 | NIM_STRLIT_FLAG, "found short commit id; doing full fetch to resolve " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_405 = {51, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_404};
static const struct {
  NI cap; NIM_CHAR data[11+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_407 = { 11 | NIM_STRLIT_FLAG, "--unshallow" };
static const struct {
  NI cap; NIM_CHAR data[17+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_408 = { 17 | NIM_STRLIT_FLAG, "could not fetch: " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_409 = {17, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_408};
static const struct {
  NI cap; NIM_CHAR data[24+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_411 = { 24 | NIM_STRLIT_FLAG, "fetched package updates " };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_412 = {26, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_388};
static const struct {
  NI cap; NIM_CHAR data[19+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_413 = { 19 | NIM_STRLIT_FLAG, "updated package to:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_414 = {19, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_413};
static const struct {
  NI cap; NIM_CHAR data[11+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_415 = { 11 | NIM_STRLIT_FLAG, ".gitmodules" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_416 = {11, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_415};
static const struct {
  NI cap; NIM_CHAR data[29+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_418 = { 29 | NIM_STRLIT_FLAG, "Found submodules; Updating..." };
static const struct {
  NI cap; NIM_CHAR data[27+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_420 = { 27 | NIM_STRLIT_FLAG, "could not update submodules" };
static const struct {
  NI cap; NIM_CHAR data[18+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_422 = { 18 | NIM_STRLIT_FLAG, "updated submodules" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_423 = {0, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_67};
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_425 = {90, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_116};
static const struct {
  NI cap; NIM_CHAR data[36+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_427 = { 36 | NIM_STRLIT_FLAG, "checking is package is up to date..." };
static const struct {
  NI cap; NIM_CHAR data[37+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_429 = { 37 | NIM_STRLIT_FLAG, "git list remote tags failed, skipping" };
static const struct {
  NI cap; NIM_CHAR data[17+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_430 = { 17 | NIM_STRLIT_FLAG, "got new versions:" };
static const NimStringV2 TM__woSSp9bWtDECsT5QjOFwmRw_431 = {17, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_430};
static const struct {
  NI cap; NIM_CHAR data[45+1];
} TM__woSSp9bWtDECsT5QjOFwmRw_434 = { 45 | NIM_STRLIT_FLAG, "no local tags found, checking for new commits" };
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_150 = {{13, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_151}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_191 = {{20, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_192}}
;
N_LIB_PRIVATE NIM_CONST tyArray__kwH07lKnsR9bj3o9bSnruElQ Pauses__basicZgitops_u551 = {((NI)0),
((NI)1000),
((NI)2000),
((NI)3000),
((NI)4000),
((NI)6000)}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_219 = {{29, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_220}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_222 = {{31, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_223}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_249 = {{30, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_250}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_307 = {{41, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_308}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_309 = {{29, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_310}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_311 = {{30, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_312}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_313 = {{25, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_314}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_350 = {{3, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_351}}
;
static NIM_CONST tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ TM__woSSp9bWtDECsT5QjOFwmRw_406 = {{11, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_407},
{9, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_199}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_410 = {{24, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_411}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_417 = {{29, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_418}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_419 = {{27, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_420}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_421 = {{18, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_422}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_426 = {{36, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_427}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_428 = {{37, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_429}}
;
static NIM_CONST tyArray__YgExxhfgKcesA5EOUj1MOA TM__woSSp9bWtDECsT5QjOFwmRw_433 = {{45, (NimStrPayload*)&TM__woSSp9bWtDECsT5QjOFwmRw_434}}
;
static NIM_CONST tyTuple__8c9aE37D67XHNzuQEKrzh5g TM__woSSp9bWtDECsT5QjOFwmRw_435 = {NIM_FALSE,
((NI)0)}
;
extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4198;
extern NIM_THREADVAR Exception* currException__system_u3686;
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(NimStringV2, dollar___basicZgitops_u54)(tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg e_p0) {
	NimStringV2 result;
	switch (e_p0) {
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_5;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)1):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_7;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)2):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_9;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)3):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_11;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)4):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_13;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)5):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_15;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)6):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_17;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)7):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_19;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)8):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_21;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)9):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_23;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)10):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_25;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)11):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_27;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)12):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_29;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)13):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_31;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)14):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_33;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)15):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_35;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)16):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_37;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)17):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_39;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)18):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_41;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)19):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_43;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)20):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_45;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)21):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_47;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)22):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_49;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)23):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_51;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)24):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_53;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)25):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_55;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)26):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_57;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)27):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_59;
	}
	break;
	case ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)28):
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_61;
	}
	break;
	default:
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_63;
	}
	break;
	}
	return result;
}
static N_INLINE(void, nimAddCharV1)(NimStringV2* s_p0, NIM_CHAR c_p1) {
	prepareAdd(s_p0, ((NI)1));
	(*(*s_p0).p).data[(*s_p0).len] = c_p1;
	(*s_p0).len += ((NI)1);
	(*(*s_p0).p).data[(*s_p0).len] = 0;
}
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(NIM_BOOL, nimAddInt)(NI a_p0, NI b_p1, NI* res_p2) {
	NIM_BOOL result;
	NI r_1;
	result = (NIM_BOOL)0;
	r_1 = ((NI) ((NU)((NU64)(((NU) (a_p0))) + (NU64)(((NU) (b_p1))))));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI)0) <= (NI)(r_1 ^ a_p0));
		if (T3_) goto LA4_;
		T3_ = (((NI)0) <= (NI)(r_1 ^ b_p1));
LA4_: ;
		if (!T3_) goto LA5_;
		(*res_p2) = r_1;
	}
	goto LA1_;
LA5_: ;
	{
		result = NIM_TRUE;
	}
LA1_: ;
	return result;
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (&nimInErrorMode__system_u4198);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyTuple__XOVT24GHXwqiEj5GCsEGCA, exec__basicZgitops_u76)(tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg gitCmd_p0, NimStringV2 path_p1, NimStringV2* args_p2, NI args_p2Len_0, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3, NimStringV2* subs_p4, NI subs_p4Len_0, NIM_BOOL requireRepo_p5, NIM_BOOL streamOutput_p6) {
	tyTuple__XOVT24GHXwqiEj5GCsEGCA result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ repl_1;
	NimStringV2 colontmpD_;
	NimStringV2 cmd_1;
	NimStringV2 colontmpD__2;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	repl_1.len = 0; repl_1.p = NIM_NIL;
	cmd_1.len = 0; cmd_1.p = NIM_NIL;
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	repl_1.len = 2; repl_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(2, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	repl_1.p->data[0] = TM__woSSp9bWtDECsT5QjOFwmRw_3;
	colontmpD_ = eqdup___system_u2757(path_p1);
	repl_1.p->data[1] = colontmpD_;
	{
		NimStringV2* s_1;
		NI i_1;
		s_1 = (NimStringV2*)0;
		i_1 = ((NI)0);
		{
			while (1) {
				NimStringV2 colontmpD__3;
				if (!(i_1 < subs_p4Len_0)) goto LA4;
				if (i_1 < 0 || i_1 >= subs_p4Len_0){ raiseIndexError2(i_1,subs_p4Len_0-1); goto LA1_;
				}
				s_1 = (&subs_p4[i_1]);
				colontmpD__3 = eqdup___system_u2757((*s_1));
				add__stdZenumutils_u70((&repl_1), colontmpD__3);
				i_1 += ((NI)1);
			} LA4: ;
		}
	}
	colontmpD__2 = dollar___basicZgitops_u54(gitCmd_p0);
	cmd_1 = nsuFormatOpenArray(colontmpD__2, ((repl_1).p) ? (repl_1.p->data) : NIM_NIL, repl_1.len);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T7_;
		NIM_BOOL T9_;
		NimStringV2 colontmp_;
		NI colontmp__2;
		NimStringV2 blitTmp_1;
		T7_ = (NIM_BOOL)0;
		T7_ = requireRepo_p5;
		if (!(T7_)) goto LA8_;
		T9_ = (NIM_BOOL)0;
		T9_ = isGitDir__basicZcontext_u378(path_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T7_ = !(T9_);
LA8_: ;
		if (!T7_) goto LA10_;
		colontmp_.len = 0; colontmp_.p = NIM_NIL;
		colontmp_ = TM__woSSp9bWtDECsT5QjOFwmRw_65;
		colontmp__2 = ((NI)1);
		blitTmp_1 = colontmp_;
		result.Field0 = blitTmp_1;
		result.Field1 = colontmp__2;
	}
	goto LA5_;
LA10_: ;
	{
		NimStringV2 cmdLine_1;
		NimStringV2 colontmp__3;
		NI colontmp__5;
		NimStringV2 blitTmp_2;
		if (!streamOutput_p6) goto LA13_;
		cmdLine_1.len = 0; cmdLine_1.p = NIM_NIL;
		colontmp__3.len = 0; colontmp__3.p = NIM_NIL;
		eqcopy___system_u2754((&cmdLine_1), cmd_1);
		{
			NI i_2;
			NI colontmp__4;
			NI i_3;
			i_2 = (NI)0;
			colontmp__4 = (NI)0;
			colontmp__4 = args_p2Len_0;
			i_3 = ((NI)0);
			{
				while (1) {
					NI TM__woSSp9bWtDECsT5QjOFwmRw_66;
					if (!(i_3 < colontmp__4)) goto LA17;
					i_2 = i_3;
					nimAddCharV1((&cmdLine_1), 32);
					{
						NimStringV2 colontmpD__4;
						if (i_2 < 0 || i_2 >= args_p2Len_0){ raiseIndexError2(i_2,args_p2Len_0-1); goto LA1_;
						}
						if (!(((NI)0) < args_p2[i_2].len)) goto LA20_;
						colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
						if (i_2 < 0 || i_2 >= args_p2Len_0){ raiseIndexError2(i_2,args_p2Len_0-1); goto LA1_;
						}
						colontmpD__4 = nospquoteShell(args_p2[i_2]);
						if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
						prepareAdd((&cmdLine_1), colontmpD__4.len + 0);
appendString((&cmdLine_1), colontmpD__4);
						if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
					}
LA20_: ;
					if (nimAddInt(i_3, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_66)) { raiseOverflow(); goto LA1_;
					};
					i_3 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_66);
				} LA17: ;
			}
		}
		colontmp__3 = TM__woSSp9bWtDECsT5QjOFwmRw_68;
		colontmp__5 = nosexecShellCmd(cmdLine_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		blitTmp_2 = colontmp__3;
		result.Field0 = blitTmp_2;
		result.Field1 = colontmp__5;
		if (cmdLine_1.p && !(cmdLine_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(cmdLine_1.p);
}
	}
	goto LA5_;
LA13_: ;
	{
		result = silentExec__basicZosutils_u78(cmd_1, args_p2, args_p2Len_0);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA5_: ;
	{
		NimStringV2 colontmpD__5;
		NimStringV2 colontmpD__6;
		NimStringV2 colontmpD__7;
		tyArray__Seu7uK9aaOSN0BK3EAjjSHw T28_;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T29_;
		if (!!((result.Field1 == ((NI)0)))) goto LA25_;
		colontmpD__5.len = 0; colontmpD__5.p = NIM_NIL;
		colontmpD__6.len = 0; colontmpD__6.p = NIM_NIL;
		colontmpD__7.len = 0; colontmpD__7.p = NIM_NIL;
		T28_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_72;
		colontmpD__5 = dollar___systemZdollars_u14(result.Field1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA27_;
		T28_[1] = colontmpD__5;
		T28_[2] = TM__woSSp9bWtDECsT5QjOFwmRw_74;
		T29_[0] = cmd_1;
		colontmpD__6 = nsuJoinSep(args_p2, args_p2Len_0, TM__woSSp9bWtDECsT5QjOFwmRw_78);
		if (NIM_UNLIKELY(*nimErr_)) goto LA27_;
		T29_[1] = colontmpD__6;
		colontmpD__7 = nsuFormatOpenArray(TM__woSSp9bWtDECsT5QjOFwmRw_76, T29_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA27_;
		T28_[3] = colontmpD__7;
		message__basicZgitops_u181(errorReportLevel_p3, TM__woSSp9bWtDECsT5QjOFwmRw_70, T28_, 4);
		if (NIM_UNLIKELY(*nimErr_)) goto LA27_;
		{
			LA27_:;
		}
		{
			if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
			if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
			if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA25_: ;
	{
		LA1_:;
	}
	{
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		if (cmd_1.p && !(cmd_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(cmd_1.p);
}
		eqdestroy___system_u5582(repl_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getRemoteUrlFor__basicZgitops_u342)(NimStringV2 path_p0, NimStringV2 remote_p1) {
	NimStringV2 result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T2_;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	T3_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_80;
	T3_[1] = remote_p1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)1), path_p0, T2_, 0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T3_, 2, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		if (!!((status_1 == ((NI)0)))) goto LA6_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_81;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		goto BeforeRet_;
	}
LA6_: ;
	result = nsuStrip(outp_1, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getCanonicalUrl__basicZgitops_u349)(NimStringV2 path_p0, NimStringV2 origin_p1) {
	NimStringV2 result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	result = getRemoteUrlFor__basicZgitops_u342(path_p0, origin_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, gitTag__basicZgitops_u1266)(NimStringV2 path_p0, NimStringV2 tag_p1) {
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	tyArray__YgExxhfgKcesA5EOUj1MOA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	T2_[0] = tag_p1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)9), path_p0, T2_, 1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	status_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmpD_;
		tyArray__YgExxhfgKcesA5EOUj1MOA T9_;
		NimStringV2 T10_;
		if (!!((status_1 == ((NI)0)))) goto LA6_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		T10_.len = 0; T10_.p = NIM_NIL;
		T10_ = rawNewString(tag_p1.len + 20);
appendString((&T10_), TM__woSSp9bWtDECsT5QjOFwmRw_84);
appendString((&T10_), tag_p1);
appendString((&T10_), TM__woSSp9bWtDECsT5QjOFwmRw_86);
		colontmpD_ = T10_;
		T9_[0] = colontmpD_;
		error__basicZgitops_u1259(path_p0, T9_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		{
			LA8_:;
		}
		{
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA6_: ;
	{
		LA1_:;
	}
	{
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(void, eqdestroy___system_u281)(NimStringV2 x_p0) {
}
static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2) {
	NIM_BOOL result;
	NIM_BOOL T1_;
	T1_ = (NIM_BOOL)0;
	T1_ = (targetDepth_p1 <= (*source_p0).depth);
	if (!(T1_)) goto LA2_;
	T1_ = ((*source_p0).display[targetDepth_p1] == token_p2);
LA2_: ;
	result = T1_;
	return result;
}
static N_INLINE(Exception*, nimBorrowCurrentException)(void) {
	Exception* result;
	result = currException__system_u3686;
	return result;
}
static N_INLINE(void, popCurrentException)(void) {
	eqcopy___system_u3719(&currException__system_u3686, (*currException__system_u3686).up, NIM_FALSE);
}
static N_INLINE(NIM_BOOL, nimSubInt)(NI a_p0, NI b_p1, NI* res_p2) {
	NIM_BOOL result;
	NI r_1;
	result = (NIM_BOOL)0;
	r_1 = ((NI) ((NU)((NU64)(((NU) (a_p0))) - (NU64)(((NU) (b_p1))))));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI)0) <= (NI)(r_1 ^ a_p0));
		if (T3_) goto LA4_;
		T3_ = (((NI)0) <= (NI)(r_1 ^ (NI)((NU64) ~(b_p1))));
LA4_: ;
		if (!T3_) goto LA5_;
		(*res_p2) = r_1;
	}
	goto LA1_;
LA5_: ;
	{
		result = NIM_TRUE;
	}
LA1_: ;
	return result;
}
static N_INLINE(NimStringV2, X5BX5D___basicZgitops_u106)(NimStringV2* s_p0, NI s_p0Len_0, NI i_p1) {
	NimStringV2 result;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_108;
{	result.len = 0; result.p = NIM_NIL;
	if (nimSubInt(s_p0Len_0, i_p1, &TM__woSSp9bWtDECsT5QjOFwmRw_108)) { raiseOverflow(); goto BeforeRet_;
	};
	if ((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_108) < 0 || (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_108) >= s_p0Len_0){ raiseIndexError2((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_108),s_p0Len_0-1); goto BeforeRet_;
	}
	eqcopy___system_u2754((&result), s_p0[(NI)(TM__woSSp9bWtDECsT5QjOFwmRw_108)]);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, remoteNameFromGitUrl__basicZgitops_u323)(NimStringV2 rawUrl_p0) {
	NimStringV2 result;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA u_1;
	NimStringV2 p_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ parts_1;
	NimStringV2 user_1;
	NimStringV2 repo_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ T22_;
	NimStringV2 T28_;
	NimStringV2 T29_;
	NimStringV2 T30_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&u_1), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	p_1.len = 0; p_1.p = NIM_NIL;
	parts_1.len = 0; parts_1.p = NIM_NIL;
	user_1.len = 0; user_1.p = NIM_NIL;
	repo_1.len = 0; repo_1.p = NIM_NIL;
	{
		if (!(rawUrl_p0.len == ((NI)0))) goto LA4_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_91;
		if (repo_1.p && !(repo_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(repo_1.p);
}
		if (user_1.p && !(user_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(user_1.p);
}
		eqdestroy___system_u5582(parts_1);
		if (p_1.p && !(p_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(p_1.p);
}
		eqdestroy___pureZuri_u213((&u_1));
		goto BeforeRet_;
	}
LA4_: ;
	{
		NIM_BOOL T9_;
		NimStringV2 colontmpD_;
		NimStringV2 colontmpD__2;
		NimStringV2 T12_;
		NimStringV2 T13_;
		T9_ = (NIM_BOOL)0;
		T9_ = nsuStartsWith(rawUrl_p0, TM__woSSp9bWtDECsT5QjOFwmRw_93);
		if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
		if (!T9_) goto LA10_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
		T12_.len = 0; T12_.p = NIM_NIL;
		T13_.len = 0; T13_.p = NIM_NIL;
		T13_ = nsuReplaceStr(rawUrl_p0, TM__woSSp9bWtDECsT5QjOFwmRw_97, TM__woSSp9bWtDECsT5QjOFwmRw_99);
		if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T13_); goto LA6_;}
		colontmpD_ = T13_;
		T12_ = rawNewString(colontmpD_.len + 6);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_95);
appendString((&T12_), colontmpD_);
		colontmpD__2 = T12_;
		parseUri__pureZuri_u295(colontmpD__2, (&u_1));
		if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
		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);
}
	}
	goto LA7_;
LA10_: ;
	{
		parseUri__pureZuri_u295(rawUrl_p0, (&u_1));
		if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
	}
LA7_: ;
	if (NIM_UNLIKELY(*nimErr_)) {
		LA6_:;
		if (isObjDisplayCheck(nimBorrowCurrentException()->Sup.m_type, 2, 599397120)) {
			*nimErr_ = NIM_FALSE;
			result = TM__woSSp9bWtDECsT5QjOFwmRw_100;
			if (repo_1.p && !(repo_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(repo_1.p);
}
			if (user_1.p && !(user_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(user_1.p);
}
			eqdestroy___system_u5582(parts_1);
			if (p_1.p && !(p_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(p_1.p);
}
			eqdestroy___pureZuri_u213((&u_1));
			popCurrentException();
			goto BeforeRet_;
			popCurrentException();
			LA16_:;
		}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(u_1.hostname.len == ((NI)0))) goto LA20_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_101;
		if (repo_1.p && !(repo_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(repo_1.p);
}
		if (user_1.p && !(user_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(user_1.p);
}
		eqdestroy___system_u5582(parts_1);
		if (p_1.p && !(p_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(p_1.p);
}
		eqdestroy___pureZuri_u213((&u_1));
		goto BeforeRet_;
	}
LA20_: ;
	p_1 = u_1.path;
	eqwasMoved___system_u2751((&u_1.path));
	nsuRemovePrefixString((&p_1), TM__woSSp9bWtDECsT5QjOFwmRw_102);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	nsuRemoveSuffixString((&p_1), TM__woSSp9bWtDECsT5QjOFwmRw_103);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	nsuRemoveSuffixString((&p_1), TM__woSSp9bWtDECsT5QjOFwmRw_105);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T22_.len = 0; T22_.p = NIM_NIL;
	T22_ = nsuSplitString(p_1, TM__woSSp9bWtDECsT5QjOFwmRw_106, ((NI)-1));
	if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u5582(T22_); goto LA1_;}
	parts_1 = T22_;
	{
		NI T25_;
		T25_ = parts_1.len;
		if (!(T25_ < ((NI)2))) goto LA26_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_107;
		if (repo_1.p && !(repo_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(repo_1.p);
}
		if (user_1.p && !(user_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(user_1.p);
}
		eqdestroy___system_u5582(parts_1);
		if (p_1.p && !(p_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(p_1.p);
}
		eqdestroy___pureZuri_u213((&u_1));
		goto BeforeRet_;
	}
LA26_: ;
	T28_.len = 0; T28_.p = NIM_NIL;
	T28_ = X5BX5D___basicZgitops_u106(((parts_1).p) ? (parts_1.p->data) : NIM_NIL, parts_1.len, ((NI)2));
	if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T28_); goto LA1_;}
	user_1 = T28_;
	T29_.len = 0; T29_.p = NIM_NIL;
	T29_ = X5BX5D___basicZgitops_u106(((parts_1).p) ? (parts_1.p->data) : NIM_NIL, parts_1.len, ((NI)1));
	if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T29_); goto LA1_;}
	repo_1 = T29_;
	T30_.len = 0; T30_.p = NIM_NIL;
	{
		if (!(user_1.len == ((NI)0))) goto LA33_;
		result = repo_1;
		eqwasMoved___system_u2751((&repo_1));
	}
	goto LA31_;
LA33_: ;
	{
		NimStringV2 T36_;
		T36_.len = 0; T36_.p = NIM_NIL;
		T36_ = rawNewString(repo_1.len + user_1.len + u_1.hostname.len + 2);
appendString((&T36_), repo_1);
appendString((&T36_), TM__woSSp9bWtDECsT5QjOFwmRw_110);
appendString((&T36_), user_1);
appendString((&T36_), TM__woSSp9bWtDECsT5QjOFwmRw_111);
appendString((&T36_), u_1.hostname);
		result = T36_;
	}
LA31_: ;
	{
		LA1_:;
	}
	{
		if (repo_1.p && !(repo_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(repo_1.p);
}
		if (user_1.p && !(user_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(user_1.p);
}
		eqdestroy___system_u5582(parts_1);
		if (p_1.p && !(p_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(p_1.p);
}
		eqdestroy___pureZuri_u213((&u_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, listRemotes__basicZgitops_u195)(NimStringV2 path_p0) {
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ T4_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)2), path_p0, T2_, 0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	T4_.len = 0; T4_.p = NIM_NIL;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ resultX60gensym15__1;
		if (!(status_1 == ((NI)0))) goto LA7_;
		resultX60gensym15__1.len = 0; resultX60gensym15__1.p = NIM_NIL;
		resultX60gensym15__1 = newSeq__stdZsyncio_u578(((NI)0));
		{
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ colontmp_;
			NimStringV2* it_1;
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ T10_;
			NI i_2;
			NI L_2;
			NI T23_;
			colontmp_.len = 0; colontmp_.p = NIM_NIL;
			it_1 = (NimStringV2*)0;
			T10_.len = 0; T10_.p = NIM_NIL;
			{
				tySequence__sM4lkSb7zS6F7OVMvW9cffQ colontmp__2;
				tySequence__sM4lkSb7zS6F7OVMvW9cffQ resultX60gensym12__1;
				NI iX60gensym12__1;
				NI T12_;
				colontmp__2.len = 0; colontmp__2.p = NIM_NIL;
				resultX60gensym12__1.len = 0; resultX60gensym12__1.p = NIM_NIL;
				colontmp__2 = nsuSplitLines(outp_1, NIM_FALSE);
				if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
				iX60gensym12__1 = ((NI)0);
				T12_ = colontmp__2.len;
				if ((T12_) < ((NI)0) || (T12_) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(T12_, ((NI)0), ((NI)IL64(9223372036854775807))); goto LA1_;
				}
				resultX60gensym12__1 = newSeq__stdZsyncio_u578((T12_));
				{
					NimStringV2* it_2;
					NI i_1;
					NI L_1;
					NI T14_;
					it_2 = (NimStringV2*)0;
					i_1 = ((NI)0);
					T14_ = colontmp__2.len;
					L_1 = T14_;
					{
						while (1) {
							NimStringV2 T17_;
							NI TM__woSSp9bWtDECsT5QjOFwmRw_115;
							if (!(i_1 < L_1)) goto LA16;
							if (i_1 < 0 || i_1 >= colontmp__2.len){ raiseIndexError2(i_1,colontmp__2.len-1); goto LA1_;
							}
							it_2 = (&colontmp__2.p->data[i_1]);
							if (iX60gensym12__1 < 0 || iX60gensym12__1 >= resultX60gensym12__1.len){ raiseIndexError2(iX60gensym12__1,resultX60gensym12__1.len-1); goto LA1_;
							}
							T17_.len = 0; T17_.p = NIM_NIL;
							T17_ = nsuStrip((*it_2), NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
							if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T17_); goto LA1_;}
							eqsink___system_u2760((&resultX60gensym12__1.p->data[iX60gensym12__1]), T17_);
							if (nimAddInt(iX60gensym12__1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_115)) { raiseOverflow(); goto LA1_;
							};
							iX60gensym12__1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_115);
							i_1 += ((NI)1);
							{
								NI T20_;
								T20_ = colontmp__2.len;
								if (!!((T20_ == L_1))) goto LA21_;
								failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_117);
								if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
							}
LA21_: ;
						} LA16: ;
					}
				}
				colontmp_ = resultX60gensym12__1;
				eqdestroy___system_u5582(colontmp__2);
			}
			i_2 = ((NI)0);
			T23_ = colontmp_.len;
			L_2 = T23_;
			{
				while (1) {
					if (!(i_2 < L_2)) goto LA25;
					if (i_2 < 0 || i_2 >= colontmp_.len){ raiseIndexError2(i_2,colontmp_.len-1); goto LA1_;
					}
					it_1 = (&colontmp_.p->data[i_2]);
					{
						NimStringV2 colontmpD_;
						if (!(((NI)0) < (*it_1).len)) goto LA28_;
						colontmpD_ = eqdup___system_u2757((*it_1));
						add__stdZenumutils_u70((&resultX60gensym15__1), colontmpD_);
					}
LA28_: ;
					i_2 += ((NI)1);
					{
						NI T32_;
						T32_ = colontmp_.len;
						if (!!((T32_ == L_2))) goto LA33_;
						failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_118);
						if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
					}
LA33_: ;
				} LA25: ;
			}
			eqdestroy___system_u5582(colontmp_);
		}
		result = resultX60gensym15__1;
		eqwasMoved___system_u5579((&resultX60gensym15__1));
		eqdestroy___system_u5582(resultX60gensym15__1);
	}
	goto LA5_;
LA7_: ;
	{
		result.len = 0; result.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	}
LA5_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(int, nimCmpMem)(void* a_p0, void* b_p1, NI size_p2) {
	int result;
	result = memcmp(a_p0, b_p1, ((size_t) (size_p2)));
	return result;
}
static N_INLINE(NIM_BOOL, equalMem__system_u1763)(void* a_p0, void* b_p1, NI size_p2) {
	NIM_BOOL result;
	int T1_;
	T1_ = (int)0;
	T1_ = nimCmpMem(a_p0, b_p1, size_p2);
	result = (T1_ == ((NI32)0));
	return result;
}
static N_INLINE(NIM_BOOL, eqStrings)(NimStringV2 a_p0, NimStringV2 b_p1) {
	NIM_BOOL result;
	NI alen_1;
	NI blen_1;
{	result = NIM_FALSE;
	alen_1 = a_p0.len;
	blen_1 = b_p1.len;
	{
		if (!(alen_1 == blen_1)) goto LA3_;
		{
			if (!(alen_1 == ((NI)0))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
LA7_: ;
		result = equalMem__system_u1763(((void*) ((&a_p0.p->data[((NI)0)]))), ((void*) ((&b_p1.p->data[((NI)0)]))), (alen_1));
		goto BeforeRet_;
	}
LA3_: ;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NI, find__stdZenumutils_u55)(NimStringV2* a_p0, NI a_p0Len_0, NimStringV2 item_p1) {
	NI result;
{	result = ((NI)0);
	{
		NimStringV2* i_1;
		NI i_2;
		i_1 = (NimStringV2*)0;
		i_2 = ((NI)0);
		{
			while (1) {
				NI TM__woSSp9bWtDECsT5QjOFwmRw_119;
				if (!(i_2 < a_p0Len_0)) goto LA3;
				if (i_2 < 0 || i_2 >= a_p0Len_0){ raiseIndexError2(i_2,a_p0Len_0-1); goto BeforeRet_;
				}
				i_1 = (&a_p0[i_2]);
				{
					if (!eqStrings((*i_1), item_p1)) goto LA6_;
					goto BeforeRet_;
				}
LA6_: ;
				if (nimAddInt(result, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_119)) { raiseOverflow(); goto BeforeRet_;
				};
				result = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_119);
				i_2 += ((NI)1);
			} LA3: ;
		}
	}
	result = ((NI)-1);
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, contains__stdZenumutils_u50)(NimStringV2* a_p0, NI a_p0Len_0, NimStringV2 item_p1) {
	NIM_BOOL result;
	NI T1_;
{	T1_ = (NI)0;
	T1_ = find__stdZenumutils_u55(a_p0, a_p0Len_0, item_p1);
	result = (((NI)0) <= T1_);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ensureRemoteUrl__basicZgitops_u353)(NimStringV2 path_p0, NimStringV2 remote_p1, NimStringV2 url_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3) {
	NIM_BOOL result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ remotes_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 colontmpD_;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T27_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T28_;
	NI status_2;
	tyArray__YgExxhfgKcesA5EOUj1MOA T33_;
	NimStringV2 T34_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	remotes_1.len = 0; remotes_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	{
		NIM_BOOL T4_;
		NIM_BOOL T5_;
		NIM_BOOL T8_;
		T4_ = (NIM_BOOL)0;
		T5_ = (NIM_BOOL)0;
		T5_ = (remote_p1.len == ((NI)0));
		if (T5_) goto LA6_;
		T5_ = (url_p2.len == ((NI)0));
LA6_: ;
		T4_ = T5_;
		if (T4_) goto LA7_;
		T8_ = (NIM_BOOL)0;
		T8_ = isGitDir__basicZcontext_u378(path_p0);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T4_ = !(T8_);
LA7_: ;
		if (!T4_) goto LA9_;
		result = NIM_FALSE;
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(remotes_1);
		goto BeforeRet_;
	}
LA9_: ;
	remotes_1 = listRemotes__basicZgitops_u195(path_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T13_;
		tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_2;
		NimStringV2 colontmpD__2;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T17_;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T18_;
		NI status_1;
		tyArray__YgExxhfgKcesA5EOUj1MOA T23_;
		NimStringV2 T24_;
		T13_ = (NIM_BOOL)0;
		T13_ = contains__stdZenumutils_u50(((remotes_1).p) ? (remotes_1.p->data) : NIM_NIL, remotes_1.len, remote_p1);
		if (!!(T13_)) goto LA14_;
		nimZeroMem((void*)(&tmpTuple_2), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
		colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
		T17_[0] = remote_p1;
		T17_[1] = url_p2;
		tmpTuple_2 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)3), path_p0, T17_, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T18_, 0, NIM_TRUE, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA16_;
		status_1 = tmpTuple_2.Field1;
		{
			if (!(status_1 == ((NI)0))) goto LA21_;
			result = NIM_TRUE;
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_2));
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_1));
			eqdestroy___system_u5582(remotes_1);
			goto BeforeRet_;
		}
LA21_: ;
		T24_.len = 0; T24_.p = NIM_NIL;
		T24_ = rawNewString(remote_p1.len + 23);
appendString((&T24_), TM__woSSp9bWtDECsT5QjOFwmRw_127);
appendString((&T24_), remote_p1);
appendString((&T24_), TM__woSSp9bWtDECsT5QjOFwmRw_128);
		colontmpD__2 = T24_;
		T23_[0] = colontmpD__2;
		message__basicZgitops_u366(errorReportLevel_p3, path_p0, T23_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA16_;
		result = NIM_FALSE;
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_2));
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(remotes_1);
		goto BeforeRet_;
		{
			LA16_:;
		}
		{
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_2));
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA14_: ;
	T27_[0] = remote_p1;
	T27_[1] = url_p2;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)4), path_p0, T27_, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T28_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	status_2 = tmpTuple_1.Field1;
	{
		if (!(status_2 == ((NI)0))) goto LA31_;
		result = NIM_TRUE;
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(remotes_1);
		goto BeforeRet_;
	}
LA31_: ;
	T34_.len = 0; T34_.p = NIM_NIL;
	T34_ = rawNewString(remote_p1.len + 31);
appendString((&T34_), TM__woSSp9bWtDECsT5QjOFwmRw_130);
appendString((&T34_), remote_p1);
appendString((&T34_), TM__woSSp9bWtDECsT5QjOFwmRw_131);
	colontmpD_ = T34_;
	T33_[0] = colontmpD_;
	message__basicZgitops_u366(errorReportLevel_p3, path_p0, T33_, 1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	result = NIM_FALSE;
	{
		LA1_:;
	}
	{
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(remotes_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, maybeUrlProxy__basicZgitops_u69)(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* url_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* Result) {
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)Result, sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	eqcopy___pureZuri_u216(Result, url_p0);
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T3_;
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T6_;
		T3_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T3_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		colontmpD_ = dollar___pureZuri_u409((&(*T3_).proxy));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!!((colontmpD_.len == 0))) goto LA4_;
		T6_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T6_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		eqcopy___pureZuri_u216(Result, (&(*T6_).proxy));
		eqcopy___system_u2754((&(*Result).path), (*url_p0).path);
		eqcopy___system_u2754((&(*Result).query), (*url_p0).query);
		eqcopy___system_u2754((&(*Result).anchor), (*url_p0).anchor);
	}
LA4_: ;
	{
		if (!eqStrings((*url_p0).scheme, TM__woSSp9bWtDECsT5QjOFwmRw_133)) goto LA9_;
		{
			tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T13_;
			T13_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
			T13_ = context__basicZcontext_u319();
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (!(((*T13_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)19)))&31U)))!=0)) goto LA14_;
			eqsink___system_u2760((&(*Result).scheme), TM__woSSp9bWtDECsT5QjOFwmRw_135);
		}
		goto LA11_;
LA14_: ;
		{
			eqsink___system_u2760((&(*Result).scheme), TM__woSSp9bWtDECsT5QjOFwmRw_136);
		}
LA11_: ;
	}
LA9_: ;
	{
		NimStringV2 T21_;
		if (!eqStrings((*Result).hostname, TM__woSSp9bWtDECsT5QjOFwmRw_138)) goto LA19_;
		T21_.len = 0; T21_.p = NIM_NIL;
		T21_ = nsuStrip((*Result).path, NIM_FALSE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_139);
		if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T21_); goto BeforeRet_;}
		eqsink___system_u2760((&(*Result).path), T21_);
	}
LA19_: ;
	if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, resolveRemoteName__basicZgitops_u65)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NimStringV2 result;
	NimStringV2 canonicalUrl_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ remotes_1;
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	canonicalUrl_1.len = 0; canonicalUrl_1.p = NIM_NIL;
	remotes_1.len = 0; remotes_1.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	canonicalUrl_1 = getCanonicalUrl__basicZgitops_u349(path_p0, origin_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NimStringV2 colontmpD__2;
		tyArray__YgExxhfgKcesA5EOUj1MOA T7_;
		NimStringV2 T8_;
		if (!(canonicalUrl_1.len == ((NI)0))) goto LA4_;
		colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
		T8_.len = 0; T8_.p = NIM_NIL;
		T8_ = rawNewString(origin_p1.len + 27);
appendString((&T8_), TM__woSSp9bWtDECsT5QjOFwmRw_88);
appendString((&T8_), origin_p1);
appendString((&T8_), TM__woSSp9bWtDECsT5QjOFwmRw_89);
		colontmpD__2 = T8_;
		T7_[0] = colontmpD__2;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T7_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_90;
		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);
}
		eqdestroy___system_u5582(remotes_1);
		if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
		goto BeforeRet_;
		{
			LA6_:;
		}
		{
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA4_: ;
	result = remoteNameFromGitUrl__basicZgitops_u323(canonicalUrl_1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NimStringV2 colontmpD__3;
		tyArray__YgExxhfgKcesA5EOUj1MOA T16_;
		NimStringV2 T17_;
		if (!(result.len == ((NI)0))) goto LA13_;
		colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
		T17_.len = 0; T17_.p = NIM_NIL;
		T17_ = rawNewString(canonicalUrl_1.len + 49);
appendString((&T17_), TM__woSSp9bWtDECsT5QjOFwmRw_113);
appendString((&T17_), canonicalUrl_1);
		colontmpD__3 = T17_;
		T16_[0] = colontmpD__3;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T16_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_114;
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___system_u5582(remotes_1);
		if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
		goto BeforeRet_;
		{
			LA15_:;
		}
		{
			if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA13_: ;
	remotes_1 = listRemotes__basicZgitops_u195(path_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T22_;
		T22_ = (NIM_BOOL)0;
		T22_ = contains__stdZenumutils_u50(((remotes_1).p) ? (remotes_1.p->data) : NIM_NIL, remotes_1.len, result);
		if (!!(T22_)) goto LA23_;
		{
			NIM_BOOL T27_;
			tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
			tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T31_;
			tyArray__TonP9cxJgj8gXu71dWIyNlA T32_;
			NI status_1;
			NIM_BOOL T42_;
			T27_ = (NIM_BOOL)0;
			T27_ = contains__stdZenumutils_u50(((remotes_1).p) ? (remotes_1.p->data) : NIM_NIL, remotes_1.len, origin_p1);
			if (!T27_) goto LA28_;
			nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
			T31_[0] = origin_p1;
			T31_[1] = result;
			tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)5), path_p0, T31_, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T32_, 0, NIM_TRUE, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
			status_1 = tmpTuple_1.Field1;
			{
				NimStringV2 colontmpD__4;
				tyArray__YgExxhfgKcesA5EOUj1MOA T38_;
				NimStringV2 T39_;
				if (!!((status_1 == ((NI)0)))) goto LA35_;
				colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
				T39_.len = 0; T39_.p = NIM_NIL;
				T39_ = rawNewString(origin_p1.len + result.len + 32);
appendString((&T39_), TM__woSSp9bWtDECsT5QjOFwmRw_121);
appendString((&T39_), origin_p1);
appendString((&T39_), TM__woSSp9bWtDECsT5QjOFwmRw_123);
appendString((&T39_), result);
appendString((&T39_), TM__woSSp9bWtDECsT5QjOFwmRw_124);
				colontmpD__4 = T39_;
				T38_[0] = colontmpD__4;
				message__basicZgitops_u366(errorReportLevel_p2, path_p0, T38_, 1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				result = TM__woSSp9bWtDECsT5QjOFwmRw_125;
				if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
				eqdestroy___basicZosutils_u97((&tmpTuple_1));
				if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
				eqdestroy___system_u5582(remotes_1);
				if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
				goto BeforeRet_;
				{
					LA37_:;
				}
				{
					if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
			}
LA35_: ;
			T42_ = (NIM_BOOL)0;
			T42_ = ensureRemoteUrl__basicZgitops_u353(path_p0, origin_p1, canonicalUrl_1, errorReportLevel_p2);
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
			(void)(T42_);
			{
				LA30_:;
			}
			{
				eqdestroy___basicZosutils_u97((&tmpTuple_1));
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		}
		goto LA25_;
LA28_: ;
		{
			NIM_BOOL T46_;
			T46_ = (NIM_BOOL)0;
			T46_ = ensureRemoteUrl__basicZgitops_u353(path_p0, result, canonicalUrl_1, errorReportLevel_p2);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			(void)(T46_);
		}
LA25_: ;
	}
LA23_: ;
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T49_;
		tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA colontmpD__5;
		tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA colontmpD__6;
		NimStringV2 colontmpD__7;
		NimStringV2 T54_;
		NIM_BOOL T55_;
		T49_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T49_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		colontmpD_ = dollar___pureZuri_u409((&(*T49_).proxy));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!!((colontmpD_.len == 0))) goto LA50_;
		nimZeroMem((void*)(&colontmpD__5), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
		nimZeroMem((void*)(&colontmpD__6), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
		colontmpD__7.len = 0; colontmpD__7.p = NIM_NIL;
		parseUri__pureZuri_u295(canonicalUrl_1, (&colontmpD__5));
		if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		maybeUrlProxy__basicZgitops_u69((&colontmpD__5), (&colontmpD__6));
		if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		T54_.len = 0; T54_.p = NIM_NIL;
		T54_ = dollar___pureZuri_u409((&colontmpD__6));
		if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T54_); goto LA53_;}
		colontmpD__7 = T54_;
		T55_ = (NIM_BOOL)0;
		T55_ = ensureRemoteUrl__basicZgitops_u353(path_p0, result, colontmpD__7, errorReportLevel_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		(void)(T55_);
		{
			LA53_:;
		}
		{
			if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
			eqdestroy___pureZuri_u213((&colontmpD__6));
			eqdestroy___pureZuri_u213((&colontmpD__5));
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA52_;
		if (NIM_UNLIKELY(*nimErr_)) {
			LA52_:;
			if (isObjDisplayCheck(nimBorrowCurrentException()->Sup.m_type, 2, 599397120)) {
				*nimErr_ = NIM_FALSE;
				popCurrentException();
				LA59_:;
			}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA50_: ;
	{
		LA1_:;
	}
	{
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___system_u5582(remotes_1);
		if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, pushTag__basicZgitops_u1275)(NimStringV2 path_p0, NimStringV2 origin_p1, NimStringV2 tag_p2) {
	NimStringV2 remote_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 colontmpD_;
	tyArray__YgExxhfgKcesA5EOUj1MOA T11_;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T12_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	remote_1.len = 0; remote_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NimStringV2 colontmpD__2;
		tyArray__YgExxhfgKcesA5EOUj1MOA T7_;
		NimStringV2 T8_;
		if (!(remote_1.len == ((NI)0))) goto LA4_;
		colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
		T8_.len = 0; T8_.p = NIM_NIL;
		T8_ = rawNewString(origin_p1.len + 42);
appendString((&T8_), TM__woSSp9bWtDECsT5QjOFwmRw_141);
appendString((&T8_), origin_p1);
appendString((&T8_), TM__woSSp9bWtDECsT5QjOFwmRw_142);
		colontmpD__2 = T8_;
		T7_[0] = colontmpD__2;
		error__basicZgitops_u1259(path_p0, T7_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
		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 (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		goto BeforeRet_;
		{
			LA6_:;
		}
		{
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA4_: ;
	T11_[0] = tag_p2;
	T12_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_143;
	T12_[1] = remote_1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)17), path_p0, T11_, 1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T12_, 2, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmpD__3;
		tyArray__YgExxhfgKcesA5EOUj1MOA T18_;
		NimStringV2 T19_;
		if (!!((status_1 == ((NI)0)))) goto LA15_;
		colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
		T19_.len = 0; T19_.p = NIM_NIL;
		T19_ = rawNewString(remote_1.len + tag_p2.len + 22);
appendString((&T19_), TM__woSSp9bWtDECsT5QjOFwmRw_145);
appendString((&T19_), remote_1);
appendString((&T19_), TM__woSSp9bWtDECsT5QjOFwmRw_146);
appendString((&T19_), tag_p2);
appendString((&T19_), TM__woSSp9bWtDECsT5QjOFwmRw_147);
		colontmpD__3 = T19_;
		T18_[0] = colontmpD__3;
		error__basicZgitops_u1259(path_p0, T18_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA17_;
		{
			LA17_:;
		}
		{
			if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA13_;
LA15_: ;
	{
		colontmpD_ = nsuStrip(outp_1, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!eqStrings(colontmpD_, TM__woSSp9bWtDECsT5QjOFwmRw_149)) goto LA23_;
		info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_150, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA13_;
LA23_: ;
	{
		NimStringV2 colontmpD__4;
		tyArray__YgExxhfgKcesA5EOUj1MOA T27_;
		NimStringV2 T28_;
		colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
		T28_.len = 0; T28_.p = NIM_NIL;
		T28_ = rawNewString(tag_p2.len + 25);
appendString((&T28_), TM__woSSp9bWtDECsT5QjOFwmRw_153);
appendString((&T28_), tag_p2);
		colontmpD__4 = T28_;
		T27_[0] = colontmpD__4;
		info__basicZconfigutils_u114(path_p0, T27_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA26_;
		{
			LA26_:;
		}
		{
			if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA13_: ;
	{
		LA1_:;
	}
	{
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, gitDescribeRefTag__basicZgitops_u674)(NimStringV2 path_p0, NimStringV2 commit_p1) {
	NimStringV2 result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 lt_1;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
	NimStringV2 T4_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	lt_1.len = 0; lt_1.p = NIM_NIL;
	T2_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_157;
	T2_[1] = commit_p1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)13), path_p0, T2_, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	lt_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	T4_.len = 0; T4_.p = NIM_NIL;
	{
		if (!(status_1 == ((NI)0))) goto LA7_;
		result = nsuStrip(lt_1, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA5_;
LA7_: ;
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_158;
	}
LA5_: ;
	{
		LA1_:;
	}
	{
		if (lt_1.p && !(lt_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(lt_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, nimPrepareStrMutationV2)(NimStringV2* s_p0) {
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = !(((*s_p0).p == ((NimStrPayload*) NIM_NIL)));
		if (!(T3_)) goto LA4_;
		T3_ = ((NI)((*(*s_p0).p).cap & ((NI)IL64(4611686018427387904))) == ((NI)IL64(4611686018427387904)));
LA4_: ;
		if (!T3_) goto LA5_;
		nimPrepareStrMutationImpl__system_u2493(s_p0);
	}
LA5_: ;
}
static N_INLINE(NimStringV2, X5BX5D___pureZstrutils_u1291)(NimStringV2 s_p0, tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ x_p1) {
	NimStringV2 result;
	NI a_1;
	NI L_1;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_172;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_173;
{	result.len = 0; result.p = NIM_NIL;
	a_1 = x_p1.a;
	if (nimSubInt(x_p1.b, a_1, &TM__woSSp9bWtDECsT5QjOFwmRw_172)) { raiseOverflow(); goto BeforeRet_;
	};
	if (nimAddInt((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_172), ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_173)) { raiseOverflow(); goto BeforeRet_;
	};
	L_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_173);
	if ((L_1) < ((NI)0) || (L_1) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(L_1, ((NI)0), ((NI)IL64(9223372036854775807))); goto BeforeRet_;
	}
	result = mnewString((L_1));
	{
		NI i_1;
		NI i_2;
		i_1 = (NI)0;
		i_2 = ((NI)0);
		{
			while (1) {
				NI TM__woSSp9bWtDECsT5QjOFwmRw_174;
				NI TM__woSSp9bWtDECsT5QjOFwmRw_175;
				if (!(i_2 < L_1)) goto LA3;
				i_1 = i_2;
				if (i_1 < 0 || i_1 >= result.len){ raiseIndexError2(i_1,result.len-1); goto BeforeRet_;
				}
				nimPrepareStrMutationV2((&result));
				if (nimAddInt(i_1, a_1, &TM__woSSp9bWtDECsT5QjOFwmRw_174)) { raiseOverflow(); goto BeforeRet_;
				};
				if ((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_174) < 0 || (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_174) >= s_p0.len){ raiseIndexError2((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_174),s_p0.len-1); goto BeforeRet_;
				}
				result.p->data[i_1] = s_p0.p->data[(NI)(TM__woSSp9bWtDECsT5QjOFwmRw_174)];
				if (nimAddInt(i_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_175)) { raiseOverflow(); goto BeforeRet_;
				};
				i_2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_175);
			} LA3: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
static N_INLINE(tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ, dotdot___stdZstrbasics_u48)(NI a_p0, NI b_p1) {
	tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ result;
	result.a = a_p0;
	result.b = b_p1;
	return result;
}
static N_INLINE(NimStringV2, X5BX5D___pureZstrutils_u1319)(NimStringV2 s_p0, tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg x_p1) {
	NimStringV2 result;
	NI a_1;
	NI L_1;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_179;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_180;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_181;
{	result.len = 0; result.p = NIM_NIL;
	a_1 = x_p1.a;
	if (nimSubInt(s_p0.len, x_p1.b, &TM__woSSp9bWtDECsT5QjOFwmRw_179)) { raiseOverflow(); goto BeforeRet_;
	};
	if (nimSubInt((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_179), a_1, &TM__woSSp9bWtDECsT5QjOFwmRw_180)) { raiseOverflow(); goto BeforeRet_;
	};
	if (nimAddInt((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_180), ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_181)) { raiseOverflow(); goto BeforeRet_;
	};
	L_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_181);
	if ((L_1) < ((NI)0) || (L_1) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(L_1, ((NI)0), ((NI)IL64(9223372036854775807))); goto BeforeRet_;
	}
	result = mnewString((L_1));
	{
		NI i_1;
		NI i_2;
		i_1 = (NI)0;
		i_2 = ((NI)0);
		{
			while (1) {
				NI TM__woSSp9bWtDECsT5QjOFwmRw_182;
				NI TM__woSSp9bWtDECsT5QjOFwmRw_183;
				if (!(i_2 < L_1)) goto LA3;
				i_1 = i_2;
				if (i_1 < 0 || i_1 >= result.len){ raiseIndexError2(i_1,result.len-1); goto BeforeRet_;
				}
				nimPrepareStrMutationV2((&result));
				if (nimAddInt(i_1, a_1, &TM__woSSp9bWtDECsT5QjOFwmRw_182)) { raiseOverflow(); goto BeforeRet_;
				};
				if ((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_182) < 0 || (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_182) >= s_p0.len){ raiseIndexError2((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_182),s_p0.len-1); goto BeforeRet_;
				}
				result.p->data[i_1] = s_p0.p->data[(NI)(TM__woSSp9bWtDECsT5QjOFwmRw_182)];
				if (nimAddInt(i_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_183)) { raiseOverflow(); goto BeforeRet_;
				};
				i_2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_183);
			} LA3: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
static N_INLINE(tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg, dotdot___stdZenumutils_u105)(NI a_p0, NI b_p1) {
	tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg result;
	result.a = a_p0;
	result.b = b_p1;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, incrementTag__basicZgitops_u1299)(NimStringV2 displayName_p0, NimStringV2 lastTag_p1, NI field_p2) {
	NimStringV2 result;
	NI colontmpD_;
	NI colontmpD__2;
	NimStringV2 colontmpD__3;
	NimStringV2 colontmpD__4;
	NimStringV2 colontmpD__5;
	NimStringV2 colontmpD__6;
	NI startPos_1;
	NI endPos_1;
	NI patchNumber_1;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_176;
	tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ T27_;
	NimStringV2 T28_;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_177;
	tyObject_HSlice__atPNPXY5GObvliR9b4ZIorQ T29_;
	NI TM__woSSp9bWtDECsT5QjOFwmRw_178;
	tyObject_HSlice__LlH5wTnoA9aQeGwJu9b9bzAYg T30_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_ = (NI)0;
	colontmpD__2 = (NI)0;
	colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
	colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
	colontmpD__5.len = 0; colontmpD__5.p = NIM_NIL;
	colontmpD__6.len = 0; colontmpD__6.p = NIM_NIL;
	{
		if (((NI)0) < 0 || ((NI)0) >= lastTag_p1.len){ raiseIndexError2(((NI)0),lastTag_p1.len-1); goto LA1_;
		}
		if (!(((NU8)(lastTag_p1.p->data[((NI)0)])) >= ((NU8)(48)) && ((NU8)(lastTag_p1.p->data[((NI)0)])) <= ((NU8)(57)))) goto LA4_;
		colontmpD_ = ((NI)0);
		startPos_1 = colontmpD_;
	}
	goto LA2_;
LA4_: ;
	{
		colontmpD__2 = ((NI)1);
		startPos_1 = colontmpD__2;
	}
LA2_: ;
	if ((startPos_1) < ((NI)0) || (startPos_1) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(startPos_1, ((NI)0), ((NI)IL64(9223372036854775807))); goto LA1_;
	}
	endPos_1 = nsuFindChar(lastTag_p1, 46, (startPos_1), ((NI)-1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(((NI)1) <= field_p2)) goto LA9_;
		{
			NI i_1;
			NI res_1;
			i_1 = (NI)0;
			res_1 = ((NI)1);
			{
				while (1) {
					NI TM__woSSp9bWtDECsT5QjOFwmRw_170;
					NI TM__woSSp9bWtDECsT5QjOFwmRw_171;
					if (!(res_1 <= field_p2)) goto LA13;
					i_1 = ((NI) (res_1));
					{
						NimStringV2 colontmpD__7;
						tyArray__YgExxhfgKcesA5EOUj1MOA T19_;
						NimStringV2 T20_;
						if (!(endPos_1 == ((NI)-1))) goto LA16_;
						colontmpD__7.len = 0; colontmpD__7.p = NIM_NIL;
						T20_.len = 0; T20_.p = NIM_NIL;
						T20_ = rawNewString(lastTag_p1.len + 36);
appendString((&T20_), TM__woSSp9bWtDECsT5QjOFwmRw_166);
appendString((&T20_), lastTag_p1);
appendString((&T20_), TM__woSSp9bWtDECsT5QjOFwmRw_168);
						colontmpD__7 = T20_;
						T19_[0] = colontmpD__7;
						error__basicZconfigutils_u107(displayName_p0, T19_, 1);
						if (NIM_UNLIKELY(*nimErr_)) goto LA18_;
						result = TM__woSSp9bWtDECsT5QjOFwmRw_169;
						if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
						if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
						if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
						if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
						if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
						goto BeforeRet_;
						{
							LA18_:;
						}
						{
							if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
						}
						if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
					}
LA16_: ;
					if (nimAddInt(endPos_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_170)) { raiseOverflow(); goto LA1_;
					};
					startPos_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_170);
					if ((startPos_1) < ((NI)0) || (startPos_1) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(startPos_1, ((NI)0), ((NI)IL64(9223372036854775807))); goto LA1_;
					}
					endPos_1 = nsuFindChar(lastTag_p1, 46, (startPos_1), ((NI)-1));
					if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
					if (nimAddInt(res_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_171)) { raiseOverflow(); goto LA1_;
					};
					res_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_171);
				} LA13: ;
			}
		}
	}
LA9_: ;
	{
		if (!(endPos_1 == ((NI)-1))) goto LA25_;
		endPos_1 = lastTag_p1.len;
	}
LA25_: ;
	if (nimSubInt(endPos_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_176)) { raiseOverflow(); goto LA1_;
	};
	T27_ = dotdot___stdZstrbasics_u48(startPos_1, (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_176));
	colontmpD__3 = X5BX5D___pureZstrutils_u1291(lastTag_p1, T27_);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	patchNumber_1 = nsuParseInt(colontmpD__3);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T28_.len = 0; T28_.p = NIM_NIL;
	if (nimSubInt(startPos_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_177)) { raiseOverflow(); goto LA1_;
	};
	T29_ = dotdot___stdZstrbasics_u48(((NI)0), (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_177));
	colontmpD__4 = X5BX5D___pureZstrutils_u1291(lastTag_p1, T29_);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	if (nimAddInt(patchNumber_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_178)) { raiseOverflow(); goto LA1_;
	};
	colontmpD__5 = dollar___systemZdollars_u14((NI)(TM__woSSp9bWtDECsT5QjOFwmRw_178));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T30_ = dotdot___stdZenumutils_u105(endPos_1, ((NI)1));
	colontmpD__6 = X5BX5D___pureZstrutils_u1319(lastTag_p1, T30_);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T28_ = rawNewString(colontmpD__4.len + colontmpD__5.len + colontmpD__6.len + 0);
appendString((&T28_), colontmpD__4);
appendString((&T28_), colontmpD__5);
appendString((&T28_), colontmpD__6);
	result = T28_;
	{
		LA1_:;
	}
	{
		if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
		if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
		if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, incrementLastTag__basicZgitops_u1386)(NimStringV2 path_p0, NI field_p1) {
	NimStringV2 result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 ltr_1;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
	NimStringV2 T4_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	ltr_1.len = 0; ltr_1.p = NIM_NIL;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)12), path_p0, T2_, 0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	ltr_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	T4_.len = 0; T4_.p = NIM_NIL;
	{
		NIM_BOOL T7_;
		T7_ = (NIM_BOOL)0;
		T7_ = !((status_1 == ((NI)0)));
		if (T7_) goto LA8_;
		T7_ = (ltr_1.len == 0);
LA8_: ;
		if (!T7_) goto LA9_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_155;
	}
	goto LA5_;
LA9_: ;
	{
		NimStringV2 lastTaggedRef_1;
		NimStringV2 lastTag_1;
		NimStringV2 currentCommit_1;
		tyTuple__XOVT24GHXwqiEj5GCsEGCA colontmpD_;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T13_;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T14_;
		NimStringV2 T15_;
		lastTaggedRef_1.len = 0; lastTaggedRef_1.p = NIM_NIL;
		lastTag_1.len = 0; lastTag_1.p = NIM_NIL;
		currentCommit_1.len = 0; currentCommit_1.p = NIM_NIL;
		nimZeroMem((void*)(&colontmpD_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
		lastTaggedRef_1 = nsuStrip(ltr_1, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
		if (NIM_UNLIKELY(*nimErr_)) goto LA12_;
		lastTag_1 = gitDescribeRefTag__basicZgitops_u674(path_p0, lastTaggedRef_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA12_;
		colontmpD_ = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)19), path_p0, T13_, 0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T14_, 0, NIM_TRUE, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA12_;
		currentCommit_1 = nsuStrip(colontmpD_.Field0, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
		if (NIM_UNLIKELY(*nimErr_)) goto LA12_;
		T15_.len = 0; T15_.p = NIM_NIL;
		{
			if (!(lastTaggedRef_1.len == 0)) goto LA18_;
			result = TM__woSSp9bWtDECsT5QjOFwmRw_159;
		}
		goto LA16_;
LA18_: ;
		{
			NIM_BOOL T21_;
			NimStringV2 colontmpD__2;
			tyArray__YgExxhfgKcesA5EOUj1MOA T26_;
			NimStringV2 T27_;
			T21_ = (NIM_BOOL)0;
			T21_ = (lastTaggedRef_1.len == 0);
			if (T21_) goto LA22_;
			T21_ = eqStrings(lastTaggedRef_1, currentCommit_1);
LA22_: ;
			if (!T21_) goto LA23_;
			colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
			T27_.len = 0; T27_.p = NIM_NIL;
			T27_ = rawNewString(currentCommit_1.len + lastTag_1.len + 42);
appendString((&T27_), TM__woSSp9bWtDECsT5QjOFwmRw_161);
appendString((&T27_), currentCommit_1);
appendString((&T27_), TM__woSSp9bWtDECsT5QjOFwmRw_163);
appendString((&T27_), lastTag_1);
appendString((&T27_), TM__woSSp9bWtDECsT5QjOFwmRw_164);
			colontmpD__2 = T27_;
			T26_[0] = colontmpD__2;
			info__basicZconfigutils_u114(path_p0, T26_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA25_;
			result = lastTag_1;
			eqwasMoved___system_u2751((&lastTag_1));
			{
				LA25_:;
			}
			{
				if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA12_;
		}
		goto LA16_;
LA23_: ;
		{
			result = incrementTag__basicZgitops_u1299(path_p0, lastTag_1, field_p1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA12_;
		}
LA16_: ;
		{
			LA12_:;
		}
		{
			eqdestroy___basicZosutils_u97((&colontmpD_));
			if (currentCommit_1.p && !(currentCommit_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(currentCommit_1.p);
}
			if (lastTag_1.p && !(lastTag_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(lastTag_1.p);
}
			if (lastTaggedRef_1.p && !(lastTaggedRef_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(lastTaggedRef_1.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA5_: ;
	{
		LA1_:;
	}
	{
		if (ltr_1.p && !(ltr_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(ltr_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, gitPull__basicZgitops_u1181)(NimStringV2 path_p0) {
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)18), path_p0, T2_, 0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ colontmpD_;
		NimStringV2 colontmpD__2;
		NimStringV2 colontmpD__3;
		tyArray__YgExxhfgKcesA5EOUj1MOA T9_;
		NimStringV2 T10_;
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ T11_;
		if (!!((status_1 == ((NI)0)))) goto LA6_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
		colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
		T10_.len = 0; T10_.p = NIM_NIL;
		T11_.len = 0; T11_.p = NIM_NIL;
		{
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ colontmp__1;
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ resultX60gensym78__1;
			NI iX60gensym78__1;
			NI T13_;
			colontmp__1.len = 0; colontmp__1.p = NIM_NIL;
			resultX60gensym78__1.len = 0; resultX60gensym78__1.p = NIM_NIL;
			colontmp__1 = nsuSplitLines(outp_1, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
			iX60gensym78__1 = ((NI)0);
			T13_ = colontmp__1.len;
			if ((T13_) < ((NI)0) || (T13_) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(T13_, ((NI)0), ((NI)IL64(9223372036854775807))); goto LA8_;
			}
			resultX60gensym78__1 = newSeq__stdZsyncio_u578((T13_));
			{
				NimStringV2* it_1;
				NI i_1;
				NI L_1;
				NI T15_;
				it_1 = (NimStringV2*)0;
				i_1 = ((NI)0);
				T15_ = colontmp__1.len;
				L_1 = T15_;
				{
					while (1) {
						NimStringV2 T18_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_188;
						if (!(i_1 < L_1)) goto LA17;
						if (i_1 < 0 || i_1 >= colontmp__1.len){ raiseIndexError2(i_1,colontmp__1.len-1); goto LA8_;
						}
						it_1 = (&colontmp__1.p->data[i_1]);
						if (iX60gensym78__1 < 0 || iX60gensym78__1 >= resultX60gensym78__1.len){ raiseIndexError2(iX60gensym78__1,resultX60gensym78__1.len-1); goto LA8_;
						}
						T18_.len = 0; T18_.p = NIM_NIL;
						T18_ = rawNewString((*it_1).len + 5);
appendString((&T18_), TM__woSSp9bWtDECsT5QjOFwmRw_187);
appendString((&T18_), (*it_1));
						eqsink___system_u2760((&resultX60gensym78__1.p->data[iX60gensym78__1]), T18_);
						if (nimAddInt(iX60gensym78__1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_188)) { raiseOverflow(); goto LA8_;
						};
						iX60gensym78__1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_188);
						i_1 += ((NI)1);
						{
							NI T21_;
							T21_ = colontmp__1.len;
							if (!!((T21_ == L_1))) goto LA22_;
							failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_189);
							if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
						}
LA22_: ;
					} LA17: ;
				}
			}
			colontmpD_ = resultX60gensym78__1;
			eqdestroy___system_u5582(colontmp__1);
			T11_ = colontmpD_;
		}
		colontmpD__2 = nsuJoinSep(((T11_).p) ? (T11_.p->data) : NIM_NIL, T11_.len, TM__woSSp9bWtDECsT5QjOFwmRw_190);
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		T10_ = rawNewString(colontmpD__2.len + 17);
appendString((&T10_), TM__woSSp9bWtDECsT5QjOFwmRw_185);
appendString((&T10_), colontmpD__2);
		colontmpD__3 = T10_;
		T9_[0] = colontmpD__3;
		debug__basicZgitops_u1252(path_p0, T9_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		error__basicZgitops_u1259(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_191, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		{
			LA8_:;
		}
		{
			if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			eqdestroy___system_u5582(colontmpD_);
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA6_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ensureCanonicalOrigin__basicZgitops_u381)(NimStringV2 path_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* url_p1, NimStringV2 origin_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3) {
	NIM_BOOL result;
	NimStringV2 colontmpD_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD_ = dollar___pureZuri_u409(url_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	result = ensureRemoteUrl__basicZgitops_u353(path_p0, origin_p2, colontmpD_, errorReportLevel_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		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(void, eqsink___basicZgitops_u646)(tyTuple__TLTPscngTyX39coeZ9b9cEB7w* dest_p0, tyTuple__TLTPscngTyX39coeZ9b9cEB7w src_p1) {
	(*dest_p0).Field0 = src_p1.Field0;
	if ((*dest_p0).Field1.p != src_p1.Field1.p) {	if ((*dest_p0).Field1.p && !((*dest_p0).Field1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).Field1.p);
}
	}
(*dest_p0).Field1.len = src_p1.Field1.len; (*dest_p0).Field1.p = src_p1.Field1.p;
}
N_LIB_PRIVATE N_NIMCALL(tyTuple__TLTPscngTyX39coeZ9b9cEB7w, clone__basicZgitops_u503)(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* url_p0, NimStringV2 dest_p1, NI retries_p2) {
	tyTuple__TLTPscngTyX39coeZ9b9cEB7w result;
	NimStringV2 extraArgs_1;
	NimStringV2 colontmpD_;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA canonicalUrl_1;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA url_2;
	NimStringV2 remote_1;
	NimStringV2 colontmpD__2;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ args_1;
	NimStringV2 colontmpD__3;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 T2_;
	NimStringV2 T24_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T25_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyTuple__TLTPscngTyX39coeZ9b9cEB7w));
	extraArgs_1.len = 0; extraArgs_1.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	nimZeroMem((void*)(&canonicalUrl_1), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	nimZeroMem((void*)(&url_2), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	remote_1.len = 0; remote_1.p = NIM_NIL;
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	args_1.len = 0; args_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	T2_.len = 0; T2_.p = NIM_NIL;
	{
		NIM_BOOL T5_;
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T6_;
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T8_;
		T5_ = (NIM_BOOL)0;
		T6_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T6_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		colontmpD_ = dollar___pureZuri_u409((&(*T6_).proxy));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T5_ = !((colontmpD_.len == 0));
		if (!(T5_)) goto LA7_;
		T8_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T8_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T5_ = (((*T8_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)18)))&31U)))!=0);
LA7_: ;
		if (!T5_) goto LA9_;
		extraArgs_1 = TM__woSSp9bWtDECsT5QjOFwmRw_193;
	}
	goto LA3_;
LA9_: ;
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T12_;
		T12_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T12_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(((*T12_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)13)))&31U)))!=0)) goto LA13_;
		extraArgs_1 = TM__woSSp9bWtDECsT5QjOFwmRw_195;
	}
	goto LA3_;
LA13_: ;
	{
		extraArgs_1 = TM__woSSp9bWtDECsT5QjOFwmRw_196;
	}
LA3_: ;
	canonicalUrl_1 = (*url_p0);
	maybeUrlProxy__basicZgitops_u69(url_p0, (&url_2));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD__2 = dollar___pureZuri_u409((&canonicalUrl_1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	remote_1 = remoteNameFromGitUrl__basicZgitops_u323(colontmpD__2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	args_1.len = 0; args_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	{
		NimStringV2 colontmpD__4;
		if (!(((NI)0) < extraArgs_1.len)) goto LA18_;
		colontmpD__4 = eqdup___system_u2757(extraArgs_1);
		add__stdZenumutils_u70((&args_1), colontmpD__4);
	}
LA18_: ;
	{
		NimStringV2 blitTmp_1;
		if (!(((NI)0) < remote_1.len)) goto LA22_;
		add__stdZenumutils_u70((&args_1), TM__woSSp9bWtDECsT5QjOFwmRw_198);
		blitTmp_1 = remote_1;
		eqwasMoved___system_u2751((&remote_1));
		add__stdZenumutils_u70((&args_1), blitTmp_1);
	}
LA22_: ;
	add__stdZenumutils_u70((&args_1), TM__woSSp9bWtDECsT5QjOFwmRw_200);
	T24_.len = 0; T24_.p = NIM_NIL;
	T24_ = dollar___pureZuri_u409((&url_2));
	if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T24_); goto LA1_;}
	add__stdZenumutils_u70((&args_1), T24_);
	colontmpD__3 = eqdup___system_u2757(dest_p1);
	add__stdZenumutils_u70((&args_1), colontmpD__3);
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0), dest_p1, ((args_1).p) ? (args_1.p->data) : NIM_NIL, args_1.len, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T25_, 0, NIM_FALSE, NIM_TRUE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	status_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmp_;
		NIM_BOOL T31_;
		tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA colontmp__2;
		NimStringV2 blitTmp_2;
		if (!(status_1 == ((NI)0))) goto LA28_;
		colontmp_.len = 0; colontmp_.p = NIM_NIL;
		T31_ = (NIM_BOOL)0;
		T31_ = ensureCanonicalOrigin__basicZgitops_u381(dest_p1, (&canonicalUrl_1), TM__woSSp9bWtDECsT5QjOFwmRw_202, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
		if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
		(void)(T31_);
		colontmp__2 = ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)0);
		colontmp_ = TM__woSSp9bWtDECsT5QjOFwmRw_203;
		result.Field0 = colontmp__2;
		blitTmp_2 = colontmp_;
		eqwasMoved___system_u2751((&colontmp_));
		result.Field1 = blitTmp_2;
		if (colontmp_.p && !(colontmp_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		eqdestroy___pureZuri_u213((&url_2));
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		goto BeforeRet_;
		{
			LA30_:;
		}
		{
			if (colontmp_.p && !(colontmp_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp_.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA28_: ;
	{
		NI i_1;
		NI res_1;
		i_1 = (NI)0;
		res_1 = ((NI)1);
		{
			while (1) {
				tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_2;
				NimStringV2 outp_1;
				tyArray__TonP9cxJgj8gXu71dWIyNlA T38_;
				NI status_2;
				NI TM__woSSp9bWtDECsT5QjOFwmRw_210;
				if (!(res_1 <= retries_p2)) goto LA36;
				nimZeroMem((void*)(&tmpTuple_2), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
				outp_1.len = 0; outp_1.p = NIM_NIL;
				i_1 = ((NI) (res_1));
				if ((NU)(((i_1 <= ((NI)5)) ? i_1 : ((NI)5))) > (NU)(5)){ raiseIndexError2(((i_1 <= ((NI)5)) ? i_1 : ((NI)5)), 5); goto LA37_;
				}
				nossleep(Pauses__basicZgitops_u551[(((i_1 <= ((NI)5)) ? i_1 : ((NI)5)))- 0]);
				if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				tmpTuple_2 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0), dest_p1, ((args_1).p) ? (args_1.p->data) : NIM_NIL, args_1.len, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T38_, 0, NIM_FALSE, NIM_FALSE);
				if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				outp_1 = tmpTuple_2.Field0;
				eqwasMoved___system_u2751((&tmpTuple_2.Field0));
				status_2 = tmpTuple_2.Field1;
				{
					NimStringV2 colontmp__3;
					NIM_BOOL T44_;
					tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA colontmp__4;
					tyTuple__TLTPscngTyX39coeZ9b9cEB7w T45_;
					NimStringV2 blitTmp_3;
					if (!(status_2 == ((NI)0))) goto LA41_;
					colontmp__3.len = 0; colontmp__3.p = NIM_NIL;
					T44_ = (NIM_BOOL)0;
					T44_ = ensureCanonicalOrigin__basicZgitops_u381(dest_p1, (&canonicalUrl_1), TM__woSSp9bWtDECsT5QjOFwmRw_204, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
					if (NIM_UNLIKELY(*nimErr_)) goto LA43_;
					(void)(T44_);
					colontmp__4 = ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)0);
					colontmp__3 = TM__woSSp9bWtDECsT5QjOFwmRw_205;
					T45_.Field0 = colontmp__4;
					blitTmp_3 = colontmp__3;
					eqwasMoved___system_u2751((&colontmp__3));
					T45_.Field1 = blitTmp_3;
					eqsink___basicZgitops_u646((&result), T45_);
					if (colontmp__3.p && !(colontmp__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp__3.p);
}
					if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
					eqdestroy___basicZosutils_u97((&tmpTuple_2));
					eqdestroy___basicZosutils_u97((&tmpTuple_1));
					eqdestroy___system_u5582(args_1);
					if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
					if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
					eqdestroy___pureZuri_u213((&url_2));
					if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
					goto BeforeRet_;
					{
						LA43_:;
					}
					{
						if (colontmp__3.p && !(colontmp__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp__3.p);
}
					}
					if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				}
				goto LA39_;
LA41_: ;
				{
					NIM_BOOL T49_;
					NimStringV2 colontmp__5;
					tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA colontmp__6;
					tyTuple__TLTPscngTyX39coeZ9b9cEB7w T54_;
					NimStringV2 blitTmp_4;
					T49_ = (NIM_BOOL)0;
					T49_ = contains__pureZstrutils_u1900(outp_1, TM__woSSp9bWtDECsT5QjOFwmRw_207);
					if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
					if (T49_) goto LA50_;
					T49_ = contains__pureZstrutils_u1900(outp_1, TM__woSSp9bWtDECsT5QjOFwmRw_208);
					if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
LA50_: ;
					if (!T49_) goto LA51_;
					colontmp__5.len = 0; colontmp__5.p = NIM_NIL;
					colontmp__6 = ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)1);
					colontmp__5 = TM__woSSp9bWtDECsT5QjOFwmRw_209;
					T54_.Field0 = colontmp__6;
					blitTmp_4 = colontmp__5;
					eqwasMoved___system_u2751((&colontmp__5));
					T54_.Field1 = blitTmp_4;
					eqsink___basicZgitops_u646((&result), T54_);
					if (colontmp__5.p && !(colontmp__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp__5.p);
}
					if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
					eqdestroy___basicZosutils_u97((&tmpTuple_2));
					eqdestroy___basicZosutils_u97((&tmpTuple_1));
					eqdestroy___system_u5582(args_1);
					if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
					if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
					eqdestroy___pureZuri_u213((&url_2));
					if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
					goto BeforeRet_;
					{
						LA53_:;
					}
					{
						if (colontmp__5.p && !(colontmp__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp__5.p);
}
					}
					if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				}
				goto LA39_;
LA51_: ;
				{
					eqsink___system_u2760((&result.Field1), outp_1);
					eqwasMoved___system_u2751((&outp_1));
				}
LA39_: ;
				if (nimAddInt(res_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_210)) { raiseOverflow(); goto LA37_;
				};
				res_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_210);
				{
					LA37_:;
				}
				{
					if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
					eqdestroy___basicZosutils_u97((&tmpTuple_2));
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			} LA36: ;
		}
	}
	result.Field0 = ((tyEnum_CloneStatus__U8zdCQHenVifOnL77kAZAA)1);
	{
		LA1_:;
	}
	{
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		eqdestroy___pureZuri_u213((&url_2));
		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(void, eqdestroy___basicZgitops_u637)(tyTuple__TLTPscngTyX39coeZ9b9cEB7w* dest_p0) {
	if ((*dest_p0).Field1.p && !((*dest_p0).Field1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).Field1.p);
}
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, ensureRemoteForUrl__basicZgitops_u387)(NimStringV2 path_p0, tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA* url_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NimStringV2 result;
	NimStringV2 colontmpD_;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA fetchUrl_1;
	NimStringV2 colontmpD__2;
	NimStringV2 colontmpD__3;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA T6_;
	NIM_BOOL T14_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	nimZeroMem((void*)(&fetchUrl_1), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
	colontmpD_ = dollar___pureZuri_u409(url_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	result = remoteNameFromGitUrl__basicZgitops_u323(colontmpD_);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(result.len == ((NI)0))) goto LA4_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_211;
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		eqdestroy___pureZuri_u213((&fetchUrl_1));
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		goto BeforeRet_;
	}
LA4_: ;
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T9_;
		tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA T12_;
		T9_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T9_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		colontmpD__2 = dollar___pureZuri_u409((&(*T9_).proxy));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!!((colontmpD__2.len == 0))) goto LA10_;
		nimZeroMem((void*)(&T12_), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
		maybeUrlProxy__basicZgitops_u69(url_p1, (&T12_));
		fetchUrl_1 = T12_;
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA7_;
LA10_: ;
	{
		eqcopy___pureZuri_u216((&fetchUrl_1), url_p1);
	}
LA7_: ;
	colontmpD__3 = dollar___pureZuri_u409((&fetchUrl_1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T14_ = (NIM_BOOL)0;
	T14_ = ensureRemoteUrl__basicZgitops_u353(path_p0, result, colontmpD__3, errorReportLevel_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	(void)(T14_);
	{
		LA1_:;
	}
	{
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		eqdestroy___pureZuri_u213((&fetchUrl_1));
		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(NIM_BOOL, fetchRemoteTagsByName__basicZgitops_u61)(NimStringV2 path_p0, NimStringV2 remote_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NIM_BOOL result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ args_1;
	NimStringV2 colontmpD_;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T11_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T12_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	args_1.len = 0; args_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	{
		if (!(remote_p1.len == ((NI)0))) goto LA4_;
		result = NIM_FALSE;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
		goto BeforeRet_;
	}
LA4_: ;
	args_1.len = 0; args_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T8_;
		T8_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T8_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(((*T8_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)13)))&31U)))!=0)) goto LA9_;
		add__stdZenumutils_u70((&args_1), TM__woSSp9bWtDECsT5QjOFwmRw_212);
	}
LA9_: ;
	colontmpD_ = eqdup___system_u2757(remote_p1);
	add__stdZenumutils_u70((&args_1), colontmpD_);
	T11_.len = 0; T11_.p = NIM_NIL;
	T11_ = rawNewString(remote_p1.len + 33);
appendString((&T11_), TM__woSSp9bWtDECsT5QjOFwmRw_214);
appendString((&T11_), remote_p1);
appendString((&T11_), TM__woSSp9bWtDECsT5QjOFwmRw_216);
	add__stdZenumutils_u70((&args_1), T11_);
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)7), path_p0, ((args_1).p) ? (args_1.p->data) : NIM_NIL, args_1.len, errorReportLevel_p2, T12_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T17_;
		if (!!((status_1 == ((NI)0)))) goto LA15_;
		T17_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_218;
		T17_[1] = outp_1;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T17_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA15_: ;
	result = (status_1 == ((NI)0));
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteTags__basicZgitops_u57)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NIM_BOOL result;
	NimStringV2 remote_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	remote_1.len = 0; remote_1.p = NIM_NIL;
	remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, errorReportLevel_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(remote_1.len == ((NI)0))) goto LA4_;
		result = NIM_FALSE;
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		goto BeforeRet_;
	}
LA4_: ;
	result = fetchRemoteTagsByName__basicZgitops_u61(path_p0, remote_1, errorReportLevel_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, syncRemoteRefs__basicZgitops_u71)(NimStringV2 path_p0, NimStringV2 srcRemote_p1, NimStringV2 dstRemote_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3) {
	NIM_BOOL result;
	NimStringV2 refspec_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T12_;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T13_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T14_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	refspec_1.len = 0; refspec_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	{
		NIM_BOOL T4_;
		T4_ = (NIM_BOOL)0;
		T4_ = (srcRemote_p1.len == ((NI)0));
		if (T4_) goto LA5_;
		T4_ = (dstRemote_p2.len == ((NI)0));
LA5_: ;
		if (!T4_) goto LA6_;
		result = NIM_FALSE;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (refspec_1.p && !(refspec_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refspec_1.p);
}
		goto BeforeRet_;
	}
LA6_: ;
	{
		if (!eqStrings(srcRemote_p1, dstRemote_p2)) goto LA10_;
		result = NIM_TRUE;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (refspec_1.p && !(refspec_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refspec_1.p);
}
		goto BeforeRet_;
	}
LA10_: ;
	T12_.len = 0; T12_.p = NIM_NIL;
	T12_ = rawNewString(srcRemote_p1.len + dstRemote_p2.len + 32);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_233);
appendString((&T12_), srcRemote_p1);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_235);
appendString((&T12_), dstRemote_p2);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_237);
	refspec_1 = T12_;
	T13_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_238;
	T13_[1] = refspec_1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)7), path_p0, T13_, 2, errorReportLevel_p3, T14_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmpD_;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T20_;
		NimStringV2 T21_;
		if (!!((status_1 == ((NI)0)))) goto LA17_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		T21_.len = 0; T21_.p = NIM_NIL;
		T21_ = rawNewString(srcRemote_p1.len + dstRemote_p2.len + 41);
appendString((&T21_), TM__woSSp9bWtDECsT5QjOFwmRw_240);
appendString((&T21_), srcRemote_p1);
appendString((&T21_), TM__woSSp9bWtDECsT5QjOFwmRw_241);
appendString((&T21_), dstRemote_p2);
appendString((&T21_), TM__woSSp9bWtDECsT5QjOFwmRw_243);
		colontmpD_ = T21_;
		T20_[0] = colontmpD_;
		T20_[1] = outp_1;
		message__basicZgitops_u366(errorReportLevel_p3, path_p0, T20_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA19_;
		{
			LA19_:;
		}
		{
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA17_: ;
	result = (status_1 == ((NI)0));
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (refspec_1.p && !(refspec_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refspec_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZgitops_u3775)(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q* dest_p0) {
	if ((*dest_p0).Field1.p && !((*dest_p0).Field1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared((*dest_p0).Field1.p);
}
}
N_LIB_PRIVATE N_NIMCALL(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q, remoteRefsSnapshot__basicZgitops_u3761)(NimStringV2 path_p0, NimStringV2 remote_p1, NIM_BOOL onlyTags_p2) {
	tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q result;
	NimStringV2 refsPrefix_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T2_;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T10_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T11_;
	NI status_1;
	NimStringV2 T19_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q));
	refsPrefix_1.len = 0; refsPrefix_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	T2_.len = 0; T2_.p = NIM_NIL;
	{
		NimStringV2 T7_;
		if (!onlyTags_p2) goto LA5_;
		T7_.len = 0; T7_.p = NIM_NIL;
		T7_ = rawNewString(remote_p1.len + 18);
appendString((&T7_), TM__woSSp9bWtDECsT5QjOFwmRw_252);
appendString((&T7_), remote_p1);
appendString((&T7_), TM__woSSp9bWtDECsT5QjOFwmRw_254);
		refsPrefix_1 = T7_;
	}
	goto LA3_;
LA5_: ;
	{
		NimStringV2 T9_;
		T9_.len = 0; T9_.p = NIM_NIL;
		T9_ = rawNewString(remote_p1.len + 13);
appendString((&T9_), TM__woSSp9bWtDECsT5QjOFwmRw_255);
appendString((&T9_), remote_p1);
		refsPrefix_1 = T9_;
	}
LA3_: ;
	T10_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_257;
	T10_[1] = refsPrefix_1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)28), path_p0, T10_, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), T11_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmp_;
		NIM_BOOL colontmp__2;
		NimStringV2 blitTmp_1;
		if (!!((status_1 == ((NI)0)))) goto LA14_;
		colontmp_.len = 0; colontmp_.p = NIM_NIL;
		colontmp__2 = NIM_FALSE;
		colontmp_ = TM__woSSp9bWtDECsT5QjOFwmRw_258;
		result.Field0 = colontmp__2;
		blitTmp_1 = colontmp_;
		eqwasMoved___system_u2751((&colontmp_));
		result.Field1 = blitTmp_1;
		if (colontmp_.p && !(colontmp_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp_.p);
}
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (refsPrefix_1.p && !(refsPrefix_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refsPrefix_1.p);
}
		goto BeforeRet_;
		{
			LA16_:;
		}
		{
			if (colontmp_.p && !(colontmp_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmp_.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA14_: ;
	result.Field0 = NIM_TRUE;
	T19_.len = 0; T19_.p = NIM_NIL;
	T19_ = nsuStrip(outp_1, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
	if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T19_); goto LA1_;}
	result.Field1 = T19_;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (refsPrefix_1.p && !(refsPrefix_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refsPrefix_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, countUpdatedRefs__basicZgitops_u3793)(NimStringV2 beforeRefs_p0, NimStringV2 afterRefs_p1) {
	NI result;
	tyObject_Table__ao79cQacnAZc5Mu0cN3jybg beforeByRef_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	nimZeroMem((void*)(&beforeByRef_1), sizeof(tyObject_Table__ao79cQacnAZc5Mu0cN3jybg));
	beforeByRef_1 = initTable__basicZcompiledpatterns_u722(((NI)32));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NimStringV2 line_1;
		NI first_1;
		NI last_1;
		NI eolpos_1;
		line_1.len = 0; line_1.p = NIM_NIL;
		first_1 = ((NI)0);
		last_1 = ((NI)0);
		eolpos_1 = ((NI)0);
		{
			while (1) {
				NI colontmpD_;
				NI colontmpD__2;
				tySequence__sM4lkSb7zS6F7OVMvW9cffQ parts_1;
				NI T28_;
				NimStringV2 T34_;
				colontmpD_ = (NI)0;
				colontmpD__2 = (NI)0;
				parts_1.len = 0; parts_1.p = NIM_NIL;
				{
					while (1) {
						NIM_BOOL T9_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_263;
						T9_ = (NIM_BOOL)0;
						T9_ = (last_1 < beforeRefs_p0.len);
						if (!(T9_)) goto LA10_;
						if (last_1 < 0 || last_1 >= beforeRefs_p0.len){ raiseIndexError2(last_1,beforeRefs_p0.len-1); goto LA6_;
						}
						T9_ = !((((NU8)(beforeRefs_p0.p->data[last_1])) == ((NU8)(13)) || ((NU8)(beforeRefs_p0.p->data[last_1])) == ((NU8)(10))));
LA10_: ;
						if (!T9_) goto LA8;
						if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_263)) { raiseOverflow(); goto LA6_;
						};
						last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_263);
					} LA8: ;
				}
				eolpos_1 = last_1;
				{
					if (!(last_1 < beforeRefs_p0.len)) goto LA13_;
					{
						NI TM__woSSp9bWtDECsT5QjOFwmRw_264;
						if (last_1 < 0 || last_1 >= beforeRefs_p0.len){ raiseIndexError2(last_1,beforeRefs_p0.len-1); goto LA6_;
						}
						if (!((NU8)(beforeRefs_p0.p->data[last_1]) == (NU8)(10))) goto LA17_;
						if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_264)) { raiseOverflow(); goto LA6_;
						};
						last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_264);
					}
					goto LA15_;
LA17_: ;
					{
						NI TM__woSSp9bWtDECsT5QjOFwmRw_265;
						if (last_1 < 0 || last_1 >= beforeRefs_p0.len){ raiseIndexError2(last_1,beforeRefs_p0.len-1); goto LA6_;
						}
						if (!((NU8)(beforeRefs_p0.p->data[last_1]) == (NU8)(13))) goto LA20_;
						if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_265)) { raiseOverflow(); goto LA6_;
						};
						last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_265);
						{
							NIM_BOOL T24_;
							NI TM__woSSp9bWtDECsT5QjOFwmRw_266;
							T24_ = (NIM_BOOL)0;
							T24_ = (last_1 < beforeRefs_p0.len);
							if (!(T24_)) goto LA25_;
							if (last_1 < 0 || last_1 >= beforeRefs_p0.len){ raiseIndexError2(last_1,beforeRefs_p0.len-1); goto LA6_;
							}
							T24_ = ((NU8)(beforeRefs_p0.p->data[last_1]) == (NU8)(10));
LA25_: ;
							if (!T24_) goto LA26_;
							if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_266)) { raiseOverflow(); goto LA6_;
							};
							last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_266);
						}
LA26_: ;
					}
					goto LA15_;
LA20_: ;
LA15_: ;
				}
LA13_: ;
				T28_ = (NI)0;
				{
					NI TM__woSSp9bWtDECsT5QjOFwmRw_267;
					if (!NIM_FALSE) goto LA31_;
					if (nimSubInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_267)) { raiseOverflow(); goto LA6_;
					};
					colontmpD_ = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_267);
					T28_ = colontmpD_;
				}
				goto LA29_;
LA31_: ;
				{
					NI TM__woSSp9bWtDECsT5QjOFwmRw_268;
					if (nimSubInt(eolpos_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_268)) { raiseOverflow(); goto LA6_;
					};
					colontmpD__2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_268);
					T28_ = colontmpD__2;
				}
LA29_: ;
				T34_.len = 0; T34_.p = NIM_NIL;
				T34_ = substr__system_u9096(beforeRefs_p0, first_1, T28_);
				eqsink___system_u2760((&line_1), T34_);
				parts_1 = nsuSplitWhitespace(line_1, ((NI)-1));
				if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
				{
					NI T37_;
					NimStringV2 T40_;
					NimStringV2 blitTmp_1;
					T37_ = parts_1.len;
					if (!(((NI)2) <= T37_)) goto LA38_;
					if (((NI)1) < 0 || ((NI)1) >= parts_1.len){ raiseIndexError2(((NI)1),parts_1.len-1); goto LA6_;
					}
					T40_.len = 0; T40_.p = NIM_NIL;
					T40_ = parts_1.p->data[((NI)1)];
					if (((NI)0) < 0 || ((NI)0) >= parts_1.len){ raiseIndexError2(((NI)0),parts_1.len-1); goto LA6_;
					}
					blitTmp_1 = parts_1.p->data[((NI)0)];
					if (((NI)0) < 0 || ((NI)0) >= parts_1.len){ raiseIndexError2(((NI)0),parts_1.len-1); goto LA6_;
					}
					eqwasMoved___system_u2751((&parts_1.p->data[((NI)0)]));
					X5BX5Deq___basicZcompiledpatterns_u1236((&beforeByRef_1), T40_, blitTmp_1);
					if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
				}
LA38_: ;
				{
					if (!(eolpos_1 == last_1)) goto LA43_;
					eqdestroy___system_u5582(parts_1);
					goto LA4;
				}
LA43_: ;
				first_1 = last_1;
				{
					LA6_:;
				}
				{
					eqdestroy___system_u5582(parts_1);
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA3_;
			}
		} LA4: ;
		{
			LA3_:;
		}
		{
			if (line_1.p && !(line_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(line_1.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	{
		NimStringV2 line_2;
		NI first_2;
		NI last_2;
		NI eolpos_2;
		line_2.len = 0; line_2.p = NIM_NIL;
		first_2 = ((NI)0);
		last_2 = ((NI)0);
		eolpos_2 = ((NI)0);
		{
			while (1) {
				NI colontmpD__3;
				NI colontmpD__4;
				NI T74_;
				NimStringV2 T80_;
				colontmpD__3 = (NI)0;
				colontmpD__4 = (NI)0;
				{
					while (1) {
						NIM_BOOL T55_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_269;
						T55_ = (NIM_BOOL)0;
						T55_ = (last_2 < afterRefs_p1.len);
						if (!(T55_)) goto LA56_;
						if (last_2 < 0 || last_2 >= afterRefs_p1.len){ raiseIndexError2(last_2,afterRefs_p1.len-1); goto LA50_;
						}
						T55_ = !((((NU8)(afterRefs_p1.p->data[last_2])) == ((NU8)(13)) || ((NU8)(afterRefs_p1.p->data[last_2])) == ((NU8)(10))));
LA56_: ;
						if (!T55_) goto LA54;
						if (nimAddInt(last_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_269)) { raiseOverflow(); goto LA50_;
						};
						last_2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_269);
					} LA54: ;
				}
				eolpos_2 = last_2;
				{
					if (!(last_2 < afterRefs_p1.len)) goto LA59_;
					{
						NI TM__woSSp9bWtDECsT5QjOFwmRw_270;
						if (last_2 < 0 || last_2 >= afterRefs_p1.len){ raiseIndexError2(last_2,afterRefs_p1.len-1); goto LA50_;
						}
						if (!((NU8)(afterRefs_p1.p->data[last_2]) == (NU8)(10))) goto LA63_;
						if (nimAddInt(last_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_270)) { raiseOverflow(); goto LA50_;
						};
						last_2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_270);
					}
					goto LA61_;
LA63_: ;
					{
						NI TM__woSSp9bWtDECsT5QjOFwmRw_271;
						if (last_2 < 0 || last_2 >= afterRefs_p1.len){ raiseIndexError2(last_2,afterRefs_p1.len-1); goto LA50_;
						}
						if (!((NU8)(afterRefs_p1.p->data[last_2]) == (NU8)(13))) goto LA66_;
						if (nimAddInt(last_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_271)) { raiseOverflow(); goto LA50_;
						};
						last_2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_271);
						{
							NIM_BOOL T70_;
							NI TM__woSSp9bWtDECsT5QjOFwmRw_272;
							T70_ = (NIM_BOOL)0;
							T70_ = (last_2 < afterRefs_p1.len);
							if (!(T70_)) goto LA71_;
							if (last_2 < 0 || last_2 >= afterRefs_p1.len){ raiseIndexError2(last_2,afterRefs_p1.len-1); goto LA50_;
							}
							T70_ = ((NU8)(afterRefs_p1.p->data[last_2]) == (NU8)(10));
LA71_: ;
							if (!T70_) goto LA72_;
							if (nimAddInt(last_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_272)) { raiseOverflow(); goto LA50_;
							};
							last_2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_272);
						}
LA72_: ;
					}
					goto LA61_;
LA66_: ;
LA61_: ;
				}
LA59_: ;
				T74_ = (NI)0;
				{
					NI TM__woSSp9bWtDECsT5QjOFwmRw_273;
					if (!NIM_FALSE) goto LA77_;
					if (nimSubInt(last_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_273)) { raiseOverflow(); goto LA50_;
					};
					colontmpD__3 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_273);
					T74_ = colontmpD__3;
				}
				goto LA75_;
LA77_: ;
				{
					NI TM__woSSp9bWtDECsT5QjOFwmRw_274;
					if (nimSubInt(eolpos_2, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_274)) { raiseOverflow(); goto LA50_;
					};
					colontmpD__4 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_274);
					T74_ = colontmpD__4;
				}
LA75_: ;
				T80_.len = 0; T80_.p = NIM_NIL;
				T80_ = substr__system_u9096(afterRefs_p1, first_2, T74_);
				eqsink___system_u2760((&line_2), T80_);
				{
					tySequence__sM4lkSb7zS6F7OVMvW9cffQ parts_2;
					NimStringV2 refName_1;
					NimStringV2 refCommit_1;
					parts_2.len = 0; parts_2.p = NIM_NIL;
					refName_1.len = 0; refName_1.p = NIM_NIL;
					refCommit_1.len = 0; refCommit_1.p = NIM_NIL;
					parts_2 = nsuSplitWhitespace(line_2, ((NI)-1));
					if (NIM_UNLIKELY(*nimErr_)) goto LA82_;
					{
						NI T85_;
						T85_ = parts_2.len;
						if (!(T85_ < ((NI)2))) goto LA86_;
						if (refCommit_1.p && !(refCommit_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refCommit_1.p);
}
						if (refName_1.p && !(refName_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refName_1.p);
}
						eqdestroy___system_u5582(parts_2);
						goto LA81;
					}
LA86_: ;
					if (((NI)1) < 0 || ((NI)1) >= parts_2.len){ raiseIndexError2(((NI)1),parts_2.len-1); goto LA82_;
					}
					refName_1 = parts_2.p->data[((NI)1)];
					if (((NI)1) < 0 || ((NI)1) >= parts_2.len){ raiseIndexError2(((NI)1),parts_2.len-1); goto LA82_;
					}
					eqwasMoved___system_u2751((&parts_2.p->data[((NI)1)]));
					if (((NI)0) < 0 || ((NI)0) >= parts_2.len){ raiseIndexError2(((NI)0),parts_2.len-1); goto LA82_;
					}
					refCommit_1 = parts_2.p->data[((NI)0)];
					if (((NI)0) < 0 || ((NI)0) >= parts_2.len){ raiseIndexError2(((NI)0),parts_2.len-1); goto LA82_;
					}
					eqwasMoved___system_u2751((&parts_2.p->data[((NI)0)]));
					{
						NIM_BOOL T90_;
						NIM_BOOL T91_;
						NimStringV2* T93_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_275;
						T90_ = (NIM_BOOL)0;
						T91_ = (NIM_BOOL)0;
						T91_ = contains__basicZcompiledpatterns_u2497(beforeByRef_1, refName_1);
						if (NIM_UNLIKELY(*nimErr_)) goto LA82_;
						T90_ = !(T91_);
						if (T90_) goto LA92_;
						T93_ = (NimStringV2*)0;
						T93_ = X5BX5D___basicZgitops_u3975((&beforeByRef_1), refName_1);
						if (NIM_UNLIKELY(*nimErr_)) goto LA82_;
						T90_ = !(eqStrings((*T93_), refCommit_1));
LA92_: ;
						if (!T90_) goto LA94_;
						if (nimAddInt(result, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_275)) { raiseOverflow(); goto LA82_;
						};
						result = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_275);
					}
LA94_: ;
					{
						LA82_:;
					}
					{
						if (refCommit_1.p && !(refCommit_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refCommit_1.p);
}
						if (refName_1.p && !(refName_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refName_1.p);
}
						eqdestroy___system_u5582(parts_2);
					}
					if (NIM_UNLIKELY(*nimErr_)) goto LA50_;
				} LA81: ;
				{
					if (!(eolpos_2 == last_2)) goto LA100_;
					goto LA51;
				}
LA100_: ;
				first_2 = last_2;
			}
		} LA51: ;
		{
			LA50_:;
		}
		{
			if (line_2.p && !(line_2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(line_2.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	{
		LA1_:;
	}
	{
		eqdestroy___basicZcompiledpatterns_u861((&beforeByRef_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteHeadsAndTagsByName__basicZgitops_u420)(NimStringV2 path_p0, NimStringV2 remote_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NIM_BOOL result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ args_1;
	NimStringV2 colontmpD_;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T11_;
	NimStringV2 T12_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T13_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	args_1.len = 0; args_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	{
		if (!(remote_p1.len == ((NI)0))) goto LA4_;
		result = NIM_FALSE;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
		goto BeforeRet_;
	}
LA4_: ;
	args_1.len = 0; args_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T8_;
		T8_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T8_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(((*T8_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)13)))&31U)))!=0)) goto LA9_;
		add__stdZenumutils_u70((&args_1), TM__woSSp9bWtDECsT5QjOFwmRw_287);
	}
LA9_: ;
	colontmpD_ = eqdup___system_u2757(remote_p1);
	add__stdZenumutils_u70((&args_1), colontmpD_);
	T11_.len = 0; T11_.p = NIM_NIL;
	T11_ = rawNewString(remote_p1.len + 29);
appendString((&T11_), TM__woSSp9bWtDECsT5QjOFwmRw_289);
appendString((&T11_), remote_p1);
appendString((&T11_), TM__woSSp9bWtDECsT5QjOFwmRw_290);
	add__stdZenumutils_u70((&args_1), T11_);
	T12_.len = 0; T12_.p = NIM_NIL;
	T12_ = rawNewString(remote_p1.len + 33);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_291);
appendString((&T12_), remote_p1);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_292);
	add__stdZenumutils_u70((&args_1), T12_);
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)7), path_p0, ((args_1).p) ? (args_1.p->data) : NIM_NIL, args_1.len, errorReportLevel_p2, T13_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T18_;
		if (!!((status_1 == ((NI)0)))) goto LA16_;
		T18_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_294;
		T18_[1] = outp_1;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T18_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA16_: ;
	result = (status_1 == ((NI)0));
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, updateRemote__basicZgitops_u4050)(NimStringV2 path_p0, NimStringV2 remote_p1, NIM_BOOL onlyTags_p2) {
	NIM_BOOL result;
	tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q beforeFetch_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	nimZeroMem((void*)(&beforeFetch_1), sizeof(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q));
	{
		if (!(remote_p1.len == ((NI)0))) goto LA4_;
		warn__basicZgitops_u3033(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_249, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		result = NIM_FALSE;
		eqdestroy___basicZgitops_u3775((&beforeFetch_1));
		goto BeforeRet_;
	}
LA4_: ;
	beforeFetch_1 = remoteRefsSnapshot__basicZgitops_u3761(path_p0, remote_p1, onlyTags_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q afterFetch_1;
		if (!onlyTags_p2) goto LA8_;
		nimZeroMem((void*)(&afterFetch_1), sizeof(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q));
		{
			NIM_BOOL T13_;
			NimStringV2 colontmpD_;
			tyArray__YgExxhfgKcesA5EOUj1MOA T17_;
			NimStringV2 T18_;
			T13_ = (NIM_BOOL)0;
			T13_ = fetchRemoteTagsByName__basicZgitops_u61(path_p0, remote_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
			if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
			if (!!(T13_)) goto LA14_;
			colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
			T18_.len = 0; T18_.p = NIM_NIL;
			T18_ = rawNewString(remote_p1.len + 30);
appendString((&T18_), TM__woSSp9bWtDECsT5QjOFwmRw_260);
appendString((&T18_), remote_p1);
			colontmpD_ = T18_;
			T17_[0] = colontmpD_;
			error__basicZgitops_u1259(path_p0, T17_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA16_;
			result = NIM_FALSE;
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
			eqdestroy___basicZgitops_u3775((&afterFetch_1));
			eqdestroy___basicZgitops_u3775((&beforeFetch_1));
			goto BeforeRet_;
			{
				LA16_:;
			}
			{
				if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
		}
LA14_: ;
		afterFetch_1 = remoteRefsSnapshot__basicZgitops_u3761(path_p0, remote_p1, onlyTags_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
		{
			NIM_BOOL T23_;
			T23_ = (NIM_BOOL)0;
			T23_ = beforeFetch_1.Field0;
			if (!(T23_)) goto LA24_;
			T23_ = afterFetch_1.Field0;
LA24_: ;
			if (!T23_) goto LA25_;
			{
				NimStringV2 colontmpD__2;
				tyArray__YgExxhfgKcesA5EOUj1MOA T32_;
				NimStringV2 T33_;
				if (!eqStrings(beforeFetch_1.Field1, afterFetch_1.Field1)) goto LA29_;
				colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
				T33_.len = 0; T33_.p = NIM_NIL;
				T33_ = rawNewString(remote_p1.len + 25);
appendString((&T33_), TM__woSSp9bWtDECsT5QjOFwmRw_262);
appendString((&T33_), remote_p1);
				colontmpD__2 = T33_;
				T32_[0] = colontmpD__2;
				notice__basicZgitops_u4065(path_p0, T32_, 1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA31_;
				{
					LA31_:;
				}
				{
					if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
			}
			goto LA27_;
LA29_: ;
			{
				NimStringV2 refLabel_1;
				NimStringV2 colontmpD__3;
				NimStringV2 colontmpD__4;
				NI updatedRefs_1;
				NimStringV2 T38_;
				tyArray__YgExxhfgKcesA5EOUj1MOA T44_;
				NimStringV2 T45_;
				refLabel_1.len = 0; refLabel_1.p = NIM_NIL;
				colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
				colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
				updatedRefs_1 = countUpdatedRefs__basicZgitops_u3793(beforeFetch_1.Field1, afterFetch_1.Field1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				T38_.len = 0; T38_.p = NIM_NIL;
				{
					if (!(updatedRefs_1 == ((NI)1))) goto LA41_;
					refLabel_1 = TM__woSSp9bWtDECsT5QjOFwmRw_277;
				}
				goto LA39_;
LA41_: ;
				{
					refLabel_1 = TM__woSSp9bWtDECsT5QjOFwmRw_279;
				}
LA39_: ;
				T45_.len = 0; T45_.p = NIM_NIL;
				colontmpD__3 = dollar___systemZdollars_u14(updatedRefs_1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				T45_ = rawNewString(remote_p1.len + colontmpD__3.len + refLabel_1.len + 32);
appendString((&T45_), TM__woSSp9bWtDECsT5QjOFwmRw_281);
appendString((&T45_), remote_p1);
appendString((&T45_), TM__woSSp9bWtDECsT5QjOFwmRw_283);
appendString((&T45_), colontmpD__3);
appendString((&T45_), refLabel_1);
appendString((&T45_), TM__woSSp9bWtDECsT5QjOFwmRw_285);
				colontmpD__4 = T45_;
				T44_[0] = colontmpD__4;
				warn__basicZgitops_u3033(path_p0, T44_, 1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA37_;
				{
					LA37_:;
				}
				{
					if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
					if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
			}
LA27_: ;
		}
		goto LA21_;
LA25_: ;
		{
			NimStringV2 colontmpD__5;
			tyArray__YgExxhfgKcesA5EOUj1MOA T50_;
			NimStringV2 T51_;
			colontmpD__5.len = 0; colontmpD__5.p = NIM_NIL;
			T51_.len = 0; T51_.p = NIM_NIL;
			T51_ = rawNewString(remote_p1.len + 21);
appendString((&T51_), TM__woSSp9bWtDECsT5QjOFwmRw_286);
appendString((&T51_), remote_p1);
			colontmpD__5 = T51_;
			T50_[0] = colontmpD__5;
			warn__basicZgitops_u3033(path_p0, T50_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA49_;
			{
				LA49_:;
			}
			{
				if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
		}
LA21_: ;
		result = NIM_TRUE;
		eqdestroy___basicZgitops_u3775((&afterFetch_1));
		eqdestroy___basicZgitops_u3775((&beforeFetch_1));
		goto BeforeRet_;
		{
			LA10_:;
		}
		{
			eqdestroy___basicZgitops_u3775((&afterFetch_1));
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA6_;
LA8_: ;
	{
		tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q afterFetch_2;
		nimZeroMem((void*)(&afterFetch_2), sizeof(tyTuple__ubXr9bFCXs9bc35NkwsYmx2Q));
		{
			NIM_BOOL T60_;
			NimStringV2 colontmpD__6;
			tyArray__YgExxhfgKcesA5EOUj1MOA T64_;
			NimStringV2 T65_;
			T60_ = (NIM_BOOL)0;
			T60_ = fetchRemoteHeadsAndTagsByName__basicZgitops_u420(path_p0, remote_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
			if (NIM_UNLIKELY(*nimErr_)) goto LA57_;
			if (!!(T60_)) goto LA61_;
			colontmpD__6.len = 0; colontmpD__6.p = NIM_NIL;
			T65_.len = 0; T65_.p = NIM_NIL;
			T65_ = rawNewString(remote_p1.len + 36);
appendString((&T65_), TM__woSSp9bWtDECsT5QjOFwmRw_296);
appendString((&T65_), remote_p1);
			colontmpD__6 = T65_;
			T64_[0] = colontmpD__6;
			error__basicZgitops_u1259(path_p0, T64_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA63_;
			result = NIM_FALSE;
			if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
			eqdestroy___basicZgitops_u3775((&afterFetch_2));
			eqdestroy___basicZgitops_u3775((&beforeFetch_1));
			goto BeforeRet_;
			{
				LA63_:;
			}
			{
				if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA57_;
		}
LA61_: ;
		afterFetch_2 = remoteRefsSnapshot__basicZgitops_u3761(path_p0, remote_p1, onlyTags_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA57_;
		{
			NIM_BOOL T70_;
			T70_ = (NIM_BOOL)0;
			T70_ = beforeFetch_1.Field0;
			if (!(T70_)) goto LA71_;
			T70_ = afterFetch_2.Field0;
LA71_: ;
			if (!T70_) goto LA72_;
			{
				NimStringV2 colontmpD__7;
				tyArray__YgExxhfgKcesA5EOUj1MOA T79_;
				NimStringV2 T80_;
				if (!eqStrings(beforeFetch_1.Field1, afterFetch_2.Field1)) goto LA76_;
				colontmpD__7.len = 0; colontmpD__7.p = NIM_NIL;
				T80_.len = 0; T80_.p = NIM_NIL;
				T80_ = rawNewString(remote_p1.len + 12);
appendString((&T80_), TM__woSSp9bWtDECsT5QjOFwmRw_298);
appendString((&T80_), remote_p1);
				colontmpD__7 = T80_;
				T79_[0] = colontmpD__7;
				notice__basicZgitops_u4065(path_p0, T79_, 1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA78_;
				{
					LA78_:;
				}
				{
					if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA57_;
			}
			goto LA74_;
LA76_: ;
			{
				NimStringV2 refLabel_2;
				NimStringV2 colontmpD__8;
				NimStringV2 colontmpD__9;
				NI updatedRefs_2;
				NimStringV2 T85_;
				tyArray__YgExxhfgKcesA5EOUj1MOA T91_;
				NimStringV2 T92_;
				refLabel_2.len = 0; refLabel_2.p = NIM_NIL;
				colontmpD__8.len = 0; colontmpD__8.p = NIM_NIL;
				colontmpD__9.len = 0; colontmpD__9.p = NIM_NIL;
				updatedRefs_2 = countUpdatedRefs__basicZgitops_u3793(beforeFetch_1.Field1, afterFetch_2.Field1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA84_;
				T85_.len = 0; T85_.p = NIM_NIL;
				{
					if (!(updatedRefs_2 == ((NI)1))) goto LA88_;
					refLabel_2 = TM__woSSp9bWtDECsT5QjOFwmRw_299;
				}
				goto LA86_;
LA88_: ;
				{
					refLabel_2 = TM__woSSp9bWtDECsT5QjOFwmRw_300;
				}
LA86_: ;
				T92_.len = 0; T92_.p = NIM_NIL;
				colontmpD__8 = dollar___systemZdollars_u14(updatedRefs_2);
				if (NIM_UNLIKELY(*nimErr_)) goto LA84_;
				T92_ = rawNewString(remote_p1.len + colontmpD__8.len + refLabel_2.len + 27);
appendString((&T92_), TM__woSSp9bWtDECsT5QjOFwmRw_302);
appendString((&T92_), remote_p1);
appendString((&T92_), TM__woSSp9bWtDECsT5QjOFwmRw_303);
appendString((&T92_), colontmpD__8);
appendString((&T92_), refLabel_2);
appendString((&T92_), TM__woSSp9bWtDECsT5QjOFwmRw_304);
				colontmpD__9 = T92_;
				T91_[0] = colontmpD__9;
				warn__basicZgitops_u3033(path_p0, T91_, 1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA84_;
				{
					LA84_:;
				}
				{
					if (colontmpD__9.p && !(colontmpD__9.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__9.p);
}
					if (colontmpD__8.p && !(colontmpD__8.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__8.p);
}
				}
				if (NIM_UNLIKELY(*nimErr_)) goto LA57_;
			}
LA74_: ;
		}
		goto LA68_;
LA72_: ;
		{
			NimStringV2 colontmpD__10;
			tyArray__YgExxhfgKcesA5EOUj1MOA T97_;
			NimStringV2 T98_;
			colontmpD__10.len = 0; colontmpD__10.p = NIM_NIL;
			T98_.len = 0; T98_.p = NIM_NIL;
			T98_ = rawNewString(remote_p1.len + 16);
appendString((&T98_), TM__woSSp9bWtDECsT5QjOFwmRw_305);
appendString((&T98_), remote_p1);
			colontmpD__10 = T98_;
			T97_[0] = colontmpD__10;
			warn__basicZgitops_u3033(path_p0, T97_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA96_;
			{
				LA96_:;
			}
			{
				if (colontmpD__10.p && !(colontmpD__10.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__10.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA57_;
		}
LA68_: ;
		result = NIM_TRUE;
		eqdestroy___basicZgitops_u3775((&afterFetch_2));
		eqdestroy___basicZgitops_u3775((&beforeFetch_1));
		goto BeforeRet_;
		{
			LA57_:;
		}
		{
			eqdestroy___basicZgitops_u3775((&afterFetch_2));
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA6_: ;
	{
		LA1_:;
	}
	{
		eqdestroy___basicZgitops_u3775((&beforeFetch_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, updateRepo__basicZgitops_u4116)(NimStringV2 path_p0, NimStringV2 origin_p1, NIM_BOOL onlyTags_p2) {
	NimStringV2 canonicalUrl_1;
	NimStringV2 canonicalRemote_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ remotes_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ orderedRemotes_1;
	tySequence__4eQHGndY6XBYpFOH09apV8Q updatedByUrl_1;
	NimStringV2 T7_;
	NIM_BOOL hasErrors_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	canonicalUrl_1.len = 0; canonicalUrl_1.p = NIM_NIL;
	canonicalRemote_1.len = 0; canonicalRemote_1.p = NIM_NIL;
	remotes_1.len = 0; remotes_1.p = NIM_NIL;
	orderedRemotes_1.len = 0; orderedRemotes_1.p = NIM_NIL;
	updatedByUrl_1.len = 0; updatedByUrl_1.p = NIM_NIL;
	{
		NIM_BOOL T4_;
		T4_ = (NIM_BOOL)0;
		T4_ = isGitDir__basicZcontext_u378(path_p0);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!!(T4_)) goto LA5_;
		info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_219, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		eqdestroy___stdZenvvars_u103(updatedByUrl_1);
		eqdestroy___system_u5582(orderedRemotes_1);
		eqdestroy___system_u5582(remotes_1);
		if (canonicalRemote_1.p && !(canonicalRemote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalRemote_1.p);
}
		if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
		goto BeforeRet_;
	}
LA5_: ;
	canonicalUrl_1 = getCanonicalUrl__basicZgitops_u349(path_p0, origin_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T7_.len = 0; T7_.p = NIM_NIL;
	{
		if (!(((NI)0) < canonicalUrl_1.len)) goto LA10_;
		canonicalRemote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA8_;
LA10_: ;
	{
		canonicalRemote_1 = TM__woSSp9bWtDECsT5QjOFwmRw_221;
	}
LA8_: ;
	remotes_1 = listRemotes__basicZgitops_u195(path_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NI T15_;
		T15_ = remotes_1.len;
		if (!(T15_ == ((NI)0))) goto LA16_;
		info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_222, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		eqdestroy___stdZenvvars_u103(updatedByUrl_1);
		eqdestroy___system_u5582(orderedRemotes_1);
		eqdestroy___system_u5582(remotes_1);
		if (canonicalRemote_1.p && !(canonicalRemote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalRemote_1.p);
}
		if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
		goto BeforeRet_;
	}
LA16_: ;
	orderedRemotes_1.len = 0; orderedRemotes_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	{
		NIM_BOOL T20_;
		NimStringV2 colontmpD_;
		T20_ = (NIM_BOOL)0;
		T20_ = (((NI)0) < canonicalRemote_1.len);
		if (!(T20_)) goto LA21_;
		T20_ = contains__stdZenumutils_u50(((remotes_1).p) ? (remotes_1.p->data) : NIM_NIL, remotes_1.len, canonicalRemote_1);
LA21_: ;
		if (!T20_) goto LA22_;
		colontmpD_ = eqdup___system_u2757(canonicalRemote_1);
		add__stdZenumutils_u70((&orderedRemotes_1), colontmpD_);
	}
LA22_: ;
	{
		NimStringV2* remote_1;
		NI i_1;
		NI L_1;
		NI T25_;
		remote_1 = (NimStringV2*)0;
		i_1 = ((NI)0);
		T25_ = remotes_1.len;
		L_1 = T25_;
		{
			while (1) {
				if (!(i_1 < L_1)) goto LA27;
				if (i_1 < 0 || i_1 >= remotes_1.len){ raiseIndexError2(i_1,remotes_1.len-1); goto LA1_;
				}
				remote_1 = (&remotes_1.p->data[i_1]);
				{
					NimStringV2 colontmpD__2;
					if (!!(eqStrings((*remote_1), canonicalRemote_1))) goto LA30_;
					colontmpD__2 = eqdup___system_u2757((*remote_1));
					add__stdZenumutils_u70((&orderedRemotes_1), colontmpD__2);
				}
LA30_: ;
				i_1 += ((NI)1);
				{
					NI T34_;
					T34_ = remotes_1.len;
					if (!!((T34_ == L_1))) goto LA35_;
					failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_224);
					if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
				}
LA35_: ;
			} LA27: ;
		}
	}
	hasErrors_1 = NIM_FALSE;
	updatedByUrl_1.len = 0; updatedByUrl_1.p = (tySequence__4eQHGndY6XBYpFOH09apV8Q_Content*) newSeqPayload(0, sizeof(tyTuple__UV3llMMYFckfui8YMBuUZA), NIM_ALIGNOF(tyTuple__UV3llMMYFckfui8YMBuUZA));
	{
		NimStringV2* remote_2;
		NI i_2;
		NI L_2;
		NI T38_;
		remote_2 = (NimStringV2*)0;
		i_2 = ((NI)0);
		T38_ = orderedRemotes_1.len;
		L_2 = T38_;
		{
			while (1) {
				if (!(i_2 < L_2)) goto LA40;
				if (i_2 < 0 || i_2 >= orderedRemotes_1.len){ raiseIndexError2(i_2,orderedRemotes_1.len-1); goto LA1_;
				}
				remote_2 = (&orderedRemotes_1.p->data[i_2]);
				{
					NimStringV2 remoteUrl_1;
					remoteUrl_1.len = 0; remoteUrl_1.p = NIM_NIL;
					remoteUrl_1 = getRemoteUrlFor__basicZgitops_u342(path_p0, (*remote_2));
					if (NIM_UNLIKELY(*nimErr_)) goto LA42_;
					{
						NimStringV2 syncedFrom_1;
						NimStringV2 colontmpD__3;
						tyTuple__UV3llMMYFckfui8YMBuUZA T80_;
						NimStringV2 blitTmp_1;
						if (!(((NI)0) < remoteUrl_1.len)) goto LA45_;
						syncedFrom_1.len = 0; syncedFrom_1.p = NIM_NIL;
						syncedFrom_1 = TM__woSSp9bWtDECsT5QjOFwmRw_225;
						{
							tyTuple__UV3llMMYFckfui8YMBuUZA* it_1;
							NI i_3;
							NI L_3;
							NI T49_;
							it_1 = (tyTuple__UV3llMMYFckfui8YMBuUZA*)0;
							i_3 = ((NI)0);
							T49_ = updatedByUrl_1.len;
							L_3 = T49_;
							{
								while (1) {
									if (!(i_3 < L_3)) goto LA51;
									if (i_3 < 0 || i_3 >= updatedByUrl_1.len){ raiseIndexError2(i_3,updatedByUrl_1.len-1); goto LA47_;
									}
									it_1 = (&updatedByUrl_1.p->data[i_3]);
									{
										if (!eqStrings((*it_1).Field0, remoteUrl_1)) goto LA54_;
										eqcopy___system_u2754((&syncedFrom_1), (*it_1).Field1);
										goto LA48;
									}
LA54_: ;
									i_3 += ((NI)1);
									{
										NI T58_;
										T58_ = updatedByUrl_1.len;
										if (!!((T58_ == L_3))) goto LA59_;
										failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_226);
										if (NIM_UNLIKELY(*nimErr_)) goto LA47_;
									}
LA59_: ;
								} LA51: ;
							}
						} LA48: ;
						{
							NimStringV2 colontmpD__4;
							tyArray__YgExxhfgKcesA5EOUj1MOA T66_;
							NimStringV2 T67_;
							if (!(((NI)0) < syncedFrom_1.len)) goto LA63_;
							colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
							T67_.len = 0; T67_.p = NIM_NIL;
							T67_ = rawNewString((*remote_2).len + syncedFrom_1.len + 34);
appendString((&T67_), TM__woSSp9bWtDECsT5QjOFwmRw_228);
appendString((&T67_), (*remote_2));
appendString((&T67_), TM__woSSp9bWtDECsT5QjOFwmRw_230);
appendString((&T67_), syncedFrom_1);
appendString((&T67_), TM__woSSp9bWtDECsT5QjOFwmRw_231);
							colontmpD__4 = T67_;
							T66_[0] = colontmpD__4;
							info__basicZconfigutils_u114(path_p0, T66_, 1);
							if (NIM_UNLIKELY(*nimErr_)) goto LA65_;
							{
								NIM_BOOL T70_;
								NimStringV2 colontmpD__5;
								tyArray__YgExxhfgKcesA5EOUj1MOA T74_;
								NimStringV2 T75_;
								T70_ = (NIM_BOOL)0;
								T70_ = syncRemoteRefs__basicZgitops_u71(path_p0, syncedFrom_1, (*remote_2), ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5));
								if (NIM_UNLIKELY(*nimErr_)) goto LA65_;
								if (!!(T70_)) goto LA71_;
								colontmpD__5.len = 0; colontmpD__5.p = NIM_NIL;
								T75_.len = 0; T75_.p = NIM_NIL;
								T75_ = rawNewString(syncedFrom_1.len + (*remote_2).len + 41);
appendString((&T75_), TM__woSSp9bWtDECsT5QjOFwmRw_245);
appendString((&T75_), syncedFrom_1);
appendString((&T75_), TM__woSSp9bWtDECsT5QjOFwmRw_247);
appendString((&T75_), (*remote_2));
appendString((&T75_), TM__woSSp9bWtDECsT5QjOFwmRw_248);
								colontmpD__5 = T75_;
								T74_[0] = colontmpD__5;
								warn__basicZgitops_u3033(path_p0, T74_, 1);
								if (NIM_UNLIKELY(*nimErr_)) goto LA73_;
								{
									LA73_:;
								}
								{
									if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
								}
								if (NIM_UNLIKELY(*nimErr_)) goto LA65_;
							}
LA71_: ;
							if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
							if (syncedFrom_1.p && !(syncedFrom_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(syncedFrom_1.p);
}
							if (remoteUrl_1.p && !(remoteUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteUrl_1.p);
}
							goto LA41;
							{
								LA65_:;
							}
							{
								if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
							}
							if (NIM_UNLIKELY(*nimErr_)) goto LA47_;
						}
LA63_: ;
						blitTmp_1 = remoteUrl_1;
						eqwasMoved___system_u2751((&remoteUrl_1));
						T80_.Field0 = blitTmp_1;
						colontmpD__3 = eqdup___system_u2757((*remote_2));
						T80_.Field1 = colontmpD__3;
						add__basicZgitops_u4200((&updatedByUrl_1), (&T80_));
						{
							LA47_:;
						}
						{
							if (syncedFrom_1.p && !(syncedFrom_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(syncedFrom_1.p);
}
						}
						if (NIM_UNLIKELY(*nimErr_)) goto LA42_;
					}
LA45_: ;
					{
						NIM_BOOL T85_;
						T85_ = (NIM_BOOL)0;
						T85_ = updateRemote__basicZgitops_u4050(path_p0, (*remote_2), onlyTags_p2);
						if (NIM_UNLIKELY(*nimErr_)) goto LA42_;
						if (!!(T85_)) goto LA86_;
						hasErrors_1 = NIM_TRUE;
					}
LA86_: ;
					{
						LA42_:;
					}
					{
						if (remoteUrl_1.p && !(remoteUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteUrl_1.p);
}
					}
					if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
				} LA41: ;
				i_2 += ((NI)1);
				{
					NI T92_;
					T92_ = orderedRemotes_1.len;
					if (!!((T92_ == L_2))) goto LA93_;
					failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_306);
					if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
				}
LA93_: ;
			} LA40: ;
		}
	}
	{
		if (!hasErrors_1) goto LA97_;
		{
			if (!onlyTags_p2) goto LA101_;
			error__basicZgitops_u1259(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_307, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		}
		goto LA99_;
LA101_: ;
		{
			error__basicZgitops_u1259(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_309, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		}
LA99_: ;
	}
	goto LA95_;
LA97_: ;
	{
		{
			if (!onlyTags_p2) goto LA107_;
			info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_311, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		}
		goto LA105_;
LA107_: ;
		{
			info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_313, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		}
LA105_: ;
	}
LA95_: ;
	{
		LA1_:;
	}
	{
		eqdestroy___stdZenvvars_u103(updatedByUrl_1);
		eqdestroy___system_u5582(orderedRemotes_1);
		eqdestroy___system_u5582(remotes_1);
		if (canonicalRemote_1.p && !(canonicalRemote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalRemote_1.p);
}
		if (canonicalUrl_1.p && !(canonicalUrl_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(canonicalUrl_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, currentGitCommit__basicZgitops_u1058)(NimStringV2 path_p0, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p1) {
	tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 currentCommit_1;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA));
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	currentCommit_1.len = 0; currentCommit_1.p = NIM_NIL;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)19), path_p0, T2_, 0, errorReportLevel_p1, T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	currentCommit_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmpD_;
		if (!(status_1 == ((NI)0))) goto LA6_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		colontmpD_ = nsuStrip(currentCommit_1, NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		result = initCommitHash__basicZversions_u85(colontmpD_, ((tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww)2));
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		if (currentCommit_1.p && !(currentCommit_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(currentCommit_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		goto BeforeRet_;
		{
			LA8_:;
		}
		{
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA4_;
LA6_: ;
	{
		result = initCommitHash__basicZversions_u85(TM__woSSp9bWtDECsT5QjOFwmRw_315, ((tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww)0));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (currentCommit_1.p && !(currentCommit_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(currentCommit_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		goto BeforeRet_;
	}
LA4_: ;
	{
		LA1_:;
	}
	{
		if (currentCommit_1.p && !(currentCommit_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(currentCommit_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyTuple__XOVT24GHXwqiEj5GCsEGCA, execQuiet__basicZgitops_u84)(tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg gitCmd_p0, NimStringV2 path_p1, NimStringV2* args_p2, NI args_p2Len_0, NimStringV2* subs_p3, NI subs_p3Len_0) {
	tyTuple__XOVT24GHXwqiEj5GCsEGCA result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	result = exec__basicZgitops_u76(gitCmd_p0, path_p1, args_p2, args_p2Len_0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), subs_p3, subs_p3Len_0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, resolveRemoteTipRef__basicZgitops_u90)(NimStringV2 path_p0, NimStringV2 remote_p1) {
	NimStringV2 result;
	NimStringV2 base_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T6_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T7_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T8_;
	NI status_1;
	NIM_BOOL hasHead_1;
	NIM_BOOL hasMain_1;
	NIM_BOOL hasMaster_1;
	NimStringV2 T74_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	base_1.len = 0; base_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	{
		if (!(remote_p1.len == ((NI)0))) goto LA4_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_318;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (base_1.p && !(base_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(base_1.p);
}
		goto BeforeRet_;
	}
LA4_: ;
	T6_.len = 0; T6_.p = NIM_NIL;
	T6_ = rawNewString(remote_p1.len + 14);
appendString((&T6_), TM__woSSp9bWtDECsT5QjOFwmRw_319);
appendString((&T6_), remote_p1);
appendString((&T6_), TM__woSSp9bWtDECsT5QjOFwmRw_320);
	base_1 = T6_;
	tmpTuple_1 = execQuiet__basicZgitops_u84(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)11), path_p0, T7_, 0, T8_, 0);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		if (!!((status_1 == ((NI)0)))) goto LA11_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_321;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (base_1.p && !(base_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(base_1.p);
}
		goto BeforeRet_;
	}
LA11_: ;
	hasHead_1 = NIM_FALSE;
	hasMain_1 = NIM_FALSE;
	hasMaster_1 = NIM_FALSE;
	{
		NimStringV2 line_1;
		NI first_1;
		NI last_1;
		NI eolpos_1;
		line_1.len = 0; line_1.p = NIM_NIL;
		first_1 = ((NI)0);
		last_1 = ((NI)0);
		eolpos_1 = ((NI)0);
		{
			while (1) {
				NI colontmpD_;
				NI colontmpD__2;
				NI T38_;
				NimStringV2 T44_;
				colontmpD_ = (NI)0;
				colontmpD__2 = (NI)0;
				{
					while (1) {
						NIM_BOOL T19_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_322;
						T19_ = (NIM_BOOL)0;
						T19_ = (last_1 < outp_1.len);
						if (!(T19_)) goto LA20_;
						if (last_1 < 0 || last_1 >= outp_1.len){ raiseIndexError2(last_1,outp_1.len-1); goto LA14_;
						}
						T19_ = !((((NU8)(outp_1.p->data[last_1])) == ((NU8)(13)) || ((NU8)(outp_1.p->data[last_1])) == ((NU8)(10))));
LA20_: ;
						if (!T19_) goto LA18;
						if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_322)) { raiseOverflow(); goto LA14_;
						};
						last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_322);
					} LA18: ;
				}
				eolpos_1 = last_1;
				{
					if (!(last_1 < outp_1.len)) goto LA23_;
					{
						NI TM__woSSp9bWtDECsT5QjOFwmRw_323;
						if (last_1 < 0 || last_1 >= outp_1.len){ raiseIndexError2(last_1,outp_1.len-1); goto LA14_;
						}
						if (!((NU8)(outp_1.p->data[last_1]) == (NU8)(10))) goto LA27_;
						if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_323)) { raiseOverflow(); goto LA14_;
						};
						last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_323);
					}
					goto LA25_;
LA27_: ;
					{
						NI TM__woSSp9bWtDECsT5QjOFwmRw_324;
						if (last_1 < 0 || last_1 >= outp_1.len){ raiseIndexError2(last_1,outp_1.len-1); goto LA14_;
						}
						if (!((NU8)(outp_1.p->data[last_1]) == (NU8)(13))) goto LA30_;
						if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_324)) { raiseOverflow(); goto LA14_;
						};
						last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_324);
						{
							NIM_BOOL T34_;
							NI TM__woSSp9bWtDECsT5QjOFwmRw_325;
							T34_ = (NIM_BOOL)0;
							T34_ = (last_1 < outp_1.len);
							if (!(T34_)) goto LA35_;
							if (last_1 < 0 || last_1 >= outp_1.len){ raiseIndexError2(last_1,outp_1.len-1); goto LA14_;
							}
							T34_ = ((NU8)(outp_1.p->data[last_1]) == (NU8)(10));
LA35_: ;
							if (!T34_) goto LA36_;
							if (nimAddInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_325)) { raiseOverflow(); goto LA14_;
							};
							last_1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_325);
						}
LA36_: ;
					}
					goto LA25_;
LA30_: ;
LA25_: ;
				}
LA23_: ;
				T38_ = (NI)0;
				{
					NI TM__woSSp9bWtDECsT5QjOFwmRw_326;
					if (!NIM_FALSE) goto LA41_;
					if (nimSubInt(last_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_326)) { raiseOverflow(); goto LA14_;
					};
					colontmpD_ = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_326);
					T38_ = colontmpD_;
				}
				goto LA39_;
LA41_: ;
				{
					NI TM__woSSp9bWtDECsT5QjOFwmRw_327;
					if (nimSubInt(eolpos_1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_327)) { raiseOverflow(); goto LA14_;
					};
					colontmpD__2 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_327);
					T38_ = colontmpD__2;
				}
LA39_: ;
				T44_.len = 0; T44_.p = NIM_NIL;
				T44_ = substr__system_u9096(outp_1, first_1, T38_);
				eqsink___system_u2760((&line_1), T44_);
				{
					tySequence__sM4lkSb7zS6F7OVMvW9cffQ parts_1;
					NimStringV2 refName_1;
					NimStringV2 colontmpD__3;
					parts_1.len = 0; parts_1.p = NIM_NIL;
					refName_1.len = 0; refName_1.p = NIM_NIL;
					colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
					parts_1 = nsuSplitWhitespace(line_1, ((NI)-1));
					if (NIM_UNLIKELY(*nimErr_)) goto LA46_;
					{
						NI T49_;
						T49_ = parts_1.len;
						if (!(T49_ < ((NI)2))) goto LA50_;
						if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
						if (refName_1.p && !(refName_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refName_1.p);
}
						eqdestroy___system_u5582(parts_1);
						goto LA45;
					}
LA50_: ;
					refName_1 = X5BX5D___basicZgitops_u106(((parts_1).p) ? (parts_1.p->data) : NIM_NIL, parts_1.len, ((NI)1));
					if (NIM_UNLIKELY(*nimErr_)) goto LA46_;
					{
						NIM_BOOL T54_;
						T54_ = (NIM_BOOL)0;
						T54_ = nsuStartsWith(refName_1, base_1);
						if (NIM_UNLIKELY(*nimErr_)) goto LA46_;
						if (!!(T54_)) goto LA55_;
						if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
						if (refName_1.p && !(refName_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refName_1.p);
}
						eqdestroy___system_u5582(parts_1);
						goto LA45;
					}
LA55_: ;
					colontmpD__3 = substr__system_u9109(refName_1, base_1.len);
					if (eqStrings(colontmpD__3, TM__woSSp9bWtDECsT5QjOFwmRw_329)) goto LA57_;
					if (eqStrings(colontmpD__3, TM__woSSp9bWtDECsT5QjOFwmRw_331)) goto LA58_;
					if (eqStrings(colontmpD__3, TM__woSSp9bWtDECsT5QjOFwmRw_333)) goto LA59_;
					goto LA60_;
					LA57_: ;
					{
						hasHead_1 = NIM_TRUE;
					}
					goto LA61_;
					LA58_: ;
					{
						hasMain_1 = NIM_TRUE;
					}
					goto LA61_;
					LA59_: ;
					{
						hasMaster_1 = NIM_TRUE;
					}
					goto LA61_;
					LA60_: ;
					{
					}
LA61_: ;
					{
						LA46_:;
					}
					{
						if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
						if (refName_1.p && !(refName_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(refName_1.p);
}
						eqdestroy___system_u5582(parts_1);
					}
					if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
				} LA45: ;
				{
					if (!(eolpos_1 == last_1)) goto LA70_;
					goto LA15;
				}
LA70_: ;
				first_1 = last_1;
			}
		} LA15: ;
		{
			LA14_:;
		}
		{
			if (line_1.p && !(line_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(line_1.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	T74_.len = 0; T74_.p = NIM_NIL;
	{
		NimStringV2 T79_;
		if (!hasHead_1) goto LA77_;
		T79_.len = 0; T79_.p = NIM_NIL;
		T79_ = rawNewString(remote_p1.len + 5);
appendString((&T79_), remote_p1);
appendString((&T79_), TM__woSSp9bWtDECsT5QjOFwmRw_335);
		result = T79_;
	}
	goto LA75_;
LA77_: ;
	{
		NimStringV2 T83_;
		if (!hasMain_1) goto LA81_;
		T83_.len = 0; T83_.p = NIM_NIL;
		T83_ = rawNewString(remote_p1.len + 5);
appendString((&T83_), remote_p1);
appendString((&T83_), TM__woSSp9bWtDECsT5QjOFwmRw_337);
		result = T83_;
	}
	goto LA75_;
LA81_: ;
	{
		NimStringV2 T87_;
		if (!hasMaster_1) goto LA85_;
		T87_.len = 0; T87_.p = NIM_NIL;
		T87_ = rawNewString(remote_p1.len + 7);
appendString((&T87_), remote_p1);
appendString((&T87_), TM__woSSp9bWtDECsT5QjOFwmRw_339);
		result = T87_;
	}
	goto LA75_;
LA85_: ;
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_340;
	}
LA75_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (base_1.p && !(base_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(base_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteHeadsByName__basicZgitops_u393)(NimStringV2 path_p0, NimStringV2 remote_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NIM_BOOL result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ args_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T11_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	args_1.len = 0; args_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	{
		if (!(remote_p1.len == ((NI)0))) goto LA4_;
		result = NIM_FALSE;
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
		goto BeforeRet_;
	}
LA4_: ;
	args_1.len = 0; args_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	{
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T8_;
		T8_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T8_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(((*T8_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)13)))&31U)))!=0)) goto LA9_;
		add__stdZenumutils_u70((&args_1), TM__woSSp9bWtDECsT5QjOFwmRw_341);
	}
LA9_: ;
	T11_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_342;
	T11_[1] = remote_p1;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)8), path_p0, ((args_1).p) ? (args_1.p->data) : NIM_NIL, args_1.len, errorReportLevel_p2, T11_, 2, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T16_;
		if (!!((status_1 == ((NI)0)))) goto LA14_;
		T16_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_344;
		T16_[1] = outp_1;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T16_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA14_: ;
	result = (status_1 == ((NI)0));
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(args_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, fetchRemoteHeads__basicZgitops_u458)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NIM_BOOL result;
	NimStringV2 remote_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	remote_1.len = 0; remote_1.p = NIM_NIL;
	remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, errorReportLevel_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(remote_1.len == ((NI)0))) goto LA4_;
		result = NIM_FALSE;
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		goto BeforeRet_;
	}
LA4_: ;
	result = fetchRemoteHeadsByName__basicZgitops_u393(path_p0, remote_1, errorReportLevel_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, findOriginTip__basicZgitops_u681)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2, NIM_BOOL isLocalOnly_p3, tyObject_VersionTag__io9bcihbopiwucKorobyKdg* Result) {
	NimStringV2 remoteName_1;
	NimStringV2 remoteRef_1;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg colontmpD_;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg colontmpD__2;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ subs_1;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg colontmpD__3;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg colontmpD__4;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp1_1;
	tySequence__ROG4zVH2lrODohp66awvUw allVersions_1;
	NimStringV2 T2_;
	NimStringV2 T8_;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg cmd_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ T31_;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg cmd2_1;
	NI status1_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)Result, sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
	remoteName_1.len = 0; remoteName_1.p = NIM_NIL;
	remoteRef_1.len = 0; remoteRef_1.p = NIM_NIL;
	colontmpD_ = (tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0;
	colontmpD__2 = (tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0;
	subs_1.len = 0; subs_1.p = NIM_NIL;
	colontmpD__3 = (tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0;
	colontmpD__4 = (tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp1_1.len = 0; outp1_1.p = NIM_NIL;
	allVersions_1.len = 0; allVersions_1.p = NIM_NIL;
	T2_.len = 0; T2_.p = NIM_NIL;
	{
		if (!isLocalOnly_p3) goto LA5_;
		remoteName_1 = TM__woSSp9bWtDECsT5QjOFwmRw_316;
	}
	goto LA3_;
LA5_: ;
	{
		remoteName_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, errorReportLevel_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA3_: ;
	T8_.len = 0; T8_.p = NIM_NIL;
	{
		if (!isLocalOnly_p3) goto LA11_;
		remoteRef_1 = TM__woSSp9bWtDECsT5QjOFwmRw_317;
	}
	goto LA9_;
LA11_: ;
	{
		remoteRef_1 = resolveRemoteTipRef__basicZgitops_u90(path_p0, remoteName_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA9_: ;
	{
		NIM_BOOL T16_;
		T16_ = (NIM_BOOL)0;
		T16_ = !(isLocalOnly_p3);
		if (!(T16_)) goto LA17_;
		T16_ = (remoteRef_1.len == ((NI)0));
LA17_: ;
		if (!T16_) goto LA18_;
		{
			NIM_BOOL T22_;
			NimStringV2 T25_;
			T22_ = (NIM_BOOL)0;
			T22_ = fetchRemoteHeads__basicZgitops_u458(path_p0, origin_p1, errorReportLevel_p2);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			if (!T22_) goto LA23_;
			T25_.len = 0; T25_.p = NIM_NIL;
			T25_ = resolveRemoteTipRef__basicZgitops_u90(path_p0, remoteName_1);
			if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T25_); goto LA1_;}
			eqsink___system_u2760((&remoteRef_1), T25_);
		}
LA23_: ;
	}
LA18_: ;
	{
		if (!isLocalOnly_p3) goto LA28_;
		colontmpD_ = ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)23);
		cmd_1 = colontmpD_;
	}
	goto LA26_;
LA28_: ;
	{
		colontmpD__2 = ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)22);
		cmd_1 = colontmpD__2;
	}
LA26_: ;
	T31_.len = 0; T31_.p = NIM_NIL;
	{
		NIM_BOOL T34_;
		T34_ = (NIM_BOOL)0;
		T34_ = isLocalOnly_p3;
		if (T34_) goto LA35_;
		T34_ = (remoteRef_1.len == ((NI)0));
LA35_: ;
		if (!T34_) goto LA36_;
		subs_1.len = 0; subs_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	}
	goto LA32_;
LA36_: ;
	{
		NimStringV2 colontmpD__5;
		subs_1.len = 2; subs_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(2, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
		subs_1.p->data[0] = TM__woSSp9bWtDECsT5QjOFwmRw_345;
		colontmpD__5 = eqdup___system_u2757(remoteRef_1);
		subs_1.p->data[1] = colontmpD__5;
	}
LA32_: ;
	{
		NIM_BOOL T41_;
		T41_ = (NIM_BOOL)0;
		T41_ = isLocalOnly_p3;
		if (T41_) goto LA42_;
		T41_ = (remoteRef_1.len == ((NI)0));
LA42_: ;
		if (!T41_) goto LA43_;
		colontmpD__3 = ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)23);
		cmd2_1 = colontmpD__3;
	}
	goto LA39_;
LA43_: ;
	{
		colontmpD__4 = cmd_1;
		cmd2_1 = colontmpD__4;
	}
LA39_: ;
	{
		NIM_BOOL T48_;
		NimStringV2 colontmpD__6;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T53_;
		NimStringV2 T54_;
		T48_ = (NIM_BOOL)0;
		T48_ = !(isLocalOnly_p3);
		if (!(T48_)) goto LA49_;
		T48_ = (remoteRef_1.len == ((NI)0));
LA49_: ;
		if (!T48_) goto LA50_;
		colontmpD__6.len = 0; colontmpD__6.p = NIM_NIL;
		T54_.len = 0; T54_.p = NIM_NIL;
		T54_ = rawNewString(remoteName_1.len + 55);
appendString((&T54_), TM__woSSp9bWtDECsT5QjOFwmRw_347);
appendString((&T54_), remoteName_1);
appendString((&T54_), TM__woSSp9bWtDECsT5QjOFwmRw_349);
		colontmpD__6 = T54_;
		T53_[0] = colontmpD__6;
		T53_[1] = path_p0;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T53_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA52_;
		{
			LA52_:;
		}
		{
			if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA50_: ;
	tmpTuple_1 = exec__basicZgitops_u76(cmd2_1, path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_350, 1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2), ((subs_1).p) ? (subs_1.p->data) : NIM_NIL, subs_1.len, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp1_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status1_1 = tmpTuple_1.Field1;
	{
		if (!(status1_1 == ((NI)0))) goto LA59_;
		allVersions_1 = parseTaggedVersions__basicZversions_u723(outp1_1, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		{
			NI T63_;
			T63_ = allVersions_1.len;
			if (!(((NI)0) < T63_)) goto LA64_;
			if (((NI)0) < 0 || ((NI)0) >= allVersions_1.len){ raiseIndexError2(((NI)0),allVersions_1.len-1); goto LA1_;
			}
			(*Result) = allVersions_1.p->data[((NI)0)];
			if (((NI)0) < 0 || ((NI)0) >= allVersions_1.len){ raiseIndexError2(((NI)0),allVersions_1.len-1); goto LA1_;
			}
			eqwasMoved___basicZversions_u3506((&allVersions_1.p->data[((NI)0)]));
			(*Result).isTip = NIM_TRUE;
		}
LA64_: ;
	}
LA59_: ;
	{
		LA1_:;
	}
	{
		eqdestroy___basicZversions_u4782(allVersions_1);
		if (outp1_1.p && !(outp1_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp1_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(subs_1);
		if (remoteRef_1.p && !(remoteRef_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteRef_1.p);
}
		if (remoteName_1.p && !(remoteName_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteName_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, listFiles__basicZgitops_u947)(NimStringV2 path_p0, tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA commit_p1) {
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	tyArray__YgExxhfgKcesA5EOUj1MOA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	T2_[0] = commit_p1.h;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)27), path_p0, T2_, 1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ T8_;
		if (!(status_1 == ((NI)0))) goto LA6_;
		T8_.len = 0; T8_.p = NIM_NIL;
		{
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ colontmp__1;
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ resultX60gensym56__1;
			NI iX60gensym56__1;
			NI T10_;
			colontmp__1.len = 0; colontmp__1.p = NIM_NIL;
			resultX60gensym56__1.len = 0; resultX60gensym56__1.p = NIM_NIL;
			colontmp__1 = nsuSplitLines(outp_1, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			iX60gensym56__1 = ((NI)0);
			T10_ = colontmp__1.len;
			if ((T10_) < ((NI)0) || (T10_) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(T10_, ((NI)0), ((NI)IL64(9223372036854775807))); goto LA1_;
			}
			resultX60gensym56__1 = newSeq__stdZsyncio_u578((T10_));
			{
				NimStringV2* it_1;
				NI i_1;
				NI L_1;
				NI T12_;
				it_1 = (NimStringV2*)0;
				i_1 = ((NI)0);
				T12_ = colontmp__1.len;
				L_1 = T12_;
				{
					while (1) {
						NimStringV2 T15_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_352;
						if (!(i_1 < L_1)) goto LA14;
						if (i_1 < 0 || i_1 >= colontmp__1.len){ raiseIndexError2(i_1,colontmp__1.len-1); goto LA1_;
						}
						it_1 = (&colontmp__1.p->data[i_1]);
						if (iX60gensym56__1 < 0 || iX60gensym56__1 >= resultX60gensym56__1.len){ raiseIndexError2(iX60gensym56__1,resultX60gensym56__1.len-1); goto LA1_;
						}
						T15_.len = 0; T15_.p = NIM_NIL;
						T15_ = nsuStrip((*it_1), NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
						if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T15_); goto LA1_;}
						eqsink___system_u2760((&resultX60gensym56__1.p->data[iX60gensym56__1]), T15_);
						if (nimAddInt(iX60gensym56__1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_352)) { raiseOverflow(); goto LA1_;
						};
						iX60gensym56__1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_352);
						i_1 += ((NI)1);
						{
							NI T18_;
							T18_ = colontmp__1.len;
							if (!!((T18_ == L_1))) goto LA19_;
							failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_353);
							if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
						}
LA19_: ;
					} LA14: ;
				}
			}
			result = resultX60gensym56__1;
			eqdestroy___system_u5582(colontmp__1);
		}
	}
	goto LA4_;
LA6_: ;
	{
		result.len = 0; result.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	}
LA4_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, showFile__basicZgitops_u939)(NimStringV2 path_p0, tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA commit_p1, NimStringV2 file_p2) {
	NimStringV2 result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 colontmpD_;
	NimStringV2 outp_1;
	tyArray__YgExxhfgKcesA5EOUj1MOA T2_;
	NimStringV2 T3_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T4_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	outp_1.len = 0; outp_1.p = NIM_NIL;
	T3_.len = 0; T3_.p = NIM_NIL;
	T3_ = rawNewString(commit_p1.h.len + file_p2.len + 1);
appendString((&T3_), commit_p1.h);
appendString((&T3_), TM__woSSp9bWtDECsT5QjOFwmRw_354);
appendString((&T3_), file_p2);
	colontmpD_ = T3_;
	T2_[0] = colontmpD_;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)26), path_p0, T2_, 1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T4_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		if (!(status_1 == ((NI)0))) goto LA7_;
		result = outp_1;
		eqwasMoved___system_u2751((&outp_1));
	}
	goto LA5_;
LA7_: ;
	{
		result = TM__woSSp9bWtDECsT5QjOFwmRw_355;
	}
LA5_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, isHead__basicZversions_u288)(NimStringV2 v_p0) {
	NIM_BOOL result;
	NI T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = nsuCmpIgnoreCase(v_p0, TM__woSSp9bWtDECsT5QjOFwmRw_357);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = (T1_ == ((NI)0));
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, expandSpecial__basicZgitops_u817)(NimStringV2 path_p0, NimStringV2 origin_p1, tyObject_VersionTag__io9bcihbopiwucKorobyKdg* vtag_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3, tyObject_VersionTag__io9bcihbopiwucKorobyKdg* Result) {
	NimStringV2 colontmpD_;
	NimStringV2 remote_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 colontmpD__2;
	NimStringV2 colontmpD__3;
	NimStringV2 cc_1;
	tyArray__YgExxhfgKcesA5EOUj1MOA T7_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T8_;
	NI status_1;
	tyObject_VersionTag__io9bcihbopiwucKorobyKdg T9_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)Result, sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	remote_1.len = 0; remote_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
	cc_1.len = 0; cc_1.p = NIM_NIL;
	{
		NIM_BOOL T4_;
		colontmpD_ = version__basicZversions_u196(vtag_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T4_ = (NIM_BOOL)0;
		T4_ = isHead__basicZversions_u288(colontmpD_);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!T4_) goto LA5_;
		findOriginTip__basicZgitops_u681(path_p0, origin_p1, errorReportLevel_p3, NIM_FALSE, Result);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (cc_1.p && !(cc_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(cc_1.p);
}
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		goto BeforeRet_;
	}
LA5_: ;
	remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, errorReportLevel_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD__2 = version__basicZversions_u196(vtag_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD__3 = substr__system_u9109(colontmpD__2, ((NI)1));
	T7_[0] = colontmpD__3;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)14), path_p0, T7_, 1, errorReportLevel_p3, T8_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	cc_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	nimZeroMem((void*)(&T9_), sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
	T9_.v = version__basicZversions_u196(vtag_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T9_.c = initCommitHash__basicZversions_u85(TM__woSSp9bWtDECsT5QjOFwmRw_358, ((tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww)1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	(*Result) = T9_;
	{
		tySequence__ROG4zVH2lrODohp66awvUw vtagsX60gensym48__1;
		NimStringV2 colontmpD__4;
		NimStringV2 colontmpD__5;
		tyArray__Seu7uK9aaOSN0BK3EAjjSHw T26_;
		if (!(status_1 == ((NI)0))) goto LA12_;
		vtagsX60gensym48__1.len = 0; vtagsX60gensym48__1.p = NIM_NIL;
		colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
		colontmpD__5.len = 0; colontmpD__5.p = NIM_NIL;
		vtagsX60gensym48__1 = parseTaggedVersions__basicZversions_u723(cc_1, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
		{
			NI T17_;
			NimStringV2 colontmpD__6;
			NimStringV2 colontmpD__7;
			T17_ = vtagsX60gensym48__1.len;
			if (!(T17_ == ((NI)1))) goto LA18_;
			colontmpD__6.len = 0; colontmpD__6.p = NIM_NIL;
			colontmpD__7.len = 0; colontmpD__7.p = NIM_NIL;
			if (((NI)0) < 0 || ((NI)0) >= vtagsX60gensym48__1.len){ raiseIndexError2(((NI)0),vtagsX60gensym48__1.len-1); goto LA14_;
			}
			eqsink___basicZversions_u120((&(*Result).c), vtagsX60gensym48__1.p->data[((NI)0)].c);
			if (((NI)0) < 0 || ((NI)0) >= vtagsX60gensym48__1.len){ raiseIndexError2(((NI)0),vtagsX60gensym48__1.len-1); goto LA14_;
			}
			eqwasMoved___basicZversions_u108((&vtagsX60gensym48__1.p->data[((NI)0)].c));
			{
				NIM_BOOL T22_;
				NimStringV2 colontmpD__8;
				NimStringV2 T25_;
				colontmpD__6 = version__basicZversions_u196(vtag_p2);
				if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
				colontmpD__7 = substr__system_u9109(colontmpD__6, ((NI)1));
				T22_ = (NIM_BOOL)0;
				T22_ = contains__pureZstrutils_u1900((*Result).c.h, colontmpD__7);
				if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
				if (!T22_) goto LA23_;
				colontmpD__8.len = 0; colontmpD__8.p = NIM_NIL;
				T25_.len = 0; T25_.p = NIM_NIL;
				colontmpD__8 = dollar___basicZversions_u73((*Result).c);
				if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
				T25_ = rawNewString(colontmpD__8.len + 1);
appendString((&T25_), TM__woSSp9bWtDECsT5QjOFwmRw_360);
appendString((&T25_), colontmpD__8);
				eqsink___system_u2760((&(*Result).v), T25_);
				if (colontmpD__8.p && !(colontmpD__8.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__8.p);
}
			}
LA23_: ;
			if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
			if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
		}
LA18_: ;
		T26_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_362;
		colontmpD__4 = dollar___basicZversions_u187(vtag_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
		T26_[1] = colontmpD__4;
		T26_[2] = TM__woSSp9bWtDECsT5QjOFwmRw_364;
		colontmpD__5 = repr__basicZversions_u190(Result);
		if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
		T26_[3] = colontmpD__5;
		info__basicZconfigutils_u114(path_p0, T26_, 4);
		if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
		{
			LA14_:;
		}
		{
			if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
			if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
			eqdestroy___basicZversions_u4782(vtagsX60gensym48__1);
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA10_;
LA12_: ;
	{
		NimStringV2 remoteRef_1;
		NimStringV2 colontmpD__9;
		NimStringV2 colontmpD__10;
		tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_2;
		NimStringV2 ccRemote_1;
		NimStringV2 T40_;
		tyArray__YgExxhfgKcesA5EOUj1MOA T41_;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T42_;
		NI statusRemote_1;
		remoteRef_1.len = 0; remoteRef_1.p = NIM_NIL;
		colontmpD__9.len = 0; colontmpD__9.p = NIM_NIL;
		colontmpD__10.len = 0; colontmpD__10.p = NIM_NIL;
		nimZeroMem((void*)(&tmpTuple_2), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
		ccRemote_1.len = 0; ccRemote_1.p = NIM_NIL;
		{
			NimStringV2 colontmpD__11;
			tyArray__YgExxhfgKcesA5EOUj1MOA T36_;
			NimStringV2 T37_;
			if (!(remote_1.len == ((NI)0))) goto LA33_;
			colontmpD__11.len = 0; colontmpD__11.p = NIM_NIL;
			T37_.len = 0; T37_.p = NIM_NIL;
			T37_ = rawNewString(origin_p1.len + 42);
appendString((&T37_), TM__woSSp9bWtDECsT5QjOFwmRw_365);
appendString((&T37_), origin_p1);
appendString((&T37_), TM__woSSp9bWtDECsT5QjOFwmRw_366);
			colontmpD__11 = T37_;
			T36_[0] = colontmpD__11;
			message__basicZgitops_u366(errorReportLevel_p3, path_p0, T36_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA35_;
			if (colontmpD__11.p && !(colontmpD__11.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__11.p);
}
			if (ccRemote_1.p && !(ccRemote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(ccRemote_1.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_2));
			if (colontmpD__10.p && !(colontmpD__10.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__10.p);
}
			if (colontmpD__9.p && !(colontmpD__9.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__9.p);
}
			if (remoteRef_1.p && !(remoteRef_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteRef_1.p);
}
			if (cc_1.p && !(cc_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(cc_1.p);
}
			if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_1));
			if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
			goto BeforeRet_;
			{
				LA35_:;
			}
			{
				if (colontmpD__11.p && !(colontmpD__11.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__11.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
		}
LA33_: ;
		T40_.len = 0; T40_.p = NIM_NIL;
		colontmpD__9 = version__basicZversions_u196(vtag_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
		colontmpD__10 = substr__system_u9109(colontmpD__9, ((NI)1));
		T40_ = rawNewString(remote_1.len + colontmpD__10.len + 1);
appendString((&T40_), remote_1);
appendString((&T40_), TM__woSSp9bWtDECsT5QjOFwmRw_367);
appendString((&T40_), colontmpD__10);
		remoteRef_1 = T40_;
		T41_[0] = remoteRef_1;
		tmpTuple_2 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)14), path_p0, T41_, 1, errorReportLevel_p3, T42_, 0, NIM_TRUE, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
		ccRemote_1 = tmpTuple_2.Field0;
		eqwasMoved___system_u2751((&tmpTuple_2.Field0));
		statusRemote_1 = tmpTuple_2.Field1;
		{
			NIM_BOOL T45_;
			tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTupleAsgn;
			tyArray__YgExxhfgKcesA5EOUj1MOA T49_;
			tyArray__TonP9cxJgj8gXu71dWIyNlA T50_;
			T45_ = (NIM_BOOL)0;
			T45_ = !((statusRemote_1 == ((NI)0)));
			if (!(T45_)) goto LA46_;
			T45_ = fetchRemoteHeads__basicZgitops_u458(path_p0, origin_p1, errorReportLevel_p3);
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
LA46_: ;
			if (!T45_) goto LA47_;
			nimZeroMem((void*)(&tmpTupleAsgn), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
			T49_[0] = remoteRef_1;
			tmpTupleAsgn = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)14), path_p0, T49_, 1, errorReportLevel_p3, T50_, 0, NIM_TRUE, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
			eqsink___system_u2760((&ccRemote_1), tmpTupleAsgn.Field0);
			statusRemote_1 = tmpTupleAsgn.Field1;
		}
LA47_: ;
		{
			tySequence__ROG4zVH2lrODohp66awvUw vtagsX60gensym51__1;
			NimStringV2 colontmpD__12;
			NimStringV2 colontmpD__13;
			tyArray__Seu7uK9aaOSN0BK3EAjjSHw T67_;
			if (!(statusRemote_1 == ((NI)0))) goto LA53_;
			vtagsX60gensym51__1.len = 0; vtagsX60gensym51__1.p = NIM_NIL;
			colontmpD__12.len = 0; colontmpD__12.p = NIM_NIL;
			colontmpD__13.len = 0; colontmpD__13.p = NIM_NIL;
			vtagsX60gensym51__1 = parseTaggedVersions__basicZversions_u723(ccRemote_1, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
			{
				NI T58_;
				NimStringV2 colontmpD__14;
				NimStringV2 colontmpD__15;
				T58_ = vtagsX60gensym51__1.len;
				if (!(T58_ == ((NI)1))) goto LA59_;
				colontmpD__14.len = 0; colontmpD__14.p = NIM_NIL;
				colontmpD__15.len = 0; colontmpD__15.p = NIM_NIL;
				if (((NI)0) < 0 || ((NI)0) >= vtagsX60gensym51__1.len){ raiseIndexError2(((NI)0),vtagsX60gensym51__1.len-1); goto LA55_;
				}
				eqsink___basicZversions_u120((&(*Result).c), vtagsX60gensym51__1.p->data[((NI)0)].c);
				if (((NI)0) < 0 || ((NI)0) >= vtagsX60gensym51__1.len){ raiseIndexError2(((NI)0),vtagsX60gensym51__1.len-1); goto LA55_;
				}
				eqwasMoved___basicZversions_u108((&vtagsX60gensym51__1.p->data[((NI)0)].c));
				{
					NIM_BOOL T63_;
					NimStringV2 colontmpD__16;
					NimStringV2 T66_;
					colontmpD__14 = version__basicZversions_u196(vtag_p2);
					if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
					colontmpD__15 = substr__system_u9109(colontmpD__14, ((NI)1));
					T63_ = (NIM_BOOL)0;
					T63_ = contains__pureZstrutils_u1900((*Result).c.h, colontmpD__15);
					if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
					if (!T63_) goto LA64_;
					colontmpD__16.len = 0; colontmpD__16.p = NIM_NIL;
					T66_.len = 0; T66_.p = NIM_NIL;
					colontmpD__16 = dollar___basicZversions_u73((*Result).c);
					if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
					T66_ = rawNewString(colontmpD__16.len + 1);
appendString((&T66_), TM__woSSp9bWtDECsT5QjOFwmRw_368);
appendString((&T66_), colontmpD__16);
					eqsink___system_u2760((&(*Result).v), T66_);
					if (colontmpD__16.p && !(colontmpD__16.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__16.p);
}
				}
LA64_: ;
				if (colontmpD__15.p && !(colontmpD__15.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__15.p);
}
				if (colontmpD__14.p && !(colontmpD__14.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__14.p);
}
			}
LA59_: ;
			T67_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_369;
			colontmpD__12 = dollar___basicZversions_u187(vtag_p2);
			if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
			T67_[1] = colontmpD__12;
			T67_[2] = TM__woSSp9bWtDECsT5QjOFwmRw_370;
			colontmpD__13 = repr__basicZversions_u190(Result);
			if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
			T67_[3] = colontmpD__13;
			info__basicZconfigutils_u114(path_p0, T67_, 4);
			if (NIM_UNLIKELY(*nimErr_)) goto LA55_;
			{
				LA55_:;
			}
			{
				if (colontmpD__13.p && !(colontmpD__13.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__13.p);
}
				if (colontmpD__12.p && !(colontmpD__12.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__12.p);
}
				eqdestroy___basicZversions_u4782(vtagsX60gensym51__1);
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
		}
		goto LA51_;
LA53_: ;
		{
			NimStringV2 colontmpD__17;
			tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T72_;
			colontmpD__17.len = 0; colontmpD__17.p = NIM_NIL;
			T72_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_372;
			colontmpD__17 = dollar___basicZversions_u187(vtag_p2);
			if (NIM_UNLIKELY(*nimErr_)) goto LA71_;
			T72_[1] = colontmpD__17;
			message__basicZgitops_u366(errorReportLevel_p3, path_p0, T72_, 2);
			if (NIM_UNLIKELY(*nimErr_)) goto LA71_;
			{
				LA71_:;
			}
			{
				if (colontmpD__17.p && !(colontmpD__17.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__17.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA30_;
		}
LA51_: ;
		{
			LA30_:;
		}
		{
			if (ccRemote_1.p && !(ccRemote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(ccRemote_1.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_2));
			if (colontmpD__10.p && !(colontmpD__10.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__10.p);
}
			if (colontmpD__9.p && !(colontmpD__9.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__9.p);
}
			if (remoteRef_1.p && !(remoteRef_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteRef_1.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA10_: ;
	{
		LA1_:;
	}
	{
		if (cc_1.p && !(cc_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(cc_1.p);
}
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__ROG4zVH2lrODohp66awvUw, collectFileCommits__basicZgitops_u760)(NimStringV2 path_p0, NimStringV2 file_p1, NimStringV2 origin_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3, NIM_BOOL isLocalOnly_p4) {
	tySequence__ROG4zVH2lrODohp66awvUw result;
	NimStringV2 remote_1;
	tyObject_VersionTag__io9bcihbopiwucKorobyKdg tip_1;
	NimStringV2 remoteRef_1;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg colontmpD_;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg colontmpD__2;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ subs_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T2_;
	NimStringV2 T14_;
	tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg cmd_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ T27_;
	tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T35_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	remote_1.len = 0; remote_1.p = NIM_NIL;
	nimZeroMem((void*)(&tip_1), sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
	remoteRef_1.len = 0; remoteRef_1.p = NIM_NIL;
	colontmpD_ = (tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0;
	colontmpD__2 = (tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)0;
	subs_1.len = 0; subs_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	T2_.len = 0; T2_.p = NIM_NIL;
	{
		if (!isLocalOnly_p4) goto LA5_;
		remote_1 = TM__woSSp9bWtDECsT5QjOFwmRw_373;
	}
	goto LA3_;
LA5_: ;
	{
		remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p2, errorReportLevel_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA3_: ;
	findOriginTip__basicZgitops_u681(path_p0, origin_p2, errorReportLevel_p3, isLocalOnly_p4, (&tip_1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T10_;
		T10_ = (NIM_BOOL)0;
		T10_ = !(isLocalOnly_p4);
		if (!(T10_)) goto LA11_;
		T10_ = (remote_1.len == ((NI)0));
LA11_: ;
		if (!T10_) goto LA12_;
		result.len = 0; result.p = (tySequence__ROG4zVH2lrODohp66awvUw_Content*) newSeqPayload(0, sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg), NIM_ALIGNOF(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(subs_1);
		if (remoteRef_1.p && !(remoteRef_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteRef_1.p);
}
		eqdestroy___basicZversions_u3509((&tip_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		goto BeforeRet_;
	}
LA12_: ;
	T14_.len = 0; T14_.p = NIM_NIL;
	{
		if (!isLocalOnly_p4) goto LA17_;
		remoteRef_1 = TM__woSSp9bWtDECsT5QjOFwmRw_374;
	}
	goto LA15_;
LA17_: ;
	{
		remoteRef_1 = resolveRemoteTipRef__basicZgitops_u90(path_p0, remote_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA15_: ;
	{
		NIM_BOOL T22_;
		T22_ = (NIM_BOOL)0;
		T22_ = isLocalOnly_p4;
		if (T22_) goto LA23_;
		T22_ = (remoteRef_1.len == ((NI)0));
LA23_: ;
		if (!T22_) goto LA24_;
		colontmpD_ = ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)23);
		cmd_1 = colontmpD_;
	}
	goto LA20_;
LA24_: ;
	{
		colontmpD__2 = ((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)22);
		cmd_1 = colontmpD__2;
	}
LA20_: ;
	T27_.len = 0; T27_.p = NIM_NIL;
	{
		NIM_BOOL T30_;
		T30_ = (NIM_BOOL)0;
		T30_ = isLocalOnly_p4;
		if (T30_) goto LA31_;
		T30_ = (remoteRef_1.len == ((NI)0));
LA31_: ;
		if (!T30_) goto LA32_;
		subs_1.len = 0; subs_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	}
	goto LA28_;
LA32_: ;
	{
		NimStringV2 blitTmp_1;
		subs_1.len = 2; subs_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(2, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
		subs_1.p->data[0] = TM__woSSp9bWtDECsT5QjOFwmRw_375;
		blitTmp_1 = remoteRef_1;
		eqwasMoved___system_u2751((&remoteRef_1));
		subs_1.p->data[1] = blitTmp_1;
	}
LA28_: ;
	T35_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_377;
	T35_[1] = file_p1;
	tmpTuple_1 = exec__basicZgitops_u76(cmd_1, path_p0, T35_, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2), ((subs_1).p) ? (subs_1.p->data) : NIM_NIL, subs_1.len, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		if (!(status_1 == ((NI)0))) goto LA38_;
		result = parseTaggedVersions__basicZversions_u723(outp_1, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		{
			NIM_BOOL T42_;
			NI T43_;
			T42_ = (NIM_BOOL)0;
			T43_ = result.len;
			T42_ = (((NI)0) < T43_);
			if (!(T42_)) goto LA44_;
			T42_ = tip_1.isTip;
LA44_: ;
			if (!T42_) goto LA45_;
			{
				NIM_BOOL T49_;
				if (((NI)0) < 0 || ((NI)0) >= result.len){ raiseIndexError2(((NI)0),result.len-1); goto LA1_;
				}
				T49_ = (NIM_BOOL)0;
				T49_ = eqeq___basicZversions_u5261(result.p->data[((NI)0)].c, tip_1.c);
				if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
				if (!T49_) goto LA50_;
				if (((NI)0) < 0 || ((NI)0) >= result.len){ raiseIndexError2(((NI)0),result.len-1); goto LA1_;
				}
				result.p->data[((NI)0)].isTip = NIM_TRUE;
			}
LA50_: ;
		}
LA45_: ;
	}
	goto LA36_;
LA38_: ;
	{
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T53_;
		T53_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_379;
		T53_[1] = file_p1;
		message__basicZgitops_u366(errorReportLevel_p3, file_p1, T53_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA36_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(subs_1);
		if (remoteRef_1.p && !(remoteRef_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remoteRef_1.p);
}
		eqdestroy___basicZversions_u3509((&tip_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__ROG4zVH2lrODohp66awvUw, collectTaggedVersions__basicZgitops_u731)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2, NIM_BOOL isLocalOnly_p3) {
	tySequence__ROG4zVH2lrODohp66awvUw result;
	NimStringV2 remote_1;
	tyObject_VersionTag__io9bcihbopiwucKorobyKdg tip_1;
	NimStringV2 localTags_1;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ refs_1;
	NimStringV2 colontmpD_;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	NimStringV2 T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T13_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	remote_1.len = 0; remote_1.p = NIM_NIL;
	nimZeroMem((void*)(&tip_1), sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
	localTags_1.len = 0; localTags_1.p = NIM_NIL;
	refs_1.len = 0; refs_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	T2_.len = 0; T2_.p = NIM_NIL;
	{
		if (!isLocalOnly_p3) goto LA5_;
		remote_1 = TM__woSSp9bWtDECsT5QjOFwmRw_380;
	}
	goto LA3_;
LA5_: ;
	{
		remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, errorReportLevel_p2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA3_: ;
	findOriginTip__basicZgitops_u681(path_p0, origin_p1, errorReportLevel_p2, isLocalOnly_p3, (&tip_1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	localTags_1 = TM__woSSp9bWtDECsT5QjOFwmRw_382;
	refs_1.len = 2; refs_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(2, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	refs_1.p->data[0] = TM__woSSp9bWtDECsT5QjOFwmRw_383;
	colontmpD_ = eqdup___system_u2757(localTags_1);
	refs_1.p->data[1] = colontmpD_;
	{
		NimStringV2 T12_;
		if (!(((NI)0) < remote_1.len)) goto LA10_;
		T12_.len = 0; T12_.p = NIM_NIL;
		T12_ = rawNewString(remote_1.len + 18);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_384);
appendString((&T12_), remote_1);
appendString((&T12_), TM__woSSp9bWtDECsT5QjOFwmRw_385);
		add__stdZenumutils_u70((&refs_1), T12_);
	}
LA10_: ;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)28), path_p0, ((refs_1).p) ? (refs_1.p->data) : NIM_NIL, refs_1.len, errorReportLevel_p2, T13_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		if (!(status_1 == ((NI)0))) goto LA16_;
		result = parseTaggedVersions__basicZversions_u723(outp_1, NIM_TRUE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		{
			NIM_BOOL T20_;
			NI T21_;
			T20_ = (NIM_BOOL)0;
			T21_ = result.len;
			T20_ = (((NI)0) < T21_);
			if (!(T20_)) goto LA22_;
			T20_ = tip_1.isTip;
LA22_: ;
			if (!T20_) goto LA23_;
			{
				NIM_BOOL T27_;
				if (((NI)0) < 0 || ((NI)0) >= result.len){ raiseIndexError2(((NI)0),result.len-1); goto LA1_;
				}
				T27_ = (NIM_BOOL)0;
				T27_ = eqeq___basicZversions_u5261(result.p->data[((NI)0)].c, tip_1.c);
				if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
				if (!T27_) goto LA28_;
				if (((NI)0) < 0 || ((NI)0) >= result.len){ raiseIndexError2(((NI)0),result.len-1); goto LA1_;
				}
				result.p->data[((NI)0)].isTip = NIM_TRUE;
			}
LA28_: ;
		}
LA23_: ;
	}
	goto LA14_;
LA16_: ;
	{
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T31_;
		T31_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_387;
		T31_[1] = path_p0;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T31_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA14_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(refs_1);
		eqdestroy___basicZversions_u3509((&tip_1));
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, checkoutGitCommit__basicZgitops_u1065)(NimStringV2 path_p0, tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA commit_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NIM_BOOL result;
	tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA currentCommit_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	tyArray__YgExxhfgKcesA5EOUj1MOA T8_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T9_;
	NI statusB_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	nimZeroMem((void*)(&currentCommit_1), sizeof(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA));
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	currentCommit_1 = currentGitCommit__basicZgitops_u1058(path_p0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)4));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T4_;
		T4_ = (NIM_BOOL)0;
		T4_ = isFull__basicZversions_u136(currentCommit_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(T4_)) goto LA5_;
		T4_ = eqeq___basicZversions_u5261(currentCommit_1, commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
LA5_: ;
		if (!T4_) goto LA6_;
		result = NIM_TRUE;
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___basicZversions_u111((&currentCommit_1));
		goto BeforeRet_;
	}
LA6_: ;
	T8_[0] = commit_p1.h;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)15), path_p0, T8_, 1, errorReportLevel_p2, T9_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	statusB_1 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmpD_;
		NimStringV2 colontmpD__2;
		tyArray__YgExxhfgKcesA5EOUj1MOA T15_;
		NimStringV2 T16_;
		if (!!((statusB_1 == ((NI)0)))) goto LA12_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
		T16_.len = 0; T16_.p = NIM_NIL;
		colontmpD_ = dollar___basicZversions_u73(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
		T16_ = rawNewString(colontmpD_.len + 26);
appendString((&T16_), TM__woSSp9bWtDECsT5QjOFwmRw_389);
appendString((&T16_), colontmpD_);
		colontmpD__2 = T16_;
		T15_[0] = colontmpD__2;
		message__basicZgitops_u366(errorReportLevel_p2, path_p0, T15_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
		result = NIM_FALSE;
		{
			LA14_:;
		}
		{
			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 LA1_;
	}
	goto LA10_;
LA12_: ;
	{
		NimStringV2 colontmpD__3;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T21_;
		colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
		T21_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_391;
		colontmpD__3 = dollar___basicZversions_u73(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA20_;
		T21_[1] = colontmpD__3;
		trace__basicZgitops_u1078(path_p0, T21_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA20_;
		result = NIM_TRUE;
		{
			LA20_:;
		}
		{
			if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA10_: ;
	{
		LA1_:;
	}
	{
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___basicZversions_u111((&currentCommit_1));
	}
	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(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(NIM_BOOL, checkoutGitCommitFull__basicZgitops_u1085)(NimStringV2 path_p0, tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA commit_p1, NimStringV2 origin_p2, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p3) {
	NIM_BOOL result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ smExtraArgs_1;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 colontmpD_;
	tyArray__YgExxhfgKcesA5EOUj1MOA T69_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T70_;
	NI status_3;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	smExtraArgs_1.len = 0; smExtraArgs_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	smExtraArgs_1.len = 0; smExtraArgs_1.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	result = NIM_TRUE;
	{
		NIM_BOOL T4_;
		tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T5_;
		NimStringV2 remote_1;
		NimStringV2 extraArgs_1;
		tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_2;
		NimStringV2 T19_;
		tyArray__Seu7uK9aaOSN0BK3EAjjSHw T30_;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T31_;
		NI status_1;
		T4_ = (NIM_BOOL)0;
		T5_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
		T5_ = context__basicZcontext_u319();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T4_ = (((*T5_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)13)))&31U)))!=0);
		if (!(T4_)) goto LA6_;
		T4_ = isFull__basicZversions_u136(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
LA6_: ;
		if (!T4_) goto LA7_;
		remote_1.len = 0; remote_1.p = NIM_NIL;
		extraArgs_1.len = 0; extraArgs_1.p = NIM_NIL;
		nimZeroMem((void*)(&tmpTuple_2), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
		add__stdZenumutils_u70((&smExtraArgs_1), TM__woSSp9bWtDECsT5QjOFwmRw_392);
		remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p2, errorReportLevel_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
		{
			NimStringV2 colontmpD__2;
			tyArray__YgExxhfgKcesA5EOUj1MOA T15_;
			NimStringV2 T16_;
			if (!(remote_1.len == ((NI)0))) goto LA12_;
			colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
			T16_.len = 0; T16_.p = NIM_NIL;
			T16_ = rawNewString(origin_p2.len + 42);
appendString((&T16_), TM__woSSp9bWtDECsT5QjOFwmRw_393);
appendString((&T16_), origin_p2);
appendString((&T16_), TM__woSSp9bWtDECsT5QjOFwmRw_394);
			colontmpD__2 = T16_;
			T15_[0] = colontmpD__2;
			message__basicZgitops_u181(errorReportLevel_p3, path_p0, T15_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA14_;
			result = NIM_FALSE;
			if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_2));
			if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_1));
			eqdestroy___system_u5582(smExtraArgs_1);
			goto BeforeRet_;
			{
				LA14_:;
			}
			{
				if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
		}
LA12_: ;
		T19_.len = 0; T19_.p = NIM_NIL;
		{
			tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T22_;
			T22_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
			T22_ = context__basicZcontext_u319();
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
			if (!(((*T22_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)18)))&31U)))!=0)) goto LA23_;
			extraArgs_1 = TM__woSSp9bWtDECsT5QjOFwmRw_395;
		}
		goto LA20_;
LA23_: ;
		{
			tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ* T26_;
			T26_ = (tyObject_AtlasContext__9b9cOM1bS6SdrgGAPmY5KTwQ*)0;
			T26_ = context__basicZcontext_u319();
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
			if (!!((((*T26_).flags &((NU32)1<<((NU)((((tyEnum_Flag__YJpVNZDPDp9bqb0qWHXEQFw)13)))&31U)))!=0))) goto LA27_;
			extraArgs_1 = TM__woSSp9bWtDECsT5QjOFwmRw_397;
		}
		goto LA20_;
LA27_: ;
		{
			extraArgs_1 = TM__woSSp9bWtDECsT5QjOFwmRw_398;
		}
LA20_: ;
		T30_[0] = extraArgs_1;
		T30_[1] = TM__woSSp9bWtDECsT5QjOFwmRw_399;
		T30_[2] = remote_1;
		T30_[3] = commit_p1.h;
		tmpTuple_2 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)7), path_p0, T30_, 4, errorReportLevel_p3, T31_, 0, NIM_TRUE, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
		status_1 = tmpTuple_2.Field1;
		{
			NimStringV2 colontmpD__3;
			NimStringV2 colontmpD__4;
			tyArray__YgExxhfgKcesA5EOUj1MOA T37_;
			NimStringV2 T38_;
			if (!!((status_1 == ((NI)0)))) goto LA34_;
			colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
			colontmpD__4.len = 0; colontmpD__4.p = NIM_NIL;
			T38_.len = 0; T38_.p = NIM_NIL;
			colontmpD__3 = dollar___basicZversions_u73(commit_p1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA36_;
			T38_ = rawNewString(colontmpD__3.len + 23);
appendString((&T38_), TM__woSSp9bWtDECsT5QjOFwmRw_401);
appendString((&T38_), colontmpD__3);
			colontmpD__4 = T38_;
			T37_[0] = colontmpD__4;
			message__basicZgitops_u181(errorReportLevel_p3, path_p0, T37_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA36_;
			result = NIM_FALSE;
			{
				LA36_:;
			}
			{
				if (colontmpD__4.p && !(colontmpD__4.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__4.p);
}
				if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
		}
		goto LA32_;
LA34_: ;
		{
			NimStringV2 colontmpD__5;
			NimStringV2 colontmpD__6;
			tyArray__YgExxhfgKcesA5EOUj1MOA T43_;
			NimStringV2 T44_;
			colontmpD__5.len = 0; colontmpD__5.p = NIM_NIL;
			colontmpD__6.len = 0; colontmpD__6.p = NIM_NIL;
			T44_.len = 0; T44_.p = NIM_NIL;
			colontmpD__5 = dollar___basicZversions_u73(commit_p1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA42_;
			T44_ = rawNewString(colontmpD__5.len + 23);
appendString((&T44_), TM__woSSp9bWtDECsT5QjOFwmRw_403);
appendString((&T44_), colontmpD__5);
			colontmpD__6 = T44_;
			T43_[0] = colontmpD__6;
			trace__basicZgitops_u1126(path_p0, T43_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA42_;
			{
				LA42_:;
			}
			{
				if (colontmpD__6.p && !(colontmpD__6.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__6.p);
}
				if (colontmpD__5.p && !(colontmpD__5.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__5.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
		}
LA32_: ;
		{
			LA9_:;
		}
		{
			eqdestroy___basicZosutils_u97((&tmpTuple_2));
			if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA2_;
LA7_: ;
	{
		NIM_BOOL T50_;
		NimStringV2 colontmpD__7;
		NimStringV2 colontmpD__8;
		tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_3;
		NimStringV2 outp_1;
		tyArray__YgExxhfgKcesA5EOUj1MOA T54_;
		NimStringV2 T55_;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T56_;
		NI status_2;
		T50_ = (NIM_BOOL)0;
		T50_ = isShort__basicZversions_u139(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!T50_) goto LA51_;
		colontmpD__7.len = 0; colontmpD__7.p = NIM_NIL;
		colontmpD__8.len = 0; colontmpD__8.p = NIM_NIL;
		nimZeroMem((void*)(&tmpTuple_3), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
		outp_1.len = 0; outp_1.p = NIM_NIL;
		T55_.len = 0; T55_.p = NIM_NIL;
		colontmpD__7 = dollar___basicZversions_u73(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		T55_ = rawNewString(colontmpD__7.len + 51);
appendString((&T55_), TM__woSSp9bWtDECsT5QjOFwmRw_405);
appendString((&T55_), colontmpD__7);
		colontmpD__8 = T55_;
		T54_[0] = colontmpD__8;
		info__basicZparse95requires_u40(path_p0, T54_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		tmpTuple_3 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)7), path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_406, 2, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T56_, 0, NIM_TRUE, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		outp_1 = tmpTuple_3.Field0;
		eqwasMoved___system_u2751((&tmpTuple_3.Field0));
		status_2 = tmpTuple_3.Field1;
		{
			NimStringV2 colontmpD__9;
			tyArray__YgExxhfgKcesA5EOUj1MOA T62_;
			NimStringV2 T63_;
			if (!!((status_2 == ((NI)0)))) goto LA59_;
			colontmpD__9.len = 0; colontmpD__9.p = NIM_NIL;
			T63_.len = 0; T63_.p = NIM_NIL;
			T63_ = rawNewString(outp_1.len + 17);
appendString((&T63_), TM__woSSp9bWtDECsT5QjOFwmRw_409);
appendString((&T63_), outp_1);
			colontmpD__9 = T63_;
			T62_[0] = colontmpD__9;
			message__basicZgitops_u181(errorReportLevel_p3, path_p0, T62_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA61_;
			result = NIM_FALSE;
			{
				LA61_:;
			}
			{
				if (colontmpD__9.p && !(colontmpD__9.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__9.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		}
		goto LA57_;
LA59_: ;
		{
			trace__basicZgitops_u1126(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_410, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA53_;
		}
LA57_: ;
		{
			LA53_:;
		}
		{
			if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
			eqdestroy___basicZosutils_u97((&tmpTuple_3));
			if (colontmpD__8.p && !(colontmpD__8.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__8.p);
}
			if (colontmpD__7.p && !(colontmpD__7.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__7.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA2_;
LA51_: ;
LA2_: ;
	T69_[0] = commit_p1.h;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)15), path_p0, T69_, 1, errorReportLevel_p3, T70_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	status_3 = tmpTuple_1.Field1;
	{
		NimStringV2 colontmpD__10;
		NimStringV2 colontmpD__11;
		tyArray__YgExxhfgKcesA5EOUj1MOA T76_;
		NimStringV2 T77_;
		if (!!((status_3 == ((NI)0)))) goto LA73_;
		colontmpD__10.len = 0; colontmpD__10.p = NIM_NIL;
		colontmpD__11.len = 0; colontmpD__11.p = NIM_NIL;
		T77_.len = 0; T77_.p = NIM_NIL;
		colontmpD__10 = dollar___basicZversions_u73(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA75_;
		T77_ = rawNewString(colontmpD__10.len + 26);
appendString((&T77_), TM__woSSp9bWtDECsT5QjOFwmRw_412);
appendString((&T77_), colontmpD__10);
		colontmpD__11 = T77_;
		T76_[0] = colontmpD__11;
		message__basicZgitops_u181(errorReportLevel_p3, path_p0, T76_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA75_;
		result = NIM_FALSE;
		{
			LA75_:;
		}
		{
			if (colontmpD__11.p && !(colontmpD__11.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__11.p);
}
			if (colontmpD__10.p && !(colontmpD__10.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__10.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA71_;
LA73_: ;
	{
		NimStringV2 colontmpD__12;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T82_;
		colontmpD__12.len = 0; colontmpD__12.p = NIM_NIL;
		T82_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_414;
		colontmpD__12 = dollar___basicZversions_u73(commit_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA81_;
		T82_[1] = colontmpD__12;
		trace__basicZgitops_u1126(path_p0, T82_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA81_;
		{
			LA81_:;
		}
		{
			if (colontmpD__12.p && !(colontmpD__12.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__12.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA71_: ;
	{
		NIM_BOOL T87_;
		NimStringV2 colontmpD__13;
		tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_4;
		tyArray__TonP9cxJgj8gXu71dWIyNlA T91_;
		NI subModStatus_1;
		colontmpD_ = slash___stdZpaths_u84(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_416);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T87_ = (NIM_BOOL)0;
		T87_ = fileExists__stdZfiles_u10(colontmpD_);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!T87_) goto LA88_;
		colontmpD__13.len = 0; colontmpD__13.p = NIM_NIL;
		nimZeroMem((void*)(&tmpTuple_4), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
		colontmpD__13 = relativeToWorkspace__basicZcontext_u360(path_p0);
		if (NIM_UNLIKELY(*nimErr_)) goto LA90_;
		notice__basicZgitops_u1160(colontmpD__13, TM__woSSp9bWtDECsT5QjOFwmRw_417, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA90_;
		tmpTuple_4 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)16), path_p0, ((smExtraArgs_1).p) ? (smExtraArgs_1.p->data) : NIM_NIL, smExtraArgs_1.len, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T91_, 0, NIM_TRUE, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA90_;
		subModStatus_1 = tmpTuple_4.Field1;
		{
			if (!!((subModStatus_1 == ((NI)0)))) goto LA94_;
			message__basicZgitops_u181(errorReportLevel_p3, path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_419, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA90_;
			result = NIM_FALSE;
		}
		goto LA92_;
LA94_: ;
		{
			debug__basicZgitops_u1174(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_421, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA90_;
		}
LA92_: ;
		{
			LA90_:;
		}
		{
			eqdestroy___basicZosutils_u97((&tmpTuple_4));
			if (colontmpD__13.p && !(colontmpD__13.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__13.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA88_: ;
	{
		LA1_:;
	}
	{
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___system_u5582(smExtraArgs_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA, versionToCommit__basicZgitops_u795)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw algo_p2, tyObject_VersionInterval__Fo18dECYIXwkOygWPnb8YA* query_p3) {
	tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA result;
	tySequence__ROG4zVH2lrODohp66awvUw allVersions_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyObject_CommitHash__ENSoVMeDKmDIP8obk69cDaA));
	allVersions_1.len = 0; allVersions_1.p = NIM_NIL;
	allVersions_1 = collectTaggedVersions__basicZgitops_u731(path_p0, origin_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	switch (algo_p2) {
	case ((tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw)0):
	{
		result = selectBestCommitMinVer__basicZversions_u5199(((allVersions_1).p) ? (allVersions_1.p->data) : NIM_NIL, allVersions_1.len, query_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	break;
	case ((tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw)1):
	{
		result = selectBestCommitSemVer__basicZversions_u5234(((allVersions_1).p) ? (allVersions_1.p->data) : NIM_NIL, allVersions_1.len, query_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	break;
	case ((tyEnum_ResolutionAlgorithm__EDrRewmAkc38ngHuXBbDaw)2):
	{
		result = selectBestCommitMaxVer__basicZversions_u5212(((allVersions_1).p) ? (allVersions_1.p->data) : NIM_NIL, allVersions_1.len, query_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	break;
	default: __builtin_unreachable();
	}
	{
		LA1_:;
	}
	{
		eqdestroy___basicZversions_u4782(allVersions_1);
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, getRemoteUrl__basicZgitops_u1403)(NimStringV2 path_p0, NimStringV2 origin_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	NimStringV2 result;
	NimStringV2 remote_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	remote_1.len = 0; remote_1.p = NIM_NIL;
	remote_1 = resolveRemoteName__basicZgitops_u65(path_p0, origin_p1, errorReportLevel_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(remote_1.len == ((NI)0))) goto LA4_;
		result = TM__woSSp9bWtDECsT5QjOFwmRw_423;
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
		goto BeforeRet_;
	}
LA4_: ;
	result = getRemoteUrlFor__basicZgitops_u342(path_p0, remote_1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (remote_1.p && !(remote_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(remote_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ, listFiles__basicZgitops_u863)(NimStringV2 path_p0) {
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ result;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 outp_1;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	outp_1.len = 0; outp_1.p = NIM_NIL;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)21), path_p0, T2_, 0, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)1), T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ T8_;
		if (!(status_1 == ((NI)0))) goto LA6_;
		T8_.len = 0; T8_.p = NIM_NIL;
		{
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ colontmp__1;
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ resultX60gensym53__1;
			NI iX60gensym53__1;
			NI T10_;
			colontmp__1.len = 0; colontmp__1.p = NIM_NIL;
			resultX60gensym53__1.len = 0; resultX60gensym53__1.p = NIM_NIL;
			colontmp__1 = nsuSplitLines(outp_1, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			iX60gensym53__1 = ((NI)0);
			T10_ = colontmp__1.len;
			if ((T10_) < ((NI)0) || (T10_) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(T10_, ((NI)0), ((NI)IL64(9223372036854775807))); goto LA1_;
			}
			resultX60gensym53__1 = newSeq__stdZsyncio_u578((T10_));
			{
				NimStringV2* it_1;
				NI i_1;
				NI L_1;
				NI T12_;
				it_1 = (NimStringV2*)0;
				i_1 = ((NI)0);
				T12_ = colontmp__1.len;
				L_1 = T12_;
				{
					while (1) {
						NimStringV2 T15_;
						NI TM__woSSp9bWtDECsT5QjOFwmRw_424;
						if (!(i_1 < L_1)) goto LA14;
						if (i_1 < 0 || i_1 >= colontmp__1.len){ raiseIndexError2(i_1,colontmp__1.len-1); goto LA1_;
						}
						it_1 = (&colontmp__1.p->data[i_1]);
						if (iX60gensym53__1 < 0 || iX60gensym53__1 >= resultX60gensym53__1.len){ raiseIndexError2(iX60gensym53__1,resultX60gensym53__1.len-1); goto LA1_;
						}
						T15_.len = 0; T15_.p = NIM_NIL;
						T15_ = nsuStrip((*it_1), NIM_TRUE, NIM_TRUE, TM__woSSp9bWtDECsT5QjOFwmRw_82);
						if (NIM_UNLIKELY(*nimErr_)) {eqdestroy___system_u281(T15_); goto LA1_;}
						eqsink___system_u2760((&resultX60gensym53__1.p->data[iX60gensym53__1]), T15_);
						if (nimAddInt(iX60gensym53__1, ((NI)1), &TM__woSSp9bWtDECsT5QjOFwmRw_424)) { raiseOverflow(); goto LA1_;
						};
						iX60gensym53__1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_424);
						i_1 += ((NI)1);
						{
							NI T18_;
							T18_ = colontmp__1.len;
							if (!!((T18_ == L_1))) goto LA19_;
							failedAssertImpl__stdZassertions_u95(TM__woSSp9bWtDECsT5QjOFwmRw_425);
							if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
						}
LA19_: ;
					} LA14: ;
				}
			}
			result = resultX60gensym53__1;
			eqdestroy___system_u5582(colontmp__1);
		}
	}
	goto LA4_;
LA6_: ;
	{
		result.len = 0; result.p = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ_Content*) newSeqPayload(0, sizeof(NimStringV2), NIM_ALIGNOF(NimStringV2));
	}
LA4_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw, none__basicZgitops_u2995)(void) {
	tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw result;
	nimZeroMem((void*)(&result), sizeof(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___basicZgitops_u1040)(tyTuple__YD0AUsyqL09aC9bx7rbQtoeA* dest_p0) {
	eqdestroy___basicZversions_u4782((*dest_p0).Field0);
}
N_LIB_PRIVATE N_NIMCALL(tyTuple__YD0AUsyqL09aC9bx7rbQtoeA, listRemoteTags__basicZgitops_u1024)(NimStringV2 path_p0, NimStringV2 url_p1, tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw errorReportLevel_p2) {
	tyTuple__YD0AUsyqL09aC9bx7rbQtoeA result;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA url_2;
	tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA colontmpD_;
	tyTuple__XOVT24GHXwqiEj5GCsEGCA tmpTuple_1;
	NimStringV2 colontmpD__2;
	NimStringV2 outp_1;
	tyArray__YgExxhfgKcesA5EOUj1MOA T2_;
	tyArray__TonP9cxJgj8gXu71dWIyNlA T3_;
	NI status_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyTuple__YD0AUsyqL09aC9bx7rbQtoeA));
	nimZeroMem((void*)(&url_2), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	nimZeroMem((void*)(&colontmpD_), sizeof(tyObject_Uri__MX62yCLGQmnfVYEE3Hjm9cA));
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA));
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	outp_1.len = 0; outp_1.p = NIM_NIL;
	parseUri__pureZuri_u295(url_p1, (&colontmpD_));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	maybeUrlProxy__basicZgitops_u69((&colontmpD_), (&url_2));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD__2 = dollar___pureZuri_u409((&url_2));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T2_[0] = colontmpD__2;
	tmpTuple_1 = exec__basicZgitops_u76(((tyEnum_Command__pHtsYYN9bLzHv7OoMdrwfMg)25), path_p0, T2_, 1, errorReportLevel_p2, T3_, 0, NIM_TRUE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	outp_1 = tmpTuple_1.Field0;
	eqwasMoved___system_u2751((&tmpTuple_1.Field0));
	status_1 = tmpTuple_1.Field1;
	{
		tySequence__ROG4zVH2lrODohp66awvUw colontmp_;
		NIM_BOOL colontmp__2;
		tySequence__ROG4zVH2lrODohp66awvUw blitTmp_1;
		if (!(status_1 == ((NI)0))) goto LA6_;
		colontmp_.len = 0; colontmp_.p = NIM_NIL;
		colontmp_ = parseTaggedVersions__basicZversions_u723(outp_1, NIM_TRUE);
		if (NIM_UNLIKELY(*nimErr_)) goto LA8_;
		colontmp__2 = NIM_TRUE;
		blitTmp_1 = colontmp_;
		eqwasMoved___basicZversions_u4779((&colontmp_));
		result.Field0 = blitTmp_1;
		result.Field1 = colontmp__2;
		{
			LA8_:;
		}
		{
			eqdestroy___basicZversions_u4782(colontmp_);
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA4_;
LA6_: ;
	{
		tySequence__ROG4zVH2lrODohp66awvUw colontmp__3;
		NIM_BOOL colontmp__4;
		tySequence__ROG4zVH2lrODohp66awvUw blitTmp_2;
		colontmp__3.len = 0; colontmp__3.p = NIM_NIL;
		colontmp__3.len = 0; colontmp__3.p = (tySequence__ROG4zVH2lrODohp66awvUw_Content*) newSeqPayload(0, sizeof(tyObject_VersionTag__io9bcihbopiwucKorobyKdg), NIM_ALIGNOF(tyObject_VersionTag__io9bcihbopiwucKorobyKdg));
		colontmp__4 = NIM_FALSE;
		blitTmp_2 = colontmp__3;
		result.Field0 = blitTmp_2;
		result.Field1 = colontmp__4;
	}
LA4_: ;
	{
		LA1_:;
	}
	{
		if (outp_1.p && !(outp_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(outp_1.p);
}
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		eqdestroy___basicZosutils_u97((&tmpTuple_1));
		eqdestroy___pureZuri_u213((&colontmpD_));
		eqdestroy___pureZuri_u213((&url_2));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA, minus___basicZgitops_u3377)(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s1_p0, tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA s2_p1) {
	tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA));
	result = difference__basicZgitops_u3386(s1_p0, s2_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw, some__basicZgitops_u3661)(tyTuple__8c9aE37D67XHNzuQEKrzh5g val_p0) {
	tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw result;
	nimZeroMem((void*)(&result), sizeof(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw));
	result.has = NIM_TRUE;
	result.val = val_p0;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw, hasNewTags__basicZgitops_u1409)(NimStringV2 path_p0, NimStringV2 origin_p1) {
	tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw result;
	tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA localTags_1;
	tySequence__ROG4zVH2lrODohp66awvUw colontmpD_;
	NimStringV2 url_1;
	tyTuple__YD0AUsyqL09aC9bx7rbQtoeA tmpTuple_1;
	tySequence__ROG4zVH2lrODohp66awvUw remoteTagsList_1;
	tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA remoteTags_1;
	NIM_BOOL lsStatus_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyObject_Option__u5DTFMUTRr6ZdRB7BelsKw));
	nimZeroMem((void*)(&localTags_1), sizeof(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA));
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	url_1.len = 0; url_1.p = NIM_NIL;
	nimZeroMem((void*)(&tmpTuple_1), sizeof(tyTuple__YD0AUsyqL09aC9bx7rbQtoeA));
	remoteTagsList_1.len = 0; remoteTagsList_1.p = NIM_NIL;
	nimZeroMem((void*)(&remoteTags_1), sizeof(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA));
	info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_426, 1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD_ = collectTaggedVersions__basicZgitops_u731(path_p0, origin_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5), NIM_TRUE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	localTags_1 = toHashSet__basicZgitops_u1424(((colontmpD_).p) ? (colontmpD_.p->data) : NIM_NIL, colontmpD_.len);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	url_1 = getRemoteUrl__basicZgitops_u1403(path_p0, origin_p1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)2));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(url_1.len == ((NI)0))) goto LA4_;
		result = none__basicZgitops_u2995();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		eqdestroy___basicZgitops_u1640((&remoteTags_1));
		eqdestroy___basicZversions_u4782(remoteTagsList_1);
		eqdestroy___basicZgitops_u1040((&tmpTuple_1));
		if (url_1.p && !(url_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(url_1.p);
}
		eqdestroy___basicZversions_u4782(colontmpD_);
		eqdestroy___basicZgitops_u1640((&localTags_1));
		goto BeforeRet_;
	}
LA4_: ;
	tmpTuple_1 = listRemoteTags__basicZgitops_u1024(path_p0, url_1, ((tyEnum_MsgKind__rc8l2U8dFSLHl1b1Uls9brw)5));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	remoteTagsList_1 = tmpTuple_1.Field0;
	eqwasMoved___basicZversions_u4779((&tmpTuple_1.Field0));
	lsStatus_1 = tmpTuple_1.Field1;
	remoteTags_1 = toHashSet__basicZgitops_u1424(((remoteTagsList_1).p) ? (remoteTagsList_1.p->data) : NIM_NIL, remoteTagsList_1.len);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!!(lsStatus_1)) goto LA8_;
		warn__basicZgitops_u3033(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_428, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		result = none__basicZgitops_u2995();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		eqdestroy___basicZgitops_u1640((&remoteTags_1));
		eqdestroy___basicZversions_u4782(remoteTagsList_1);
		eqdestroy___basicZgitops_u1040((&tmpTuple_1));
		if (url_1.p && !(url_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(url_1.p);
}
		eqdestroy___basicZversions_u4782(colontmpD_);
		eqdestroy___basicZgitops_u1640((&localTags_1));
		goto BeforeRet_;
	}
LA8_: ;
	{
		NIM_BOOL T12_;
		tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA colontmpD__2;
		NimStringV2 colontmpD__3;
		tyArray__pK4u9cQ1bJzH46rrmNu9bPMQ T16_;
		tyTuple__8c9aE37D67XHNzuQEKrzh5g T17_;
		NI T18_;
		NI T19_;
		NI TM__woSSp9bWtDECsT5QjOFwmRw_432;
		T12_ = (NIM_BOOL)0;
		T12_ = lt___basicZgitops_u3053(localTags_1, remoteTags_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!T12_) goto LA13_;
		nimZeroMem((void*)(&colontmpD__2), sizeof(tyObject_HashSet__Uwr6yc54j9cc7mpkQIvCLZA));
		colontmpD__3.len = 0; colontmpD__3.p = NIM_NIL;
		T16_[0] = TM__woSSp9bWtDECsT5QjOFwmRw_431;
		colontmpD__2 = minus___basicZgitops_u3377(remoteTags_1, localTags_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		colontmpD__3 = dollar___basicZgitops_u3535(colontmpD__2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		T16_[1] = colontmpD__3;
		warn__basicZgitops_u3033(path_p0, T16_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		T17_.Field0 = NIM_TRUE;
		T18_ = (NI)0;
		T18_ = len__basicZgitops_u3121(remoteTags_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		T19_ = (NI)0;
		T19_ = len__basicZgitops_u3121(localTags_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		if (nimSubInt(T18_, T19_, &TM__woSSp9bWtDECsT5QjOFwmRw_432)) { raiseOverflow(); goto LA15_;
		};
		T17_.Field1 = (NI)(TM__woSSp9bWtDECsT5QjOFwmRw_432);
		result = some__basicZgitops_u3661(T17_);
		if (NIM_UNLIKELY(*nimErr_)) goto LA15_;
		if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
		eqdestroy___basicZgitops_u1640((&colontmpD__2));
		eqdestroy___basicZgitops_u1640((&remoteTags_1));
		eqdestroy___basicZversions_u4782(remoteTagsList_1);
		eqdestroy___basicZgitops_u1040((&tmpTuple_1));
		if (url_1.p && !(url_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(url_1.p);
}
		eqdestroy___basicZversions_u4782(colontmpD_);
		eqdestroy___basicZgitops_u1640((&localTags_1));
		goto BeforeRet_;
		{
			LA15_:;
		}
		{
			if (colontmpD__3.p && !(colontmpD__3.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__3.p);
}
			eqdestroy___basicZgitops_u1640((&colontmpD__2));
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	goto LA10_;
LA13_: ;
	{
		NI T23_;
		T23_ = (NI)0;
		T23_ = len__basicZgitops_u3121(remoteTags_1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(T23_ == ((NI)0))) goto LA24_;
		info__basicZconfigutils_u114(path_p0, TM__woSSp9bWtDECsT5QjOFwmRw_433, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		result = none__basicZgitops_u2995();
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		eqdestroy___basicZgitops_u1640((&remoteTags_1));
		eqdestroy___basicZversions_u4782(remoteTagsList_1);
		eqdestroy___basicZgitops_u1040((&tmpTuple_1));
		if (url_1.p && !(url_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(url_1.p);
}
		eqdestroy___basicZversions_u4782(colontmpD_);
		eqdestroy___basicZgitops_u1640((&localTags_1));
		goto BeforeRet_;
	}
	goto LA10_;
LA24_: ;
LA10_: ;
	result = some__basicZgitops_u3661(TM__woSSp9bWtDECsT5QjOFwmRw_435);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	eqdestroy___basicZgitops_u1640((&remoteTags_1));
	eqdestroy___basicZversions_u4782(remoteTagsList_1);
	eqdestroy___basicZgitops_u1040((&tmpTuple_1));
	if (url_1.p && !(url_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(url_1.p);
}
	eqdestroy___basicZversions_u4782(colontmpD_);
	eqdestroy___basicZgitops_u1640((&localTags_1));
	goto BeforeRet_;
	{
		LA1_:;
	}
	{
		eqdestroy___basicZgitops_u1640((&remoteTags_1));
		eqdestroy___basicZversions_u4782(remoteTagsList_1);
		eqdestroy___basicZgitops_u1040((&tmpTuple_1));
		if (url_1.p && !(url_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(url_1.p);
}
		eqdestroy___basicZversions_u4782(colontmpD_);
		eqdestroy___basicZgitops_u1640((&localTags_1));
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
