/* 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@sobjectdollar.nim.c.o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@pstd@sobjectdollar.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 tyObject_SatVarInfo__mu7IJStcZItpNnt7O9cujJQ tyObject_SatVarInfo__mu7IJStcZItpNnt7O9cujJQ;
typedef struct tyObject_PackagecolonObjectType___oq9cbJmLUyLo2l9clmDFeVSA tyObject_PackagecolonObjectType___oq9cbJmLUyLo2l9clmDFeVSA;
typedef struct tyObject_PackageVersioncolonObjectType___nkWxN1qoImjRSFLA34DlGg tyObject_PackageVersioncolonObjectType___nkWxN1qoImjRSFLA34DlGg;
typedef struct tyObject_NimbleReleasecolonObjectType___Cd1woUEuIWSParVQIsOkuw tyObject_NimbleReleasecolonObjectType___Cd1woUEuIWSParVQIsOkuw;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
struct tyObject_SatVarInfo__mu7IJStcZItpNnt7O9cujJQ {
	tyObject_PackagecolonObjectType___oq9cbJmLUyLo2l9clmDFeVSA* pkg;
	tyObject_PackageVersioncolonObjectType___nkWxN1qoImjRSFLA34DlGg* version;
	tyObject_NimbleReleasecolonObjectType___Cd1woUEuIWSParVQIsOkuw* release;
	NimStringV2 feature;
};
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_NIMCALL(void, prepareAdd)(NimStringV2* s_p0, NI addLen_p1);
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__depgraphs_u12638)(NimStringV2* s_p0, tyObject_PackagecolonObjectType___oq9cbJmLUyLo2l9clmDFeVSA* x_p1);
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__dependencies_u11805)(NimStringV2* s_p0, tyObject_PackageVersioncolonObjectType___nkWxN1qoImjRSFLA34DlGg* x_p1);
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__stdZprivateZoscommon_u119)(NimStringV2* s_p0, NimStringV2 x_p1);
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_2 = { 1 | NIM_STRLIT_FLAG, "(" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_3 = {1, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_2};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_4 = { 2 | NIM_STRLIT_FLAG, ", " };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_5 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_4};
static const struct {
  NI cap; NIM_CHAR data[3+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_6 = { 3 | NIM_STRLIT_FLAG, "pkg" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_7 = {3, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_6};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_8 = { 2 | NIM_STRLIT_FLAG, ": " };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_9 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_8};
static const struct {
  NI cap; NIM_CHAR data[3+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_10 = { 3 | NIM_STRLIT_FLAG, "nil" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_11 = {3, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_10};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_12 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_4};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_13 = { 7 | NIM_STRLIT_FLAG, "version" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_14 = {7, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_13};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_15 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_8};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_16 = {3, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_10};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_17 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_4};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_18 = { 7 | NIM_STRLIT_FLAG, "release" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_19 = {7, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_18};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_20 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_8};
static const struct {
  NI cap; NIM_CHAR data[3+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_21 = { 3 | NIM_STRLIT_FLAG, "..." };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_22 = {3, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_21};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_23 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_4};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_24 = { 7 | NIM_STRLIT_FLAG, "feature" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_25 = {7, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_24};
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_26 = {2, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_8};
static const struct {
  NI cap; NIM_CHAR data[1+1];
} TM__US7tUPSVHwyWbwv9cB5DrpQ_27 = { 1 | NIM_STRLIT_FLAG, ")" };
static const NimStringV2 TM__US7tUPSVHwyWbwv9cB5DrpQ_28 = {1, (NimStrPayload*)&TM__US7tUPSVHwyWbwv9cB5DrpQ_27};
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_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___depgraphs_u12606)(tyObject_SatVarInfo__mu7IJStcZItpNnt7O9cujJQ* x_p0) {
	NimStringV2 result;
	NI countX60gensym149__1;
	result = TM__US7tUPSVHwyWbwv9cB5DrpQ_3;
	countX60gensym149__1 = ((NI)0);
	{
		if (!NIM_TRUE) goto LA3_;
		{
			if (!(((NI)0) < countX60gensym149__1)) goto LA7_;
			prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_5);
		}
LA7_: ;
		prepareAdd((&result), 3);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_7);
		prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_9);
		countX60gensym149__1 += ((NI)1);
		{
			if (!((*x_p0).pkg == 0)) goto LA11_;
			prepareAdd((&result), 3);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_11);
		}
		goto LA9_;
LA11_: ;
		{
			addQuoted__depgraphs_u12638((&result), (*x_p0).pkg);
		}
LA9_: ;
	}
LA3_: ;
	{
		if (!NIM_TRUE) goto LA16_;
		{
			if (!(((NI)0) < countX60gensym149__1)) goto LA20_;
			prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_12);
		}
LA20_: ;
		prepareAdd((&result), 7);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_14);
		prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_15);
		countX60gensym149__1 += ((NI)1);
		{
			if (!((*x_p0).version == 0)) goto LA24_;
			prepareAdd((&result), 3);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_16);
		}
		goto LA22_;
LA24_: ;
		{
			addQuoted__dependencies_u11805((&result), (*x_p0).version);
		}
LA22_: ;
	}
LA16_: ;
	{
		if (!NIM_TRUE) goto LA29_;
		{
			if (!(((NI)0) < countX60gensym149__1)) goto LA33_;
			prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_17);
		}
LA33_: ;
		prepareAdd((&result), 7);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_19);
		prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_20);
		countX60gensym149__1 += ((NI)1);
		prepareAdd((&result), 3);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_22);
	}
LA29_: ;
	{
		if (!NIM_TRUE) goto LA37_;
		{
			if (!(((NI)0) < countX60gensym149__1)) goto LA41_;
			prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_23);
		}
LA41_: ;
		prepareAdd((&result), 7);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_25);
		prepareAdd((&result), 2);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_26);
		countX60gensym149__1 += ((NI)1);
		addQuoted__stdZprivateZoscommon_u119((&result), (*x_p0).feature);
	}
LA37_: ;
	prepareAdd((&result), 1);
appendString((&result), TM__US7tUPSVHwyWbwv9cB5DrpQ_28);
	return result;
}
