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

#include "nimbase.h"
#include <math.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_ValueError__YUzEEs8pGqG7cYmcRoc5rw tyObject_ValueError__YUzEEs8pGqG7cYmcRoc5rw;
typedef struct tyObject_CatchableError__liO6E8JNJNTVmf9cnXKZiug tyObject_CatchableError__liO6E8JNJNTVmf9cnXKZiug;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct TNimTypeV2 TNimTypeV2;
typedef struct tySequence__3EvzHGO0xyXGnJBUggwfKQ tySequence__3EvzHGO0xyXGnJBUggwfKQ;
typedef struct tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content;
typedef struct tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
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;
};
struct tyObject_CatchableError__liO6E8JNJNTVmf9cnXKZiug {
	Exception Sup;
};
struct tyObject_ValueError__YUzEEs8pGqG7cYmcRoc5rw {
	tyObject_CatchableError__liO6E8JNJNTVmf9cnXKZiug Sup;
};
struct tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw {
	NCSTRING procname;
	NI line;
	NCSTRING filename;
};
struct tySequence__3EvzHGO0xyXGnJBUggwfKQ_Content { NI cap; tyObject_StackTraceEntry__lcKzdyiD6sm3eeh28rx7fw data[SEQ_DECL_SIZE]; };
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i_p0, NI64 a_p1, NI64 b_p2);
N_LIB_PRIVATE N_NIMCALL(void, setLengthStrV2)(NimStringV2* s_p0, NI newLen_p1);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i_p0, NI n_p1);
static N_INLINE(void, nimPrepareStrMutationV2)(NimStringV2* s_p0);
N_LIB_PRIVATE N_NIMCALL(void, nimPrepareStrMutationImpl__system_u2493)(NimStringV2* s_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, npuParseBiggestInt)(NIM_CHAR* s_p0, NI s_p0Len_0, NI64* number_p1);
N_LIB_PRIVATE N_NIMCALL(NI, rawParseInt__pureZparseutils_u388)(NIM_CHAR* s_p0, NI s_p0Len_0, NI64* b_p1);
static N_INLINE(NIM_BOOL, nimSubInt)(NI a_p0, NI b_p1, NI* res_p2);
static N_INLINE(NIM_BOOL, nimAddInt64)(NI64 a_p0, NI64 b_p1, NI64* res_p2);
static N_INLINE(NIM_BOOL, nimMulInt64)(NI64 a_p0, NI64 b_p1, NI64* res_p2);
static N_INLINE(NF, toBiggestFloat__system_u1708)(NI64 i_p0);
static N_INLINE(NF, abs__system_u5188)(NF x_p0);
static N_INLINE(NIM_BOOL, nimSubInt64)(NI64 a_p0, NI64 b_p1, NI64* res_p2);
N_LIB_PRIVATE N_NOINLINE(void, integerOutOfRangeError__pureZparseutils_u325)(void);
N_LIB_PRIVATE N_NIMCALL(void*, nimNewObj)(NI size_p0, NI alignment_p1);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e_p0, NCSTRING ename_p1, NCSTRING procname_p2, NCSTRING filename_p3, NI line_p4);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError4)(NI l1_p0, NI h1_p1, NI h2_p2);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseFloat)(NIM_CHAR* s_p0, NI s_p0Len_0, NF* number_p1);
N_NIMCALL(NI, nimParseBiggestFloat)(NIM_CHAR* s_p0, NI s_p0Len_0, NF* number_p1);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseBiggestUInt)(NIM_CHAR* s_p0, NI s_p0Len_0, NU64* number_p1);
N_LIB_PRIVATE N_NIMCALL(NI, rawParseUInt__pureZparseutils_u514)(NIM_CHAR* s_p0, NI s_p0Len_0, NU64* b_p1);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseInt)(NIM_CHAR* s_p0, NI s_p0Len_0, NI* number_p1);
N_LIB_PRIVATE N_NIMCALL(NI, skipIgnoreCase__pureZparseutils_u163)(NIM_CHAR* s_p0, NI s_p0Len_0, NIM_CHAR* token_p1, NI token_p1Len_0);
static N_INLINE(NIM_CHAR, toLower__pureZparseutils_u10)(NIM_CHAR c_p0);
N_LIB_PRIVATE N_NIMCALL(NI, parseSaturatedNatural__pureZparseutils_u459)(NIM_CHAR* s_p0, NI s_p0Len_0, NI* b_p1);
static N_INLINE(NIM_BOOL, nimMulInt)(NI a_p0, NI b_p1, NI* res_p2);
static N_INLINE(NF, toFloat__system_u1705)(NI i_p0);
N_LIB_PRIVATE N_NIMCALL(NI, parseIdent__pureZparseutils_u56)(NIM_CHAR* s_p0, NI s_p0Len_0, NimStringV2* ident_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqsink___system_u2760)(NimStringV2* dest_p0, NimStringV2 src_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, substr__system_u9068)(NIM_CHAR* a_p0, NI a_p0Len_0);
extern TNimTypeV2 NTIv2__YUzEEs8pGqG7cYmcRoc5rw_;
static const struct {
  NI cap; NIM_CHAR data[37+1];
} TM__vI9aZNKIcImom6dDyKXW1ZA_9 = { 37 | NIM_STRLIT_FLAG, "Parsed integer outside of valid range" };
static const NimStringV2 TM__vI9aZNKIcImom6dDyKXW1ZA_10 = {37, (NimStrPayload*)&TM__vI9aZNKIcImom6dDyKXW1ZA_9};
extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4198;
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(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;
}
N_LIB_PRIVATE N_NIMCALL(void, fastSubstr__pureZparseutils_u225)(NIM_CHAR* s_p0, NI s_p0Len_0, NimStringV2* token_p1, NI length_p2) {
{	if ((length_p2) < ((NI)0) || (length_p2) > ((NI)IL64(9223372036854775807))){ raiseRangeErrorI(length_p2, ((NI)0), ((NI)IL64(9223372036854775807))); goto BeforeRet_;
	}
	setLengthStrV2((&(*token_p1)), (length_p2));
	{
		NI i_1;
		NI i_2;
		i_1 = (NI)0;
		i_2 = ((NI)0);
		{
			while (1) {
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_2;
				if (!(i_2 < length_p2)) goto LA3;
				i_1 = i_2;
				if (i_1 < 0 || i_1 >= (*token_p1).len){ raiseIndexError2(i_1,(*token_p1).len-1); goto BeforeRet_;
				}
				nimPrepareStrMutationV2((&(*token_p1)));
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				(*token_p1).p->data[i_1] = s_p0[i_1];
				if (nimAddInt(i_2, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_2)) { raiseOverflow(); goto BeforeRet_;
				};
				i_2 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_2);
			} LA3: ;
		}
	}
	}BeforeRet_: ;
}
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(NIM_BOOL, nimAddInt64)(NI64 a_p0, NI64 b_p1, NI64* res_p2) {
	NIM_BOOL result;
	NI64 r_1;
	result = (NIM_BOOL)0;
	r_1 = ((NI64) ((NU64)((NU64)(((NU64) (a_p0))) + (NU64)(((NU64) (b_p1))))));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (IL64(0) <= (NI64)(r_1 ^ a_p0));
		if (T3_) goto LA4_;
		T3_ = (IL64(0) <= (NI64)(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(NF, toBiggestFloat__system_u1708)(NI64 i_p0) {
	NF result;
	result = ((NF) (i_p0));
	return result;
}
static N_INLINE(NF, abs__system_u5188)(NF x_p0) {
	NF result;
	result = (NF)0;
	result = fabs(x_p0);
	return result;
}
static N_INLINE(NIM_BOOL, nimMulInt64)(NI64 a_p0, NI64 b_p1, NI64* res_p2) {
	NIM_BOOL result;
	NI64 r_1;
	NF floatProd_1;
	NF T1_;
	NF T2_;
	NF resAsFloat_1;
	result = (NIM_BOOL)0;
	r_1 = ((NI64) ((NU64)((NU64)(((NU64) (a_p0))) * (NU64)(((NU64) (b_p1))))));
	T1_ = (NF)0;
	T1_ = toBiggestFloat__system_u1708(a_p0);
	T2_ = (NF)0;
	T2_ = toBiggestFloat__system_u1708(b_p1);
	floatProd_1 = ((NF)(T1_) * (NF)(T2_));
	resAsFloat_1 = toBiggestFloat__system_u1708(r_1);
	{
		if (!(resAsFloat_1 == floatProd_1)) goto LA5_;
		(*res_p2) = r_1;
	}
	goto LA3_;
LA5_: ;
	{
		{
			NF T10_;
			NF T11_;
			T10_ = (NF)0;
			T10_ = abs__system_u5188(((NF)(resAsFloat_1) - (NF)(floatProd_1)));
			T11_ = (NF)0;
			T11_ = abs__system_u5188(floatProd_1);
			if (!(((NF)(32.0) * (NF)(T10_)) <= T11_)) goto LA12_;
			(*res_p2) = r_1;
		}
		goto LA8_;
LA12_: ;
		{
			result = NIM_TRUE;
		}
LA8_: ;
	}
LA3_: ;
	return result;
}
static N_INLINE(NIM_BOOL, nimSubInt64)(NI64 a_p0, NI64 b_p1, NI64* res_p2) {
	NIM_BOOL result;
	NI64 r_1;
	result = (NIM_BOOL)0;
	r_1 = ((NI64) ((NU64)((NU64)(((NU64) (a_p0))) - (NU64)(((NU64) (b_p1))))));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (IL64(0) <= (NI64)(r_1 ^ a_p0));
		if (T3_) goto LA4_;
		T3_ = (IL64(0) <= (NI64)(r_1 ^ (NI64)((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_NOINLINE(void, integerOutOfRangeError__pureZparseutils_u325)(void) {
	tyObject_ValueError__YUzEEs8pGqG7cYmcRoc5rw* T1_;
{	T1_ = NIM_NIL;
	T1_ = (tyObject_ValueError__YUzEEs8pGqG7cYmcRoc5rw*) nimNewObj(sizeof(tyObject_ValueError__YUzEEs8pGqG7cYmcRoc5rw), NIM_ALIGNOF(tyObject_ValueError__YUzEEs8pGqG7cYmcRoc5rw));
	(*T1_).Sup.Sup.Sup.m_type = (&NTIv2__YUzEEs8pGqG7cYmcRoc5rw_);
	(*T1_).Sup.Sup.name = "ValueError";
	(*T1_).Sup.Sup.message = TM__vI9aZNKIcImom6dDyKXW1ZA_10;
	(*T1_).Sup.Sup.parent = ((Exception*) NIM_NIL);
	raiseExceptionEx((Exception*)T1_, "ValueError", "integerOutOfRangeError", "parseutils.nim", 429);
goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (&nimInErrorMode__system_u4198);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, rawParseInt__pureZparseutils_u388)(NIM_CHAR* s_p0, NI s_p0Len_0, NI64* b_p1) {
	NI result;
	NI64 sign_1;
	NI i_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	sign_1 = IL64(-1);
	i_1 = ((NI)0);
	{
		if (!(i_1 < s_p0Len_0)) goto LA3_;
		{
			NI TM__vI9aZNKIcImom6dDyKXW1ZA_3;
			if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
			}
			if (!((NU8)(s_p0[i_1]) == (NU8)(43))) goto LA7_;
			if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_3)) { raiseOverflow(); goto BeforeRet_;
			};
			i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_3);
		}
		goto LA5_;
LA7_: ;
		{
			NI TM__vI9aZNKIcImom6dDyKXW1ZA_4;
			if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
			}
			if (!((NU8)(s_p0[i_1]) == (NU8)(45))) goto LA10_;
			if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_4)) { raiseOverflow(); goto BeforeRet_;
			};
			i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_4);
			sign_1 = IL64(1);
		}
		goto LA5_;
LA10_: ;
LA5_: ;
	}
LA3_: ;
	{
		NIM_BOOL T14_;
		T14_ = (NIM_BOOL)0;
		T14_ = (i_1 < s_p0Len_0);
		if (!(T14_)) goto LA15_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T14_ = (((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)));
LA15_: ;
		if (!T14_) goto LA16_;
		(*b_p1) = IL64(0);
		{
			while (1) {
				NIM_BOOL T20_;
				NI c_1;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_5;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_11;
				T20_ = (NIM_BOOL)0;
				T20_ = (i_1 < s_p0Len_0);
				if (!(T20_)) goto LA21_;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				T20_ = (((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)));
LA21_: ;
				if (!T20_) goto LA19;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				if (nimSubInt(((NU8)(s_p0[i_1])), ((NI)48), &TM__vI9aZNKIcImom6dDyKXW1ZA_5)) { raiseOverflow(); goto BeforeRet_;
				};
				c_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_5);
				{
					NI64 TM__vI9aZNKIcImom6dDyKXW1ZA_6;
					NI64 TM__vI9aZNKIcImom6dDyKXW1ZA_7;
					NI64 TM__vI9aZNKIcImom6dDyKXW1ZA_8;
					if (nimAddInt64((IL64(-9223372036854775807) - IL64(1)), ((NI64) (c_1)), &TM__vI9aZNKIcImom6dDyKXW1ZA_6)) { raiseOverflow(); goto BeforeRet_;
					};
					if (!((NI64)(((NI64)(TM__vI9aZNKIcImom6dDyKXW1ZA_6)) / (IL64(10))) <= (*b_p1))) goto LA24_;
					if (nimMulInt64((*b_p1), IL64(10), &TM__vI9aZNKIcImom6dDyKXW1ZA_7)) { raiseOverflow(); goto BeforeRet_;
					};
					if (nimSubInt64((NI64)(TM__vI9aZNKIcImom6dDyKXW1ZA_7), ((NI64) (c_1)), &TM__vI9aZNKIcImom6dDyKXW1ZA_8)) { raiseOverflow(); goto BeforeRet_;
					};
					(*b_p1) = (NI64)(TM__vI9aZNKIcImom6dDyKXW1ZA_8);
				}
				goto LA22_;
LA24_: ;
				{
					integerOutOfRangeError__pureZparseutils_u325();
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
LA22_: ;
				if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_11)) { raiseOverflow(); goto BeforeRet_;
				};
				i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_11);
				{
					while (1) {
						NIM_BOOL T29_;
						NI TM__vI9aZNKIcImom6dDyKXW1ZA_12;
						T29_ = (NIM_BOOL)0;
						T29_ = (i_1 < s_p0Len_0);
						if (!(T29_)) goto LA30_;
						if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
						}
						T29_ = ((NU8)(s_p0[i_1]) == (NU8)(95));
LA30_: ;
						if (!T29_) goto LA28;
						if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_12)) { raiseOverflow(); goto BeforeRet_;
						};
						i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_12);
					} LA28: ;
				}
			} LA19: ;
		}
		{
			NIM_BOOL T33_;
			T33_ = (NIM_BOOL)0;
			T33_ = (sign_1 == IL64(-1));
			if (!(T33_)) goto LA34_;
			T33_ = ((*b_p1) == (IL64(-9223372036854775807) - IL64(1)));
LA34_: ;
			if (!T33_) goto LA35_;
			integerOutOfRangeError__pureZparseutils_u325();
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA31_;
LA35_: ;
		{
			NI64 TM__vI9aZNKIcImom6dDyKXW1ZA_13;
			if (nimMulInt64((*b_p1), sign_1, &TM__vI9aZNKIcImom6dDyKXW1ZA_13)) { raiseOverflow(); goto BeforeRet_;
			};
			(*b_p1) = (NI64)(TM__vI9aZNKIcImom6dDyKXW1ZA_13);
			result = i_1;
		}
LA31_: ;
	}
	goto LA12_;
