/* 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/@pstd@senumutils.nim.c.o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@pstd@senumutils.nim.c */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks

#include "nimbase.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;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
typedef NU8 tyEnum_PackageState__INzfBajphYPGcwu72ccy8w;
typedef NimStringV2 tyArray__A2YC0h9cZydgH7zGAndH9bLg[6];
typedef NU8 tyEnum_ReleaseStatus__WQoraXO80GBXtge9ad8aCBg;
typedef NU8 tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww;
typedef NU8 tyEnum_TraversalMode__7oigiLe2XsEgCBvsMzDCZw;
typedef NimStringV2 tyArray__dyW7vpmfeTYw8kX3EXuaJA[3];
typedef NU8 tyEnum_JsonNodeKind__iWE9brhI8kBHUww4QuE4NFA;
typedef NimStringV2 tyArray__hFPV9bffMpPjoz9bsO9crekNg[7];
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___system_u2754)(NimStringV2* dest_p0, NimStringV2 src_p1);
static N_INLINE(NIM_BOOL, nimSubInt)(NI a_p0, NI b_p1, NI* res_p2);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i_p0, NI n_p1);
static const struct {
  NI cap; NIM_CHAR data[14+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_2 = { 14 | NIM_STRLIT_FLAG, "NotInitialized" };
static const struct {
  NI cap; NIM_CHAR data[12+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_3 = { 12 | NIM_STRLIT_FLAG, "LazyDeferred" };
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_4 = { 6 | NIM_STRLIT_FLAG, "DoLoad" };
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_5 = { 5 | NIM_STRLIT_FLAG, "Found" };
static const struct {
  NI cap; NIM_CHAR data[9+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_6 = { 9 | NIM_STRLIT_FLAG, "Processed" };
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_7 = { 5 | NIM_STRLIT_FLAG, "Error" };
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_9 = { 6 | NIM_STRLIT_FLAG, "Normal" };
static const struct {
  NI cap; NIM_CHAR data[13+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_10 = { 13 | NIM_STRLIT_FLAG, "HasBrokenRepo" };
static const struct {
  NI cap; NIM_CHAR data[19+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_11 = { 19 | NIM_STRLIT_FLAG, "HasBrokenNimbleFile" };
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_12 = { 16 | NIM_STRLIT_FLAG, "HasBrokenRelease" };
static const struct {
  NI cap; NIM_CHAR data[20+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_13 = { 20 | NIM_STRLIT_FLAG, "HasUnknownNimbleFile" };
static const struct {
  NI cap; NIM_CHAR data[12+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_14 = { 12 | NIM_STRLIT_FLAG, "HasBrokenDep" };
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_16 = { 8 | NIM_STRLIT_FLAG, "FromNone" };
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_17 = { 8 | NIM_STRLIT_FLAG, "FromHead" };
static const struct {
  NI cap; NIM_CHAR data[10+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_18 = { 10 | NIM_STRLIT_FLAG, "FromGitTag" };
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_19 = { 7 | NIM_STRLIT_FLAG, "FromDep" };
static const struct {
  NI cap; NIM_CHAR data[14+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_20 = { 14 | NIM_STRLIT_FLAG, "FromNimbleFile" };
static const struct {
  NI cap; NIM_CHAR data[12+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_21 = { 12 | NIM_STRLIT_FLAG, "FromLockfile" };
static const struct {
  NI cap; NIM_CHAR data[11+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_23 = { 11 | NIM_STRLIT_FLAG, "AllReleases" };
static const struct {
  NI cap; NIM_CHAR data[16+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_24 = { 16 | NIM_STRLIT_FLAG, "ExplicitVersions" };
static const struct {
  NI cap; NIM_CHAR data[13+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_25 = { 13 | NIM_STRLIT_FLAG, "CurrentCommit" };
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_27 = { 5 | NIM_STRLIT_FLAG, "JNull" };
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_28 = { 5 | NIM_STRLIT_FLAG, "JBool" };
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_29 = { 4 | NIM_STRLIT_FLAG, "JInt" };
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_30 = { 6 | NIM_STRLIT_FLAG, "JFloat" };
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_31 = { 7 | NIM_STRLIT_FLAG, "JString" };
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_32 = { 7 | NIM_STRLIT_FLAG, "JObject" };
static const struct {
  NI cap; NIM_CHAR data[6+1];
} TM__maw2pc4xuFyUqn39bqA2rNQ_33 = { 6 | NIM_STRLIT_FLAG, "JArray" };
N_LIB_PRIVATE NIM_CONST tyArray__A2YC0h9cZydgH7zGAndH9bLg names__basicZdeptypesjson_u11099 = {{14, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_2},
{12, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_3},
{6, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_4},
{5, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_5},
{9, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_6},
{5, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_7}}
;
N_LIB_PRIVATE NIM_CONST tyArray__A2YC0h9cZydgH7zGAndH9bLg names__basicZdeptypesjson_u2303 = {{6, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_9},
{13, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_10},
{19, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_11},
{16, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_12},
{20, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_13},
{12, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_14}}
;
N_LIB_PRIVATE NIM_CONST tyArray__A2YC0h9cZydgH7zGAndH9bLg names__basicZdeptypesjson_u11328 = {{8, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_16},
{8, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_17},
{10, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_18},
{7, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_19},
{14, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_20},
{12, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_21}}
;
N_LIB_PRIVATE NIM_CONST tyArray__dyW7vpmfeTYw8kX3EXuaJA names__basicZdeptypesjson_u13626 = {{11, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_23},
{16, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_24},
{13, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_25}}
;
N_LIB_PRIVATE NIM_CONST tyArray__hFPV9bffMpPjoz9bsO9crekNg names__basicZdeptypesjson_u1125 = {{5, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_27},
{5, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_28},
{4, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_29},
{6, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_30},
{7, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_31},
{7, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_32},
{6, (NimStrPayload*)&TM__maw2pc4xuFyUqn39bqA2rNQ_33}}
;
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;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, symbolName__basicZdeptypesjson_u11094)(tyEnum_PackageState__INzfBajphYPGcwu72ccy8w a_p0) {
	NimStringV2 result;
	NI TM__maw2pc4xuFyUqn39bqA2rNQ_8;
{	result.len = 0; result.p = NIM_NIL;
	if (nimSubInt(a_p0, ((NI)0), &TM__maw2pc4xuFyUqn39bqA2rNQ_8)) { raiseOverflow(); goto BeforeRet_;
	};
	if ((NU)((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_8)) > (NU)(5)){ raiseIndexError2((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_8), 5); goto BeforeRet_;
	}
	eqcopy___system_u2754((&result), names__basicZdeptypesjson_u11099[((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_8))- 0]);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, symbolName__basicZdeptypesjson_u2298)(tyEnum_ReleaseStatus__WQoraXO80GBXtge9ad8aCBg a_p0) {
	NimStringV2 result;
	NI TM__maw2pc4xuFyUqn39bqA2rNQ_15;
{	result.len = 0; result.p = NIM_NIL;
	if (nimSubInt(a_p0, ((NI)0), &TM__maw2pc4xuFyUqn39bqA2rNQ_15)) { raiseOverflow(); goto BeforeRet_;
	};
	if ((NU)((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_15)) > (NU)(5)){ raiseIndexError2((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_15), 5); goto BeforeRet_;
	}
	eqcopy___system_u2754((&result), names__basicZdeptypesjson_u2303[((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_15))- 0]);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, symbolName__basicZdeptypesjson_u11323)(tyEnum_CommitOrigin__tDM8mWEQT3dZtKoOj7Mgww a_p0) {
	NimStringV2 result;
	NI TM__maw2pc4xuFyUqn39bqA2rNQ_22;
{	result.len = 0; result.p = NIM_NIL;
	if (nimSubInt(a_p0, ((NI)0), &TM__maw2pc4xuFyUqn39bqA2rNQ_22)) { raiseOverflow(); goto BeforeRet_;
	};
	if ((NU)((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_22)) > (NU)(5)){ raiseIndexError2((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_22), 5); goto BeforeRet_;
	}
	eqcopy___system_u2754((&result), names__basicZdeptypesjson_u11328[((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_22))- 0]);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, symbolName__basicZdeptypesjson_u13621)(tyEnum_TraversalMode__7oigiLe2XsEgCBvsMzDCZw a_p0) {
	NimStringV2 result;
	NI TM__maw2pc4xuFyUqn39bqA2rNQ_26;
{	result.len = 0; result.p = NIM_NIL;
	if (nimSubInt(a_p0, ((NI)0), &TM__maw2pc4xuFyUqn39bqA2rNQ_26)) { raiseOverflow(); goto BeforeRet_;
	};
	if ((NU)((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_26)) > (NU)(2)){ raiseIndexError2((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_26), 2); goto BeforeRet_;
	}
	eqcopy___system_u2754((&result), names__basicZdeptypesjson_u13626[((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_26))- 0]);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, symbolName__basicZdeptypesjson_u1112)(tyEnum_JsonNodeKind__iWE9brhI8kBHUww4QuE4NFA a_p0) {
	NimStringV2 result;
	NI TM__maw2pc4xuFyUqn39bqA2rNQ_34;
{	result.len = 0; result.p = NIM_NIL;
	if (nimSubInt(a_p0, ((NI)0), &TM__maw2pc4xuFyUqn39bqA2rNQ_34)) { raiseOverflow(); goto BeforeRet_;
	};
	if ((NU)((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_34)) > (NU)(6)){ raiseIndexError2((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_34), 6); goto BeforeRet_;
	}
	eqcopy___system_u2754((&result), names__basicZdeptypesjson_u1125[((NI)(TM__maw2pc4xuFyUqn39bqA2rNQ_34))- 0]);
	}BeforeRet_: ;
	return result;
}