LA16_: ;
	{
		result = ((NI)0);
	}
LA12_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, npuParseBiggestInt)(NIM_CHAR* s_p0, NI s_p0Len_0, NI64* number_p1) {
	NI result;
	NI64 res_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	res_1 = IL64(0);
	result = rawParseInt__pureZparseutils_u388(s_p0, s_p0Len_0, (&res_1));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		if (!!((result == ((NI)0)))) goto LA3_;
		(*number_p1) = res_1;
	}
LA3_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseBiggestInt__pureZparseutils_u976)(NimStringV2 s_p0, NI64* number_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = npuParseBiggestInt((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, number_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, npuParseFloat)(NIM_CHAR* s_p0, NI s_p0Len_0, NF* number_p1) {
	NI result;
	NF bf_1;
	bf_1 = 0.0;
	result = nimParseBiggestFloat(s_p0, s_p0Len_0, (&bf_1));
	{
		if (!!((result == ((NI)0)))) goto LA3_;
		(*number_p1) = bf_1;
	}
LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseFloat__pureZparseutils_u1006)(NimStringV2 s_p0, NF* number_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = npuParseFloat((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, number_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, rawParseUInt__pureZparseutils_u514)(NIM_CHAR* s_p0, NI s_p0Len_0, NU64* b_p1) {
	NI result;
	NU64 res_1;
	NI i_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	res_1 = 0ULL;
	i_1 = ((NI)0);
	{
		NIM_BOOL T3_;
		NIM_BOOL T4_;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_14;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_15;
		T3_ = (NIM_BOOL)0;
		T4_ = (NIM_BOOL)0;
		if (nimSubInt(s_p0Len_0, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_14)) { raiseOverflow(); goto BeforeRet_;
		};
		T4_ = (i_1 < (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_14));
		if (!(T4_)) goto LA5_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T4_ = ((NU8)(s_p0[i_1]) == (NU8)(45));
LA5_: ;
		T3_ = T4_;
		if (!(T3_)) goto LA6_;
		if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_15)) { raiseOverflow(); goto BeforeRet_;
		};
		if ((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_15) < 0 || (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_15) >= s_p0Len_0){ raiseIndexError2((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_15),s_p0Len_0-1); goto BeforeRet_;
		}
		T3_ = (((NU8)(s_p0[(NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_15)])) >= ((NU8)(48)) && ((NU8)(s_p0[(NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_15)])) <= ((NU8)(57)));
LA6_: ;
		if (!T3_) goto LA7_;
		integerOutOfRangeError__pureZparseutils_u325();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
LA7_: ;
	{
		NIM_BOOL T11_;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_16;
		T11_ = (NIM_BOOL)0;
		T11_ = (i_1 < s_p0Len_0);
		if (!(T11_)) goto LA12_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T11_ = ((NU8)(s_p0[i_1]) == (NU8)(43));
LA12_: ;
		if (!T11_) goto LA13_;
		if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_16)) { raiseOverflow(); goto BeforeRet_;
		};
		i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_16);
	}
LA13_: ;
	{
		NIM_BOOL T17_;
		T17_ = (NIM_BOOL)0;
		T17_ = (i_1 < s_p0Len_0);
		if (!(T17_)) goto LA18_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T17_ = (((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)));
LA18_: ;
		if (!T17_) goto LA19_;
		(*b_p1) = 0ULL;
		{
			while (1) {
				NIM_BOOL T23_;
				NU64 prev_1;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_17;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_18;
				T23_ = (NIM_BOOL)0;
				T23_ = (i_1 < s_p0Len_0);
				if (!(T23_)) goto LA24_;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				T23_ = (((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)));
LA24_: ;
				if (!T23_) goto LA22;
				{
					if (!((NU64)(1844674407370955161ULL) < (NU64)(res_1))) goto LA27_;
					integerOutOfRangeError__pureZparseutils_u325();
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
LA27_: ;
				res_1 = (NU64)((NU64)(res_1) * (NU64)(10ULL));
				prev_1 = res_1;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				if (nimSubInt(((NU8)(s_p0[i_1])), ((NI)48), &TM__vI9aZNKIcImom6dDyKXW1ZA_17)) { raiseOverflow(); goto BeforeRet_;
				};
				res_1 += ((NU64) ((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_17)));
				{
					if (!((NU64)(res_1) < (NU64)(prev_1))) goto LA31_;
					integerOutOfRangeError__pureZparseutils_u325();
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
LA31_: ;
				if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_18)) { raiseOverflow(); goto BeforeRet_;
				};
				i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_18);
				{
					while (1) {
						NIM_BOOL T35_;
						NI TM__vI9aZNKIcImom6dDyKXW1ZA_19;
						T35_ = (NIM_BOOL)0;
						T35_ = (i_1 < s_p0Len_0);
						if (!(T35_)) goto LA36_;
						if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
						}
						T35_ = ((NU8)(s_p0[i_1]) == (NU8)(95));
LA36_: ;
						if (!T35_) goto LA34;
						if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_19)) { raiseOverflow(); goto BeforeRet_;
						};
						i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_19);
					} LA34: ;
				}
			} LA22: ;
		}
		(*b_p1) = res_1;
		result = i_1;
	}
	goto LA15_;
LA19_: ;
	{
		result = ((NI)0);
	}
LA15_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, npuParseBiggestUInt)(NIM_CHAR* s_p0, NI s_p0Len_0, NU64* number_p1) {
	NI result;
	NU64 res_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	res_1 = 0ULL;
	result = rawParseUInt__pureZparseutils_u514(s_p0, s_p0Len_0, (&res_1));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		if (!!((result == ((NI)0)))) goto LA3_;
		(*number_p1) = res_1;
	}
LA3_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseBiggestUInt__pureZparseutils_u991)(NimStringV2 s_p0, NU64* number_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = npuParseBiggestUInt((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, number_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, npuParseInt)(NIM_CHAR* s_p0, NI s_p0Len_0, NI* number_p1) {
	NI result;
	NI64 res_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	res_1 = IL64(0);
	result = npuParseBiggestInt(s_p0, s_p0Len_0, (&res_1));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		if (!!((result == ((NI)0)))) goto LA3_;
		(*number_p1) = ((NI) (res_1));
	}
LA3_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseInt__pureZparseutils_u981)(NimStringV2 s_p0, NI* number_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = npuParseInt((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, number_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_CHAR, toLower__pureZparseutils_u10)(NIM_CHAR c_p0) {
	NIM_CHAR result;
	NIM_CHAR T1_;
{	result = (NIM_CHAR)0;
	T1_ = (NIM_CHAR)0;
	{
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_20;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_21;
		if (!(((NU8)(c_p0)) >= ((NU8)(65)) && ((NU8)(c_p0)) <= ((NU8)(90)))) goto LA4_;
		if (nimSubInt(((NU8)(c_p0)), ((NI)65), &TM__vI9aZNKIcImom6dDyKXW1ZA_20)) { raiseOverflow(); goto BeforeRet_;
		};
		if (nimAddInt((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_20), ((NI)97), &TM__vI9aZNKIcImom6dDyKXW1ZA_21)) { raiseOverflow(); goto BeforeRet_;
		};
		if (((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_21)) < ((NI)0) || ((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_21)) > ((NI)255)){ raiseRangeErrorI((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_21), ((NI)0), ((NI)255)); goto BeforeRet_;
		}
		result = ((NIM_CHAR) (((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_21))));
	}
	goto LA2_;
LA4_: ;
	{
		result = c_p0;
	}
LA2_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, skipIgnoreCase__pureZparseutils_u163)(NIM_CHAR* s_p0, NI s_p0Len_0, NIM_CHAR* token_p1, NI token_p1Len_0) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = ((NI)0);
	{
		while (1) {
			NIM_BOOL T3_;
			NIM_BOOL T4_;
			NIM_CHAR T7_;
			NIM_CHAR T8_;
			NI TM__vI9aZNKIcImom6dDyKXW1ZA_22;
			T3_ = (NIM_BOOL)0;
			T4_ = (NIM_BOOL)0;
			T4_ = (result < s_p0Len_0);
			if (!(T4_)) goto LA5_;
			T4_ = (result < token_p1Len_0);
LA5_: ;
			T3_ = T4_;
			if (!(T3_)) goto LA6_;
			if (result < 0 || result >= s_p0Len_0){ raiseIndexError2(result,s_p0Len_0-1); goto BeforeRet_;
			}
			T7_ = (NIM_CHAR)0;
			T7_ = toLower__pureZparseutils_u10(s_p0[result]);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (result < 0 || result >= token_p1Len_0){ raiseIndexError2(result,token_p1Len_0-1); goto BeforeRet_;
			}
			T8_ = (NIM_CHAR)0;
			T8_ = toLower__pureZparseutils_u10(token_p1[result]);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T3_ = ((NU8)(T7_) == (NU8)(T8_));
LA6_: ;
			if (!T3_) goto LA2;
			if (nimAddInt(result, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_22)) { raiseOverflow(); goto BeforeRet_;
			};
			result = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_22);
		} LA2: ;
	}
	{
		if (!!((result == token_p1Len_0))) goto LA11_;
		result = ((NI)0);
	}
LA11_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, skipIgnoreCase__pureZparseutils_u926)(NimStringV2 s_p0, NimStringV2 token_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = skipIgnoreCase__pureZparseutils_u163((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, ((token_p1).p) ? (token_p1.p->data) : NIM_NIL, token_p1.len);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NF, toFloat__system_u1705)(NI i_p0) {
	NF result;
	result = ((NF) (i_p0));
	return result;
}
static N_INLINE(NIM_BOOL, nimMulInt)(NI a_p0, NI b_p1, NI* res_p2) {
	NIM_BOOL result;
	NI r_1;
	NF floatProd_1;
	NF T1_;
	NF T2_;
	NF resAsFloat_1;
	result = (NIM_BOOL)0;
	r_1 = ((NI) ((NU)((NU64)(((NU) (a_p0))) * (NU64)(((NU) (b_p1))))));
	T1_ = (NF)0;
	T1_ = toFloat__system_u1705(a_p0);
	T2_ = (NF)0;
	T2_ = toFloat__system_u1705(b_p1);
	floatProd_1 = ((NF)(T1_) * (NF)(T2_));
	resAsFloat_1 = toFloat__system_u1705(r_1);
	{
		if (!(resAsFloat_1 == floatProd_1)) goto LA5_;
		(*res_p2) = r_1;
	}
	goto LA3_;
LA5_: ;
	{
		{
			NF T10_;
			NF T11_;
			T10_ = (NF)0;
			T10_ = abs__system_u5188(((NF)(resAsFloat_1) - (NF)(floatProd_1)));
			T11_ = (NF)0;
			T11_ = abs__system_u5188(floatProd_1);
			if (!(((NF)(32.0) * (NF)(T10_)) <= T11_)) goto LA12_;
			(*res_p2) = r_1;
		}
		goto LA8_;
LA12_: ;
		{
			result = NIM_TRUE;
		}
LA8_: ;
	}
LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseSaturatedNatural__pureZparseutils_u459)(NIM_CHAR* s_p0, NI s_p0Len_0, NI* b_p1) {
	NI result;
	NI i_1;
{	result = (NI)0;
	i_1 = ((NI)0);
	{
		NIM_BOOL T3_;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_23;
		T3_ = (NIM_BOOL)0;
		T3_ = (i_1 < s_p0Len_0);
		if (!(T3_)) goto LA4_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T3_ = ((NU8)(s_p0[i_1]) == (NU8)(43));
LA4_: ;
		if (!T3_) goto LA5_;
		if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_23)) { raiseOverflow(); goto BeforeRet_;
		};
		i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_23);
	}
LA5_: ;
	{
		NIM_BOOL T9_;
		T9_ = (NIM_BOOL)0;
		T9_ = (i_1 < s_p0Len_0);
		if (!(T9_)) goto LA10_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T9_ = (((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)));
LA10_: ;
		if (!T9_) goto LA11_;
		(*b_p1) = ((NI)0);
		{
			while (1) {
				NIM_BOOL T15_;
				NI c_1;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_24;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_28;
				T15_ = (NIM_BOOL)0;
				T15_ = (i_1 < s_p0Len_0);
				if (!(T15_)) goto LA16_;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				T15_ = (((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)));
LA16_: ;
				if (!T15_) goto LA14;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				if (nimSubInt(((NU8)(s_p0[i_1])), ((NI)48), &TM__vI9aZNKIcImom6dDyKXW1ZA_24)) { raiseOverflow(); goto BeforeRet_;
				};
				c_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_24);
				{
					NI TM__vI9aZNKIcImom6dDyKXW1ZA_25;
					NI TM__vI9aZNKIcImom6dDyKXW1ZA_26;
					NI TM__vI9aZNKIcImom6dDyKXW1ZA_27;
					if (nimSubInt(((NI)IL64(9223372036854775807)), c_1, &TM__vI9aZNKIcImom6dDyKXW1ZA_25)) { raiseOverflow(); goto BeforeRet_;
					};
					if (!((*b_p1) <= (NI)(((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_25)) / (((NI)10))))) goto LA19_;
					if (nimMulInt((*b_p1), ((NI)10), &TM__vI9aZNKIcImom6dDyKXW1ZA_26)) { raiseOverflow(); goto BeforeRet_;
					};
					if (nimAddInt((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_26), c_1, &TM__vI9aZNKIcImom6dDyKXW1ZA_27)) { raiseOverflow(); goto BeforeRet_;
					};
					(*b_p1) = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_27);
				}
				goto LA17_;
LA19_: ;
				{
					(*b_p1) = ((NI)IL64(9223372036854775807));
				}
LA17_: ;
				if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_28)) { raiseOverflow(); goto BeforeRet_;
				};
				i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_28);
				{
					while (1) {
						NIM_BOOL T24_;
						NI TM__vI9aZNKIcImom6dDyKXW1ZA_29;
						T24_ = (NIM_BOOL)0;
						T24_ = (i_1 < s_p0Len_0);
						if (!(T24_)) goto LA25_;
						if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
						}
						T24_ = ((NU8)(s_p0[i_1]) == (NU8)(95));
LA25_: ;
						if (!T24_) goto LA23;
						if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_29)) { raiseOverflow(); goto BeforeRet_;
						};
						i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_29);
					} LA23: ;
				}
			} LA14: ;
		}
		result = i_1;
	}
	goto LA7_;
LA11_: ;
	{
		result = ((NI)0);
	}
LA7_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseSaturatedNatural__pureZparseutils_u986)(NimStringV2 s_p0, NI* b_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = parseSaturatedNatural__pureZparseutils_u459((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, b_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseIdent__pureZparseutils_u56)(NIM_CHAR* s_p0, NI s_p0Len_0, NimStringV2* ident_p1) {
	NI result;
	NI i_1;
{	result = (NI)0;
	i_1 = ((NI)0);
	{
		NIM_BOOL T3_;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_30;
		NI TM__vI9aZNKIcImom6dDyKXW1ZA_32;
		NimStringV2 T11_;
		T3_ = (NIM_BOOL)0;
		T3_ = (i_1 < s_p0Len_0);
		if (!(T3_)) goto LA4_;
		if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
		}
		T3_ = (((NU8)(s_p0[i_1])) >= ((NU8)(97)) && ((NU8)(s_p0[i_1])) <= ((NU8)(122)) || ((NU8)(s_p0[i_1])) >= ((NU8)(65)) && ((NU8)(s_p0[i_1])) <= ((NU8)(90)) || ((NU8)(s_p0[i_1])) == ((NU8)(95)));
LA4_: ;
		if (!T3_) goto LA5_;
		if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_30)) { raiseOverflow(); goto BeforeRet_;
		};
		i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_30);
		{
			while (1) {
				NIM_BOOL T9_;
				NI TM__vI9aZNKIcImom6dDyKXW1ZA_31;
				T9_ = (NIM_BOOL)0;
				T9_ = (i_1 < s_p0Len_0);
				if (!(T9_)) goto LA10_;
				if (i_1 < 0 || i_1 >= s_p0Len_0){ raiseIndexError2(i_1,s_p0Len_0-1); goto BeforeRet_;
				}
				T9_ = (((NU8)(s_p0[i_1])) >= ((NU8)(97)) && ((NU8)(s_p0[i_1])) <= ((NU8)(122)) || ((NU8)(s_p0[i_1])) >= ((NU8)(65)) && ((NU8)(s_p0[i_1])) <= ((NU8)(90)) || ((NU8)(s_p0[i_1])) >= ((NU8)(48)) && ((NU8)(s_p0[i_1])) <= ((NU8)(57)) || ((NU8)(s_p0[i_1])) == ((NU8)(95)));
LA10_: ;
				if (!T9_) goto LA8;
				if (nimAddInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_31)) { raiseOverflow(); goto BeforeRet_;
				};
				i_1 = (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_31);
			} LA8: ;
		}
		if (nimSubInt(i_1, ((NI)1), &TM__vI9aZNKIcImom6dDyKXW1ZA_32)) { raiseOverflow(); goto BeforeRet_;
		};
		if ((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_32)-((NI)0) != -1 && (((NI)0) < 0 || ((NI)0) >= s_p0Len_0 || (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_32) < 0 || (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_32) >= s_p0Len_0)){ raiseIndexError4(((NI)0), (NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_32), s_p0Len_0); goto BeforeRet_;
		}
		T11_.len = 0; T11_.p = NIM_NIL;
		T11_ = substr__system_u9068((NIM_CHAR*)(s_p0)+(((NI)0)), ((NI)(TM__vI9aZNKIcImom6dDyKXW1ZA_32))-(((NI)0))+1);
		eqsink___system_u2760((&(*ident_p1)), T11_);
		result = i_1;
	}
	goto LA1_;
LA5_: ;
	{
		result = ((NI)0);
	}
LA1_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, parseIdent__pureZparseutils_u903)(NimStringV2 s_p0, NimStringV2* ident_p1, NI start_p2) {
	NI result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	if ((s_p0.len-1)-start_p2 != -1 && (start_p2 < 0 || start_p2 >= s_p0.len || (s_p0.len-1) < 0 || (s_p0.len-1) >= s_p0.len)){ raiseIndexError4(start_p2, (s_p0.len-1), s_p0.len); goto BeforeRet_;
	}
	result = parseIdent__pureZparseutils_u56((((s_p0).p) ? ((NIM_CHAR*)s_p0.p->data+(start_p2)) : NIM_NIL), ((s_p0.len-1))-(start_p2)+1, ident_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
