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

#include "nimbase.h"
#include <stdio.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
typedef struct tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw;
typedef struct tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ;
typedef struct NimStrPayload NimStrPayload;
typedef struct NimStringV2 NimStringV2;
typedef struct tyObject_TType__Mr5OLuzzwXOlraK5ByalKg tyObject_TType__Mr5OLuzzwXOlraK5ByalKg;
typedef struct tyObject_TLineInfo__kiDjTapnw5C9b3hMkuXAcnA tyObject_TLineInfo__kiDjTapnw5C9b3hMkuXAcnA;
typedef struct tyObject_TSym__JSAgsmM1rxuWFgHM7Nlxdg tyObject_TSym__JSAgsmM1rxuWFgHM7Nlxdg;
typedef struct tyObject_TIdent__dfGofgHRLZgz9aF6YlFTsqg tyObject_TIdent__dfGofgHRLZgz9aF6YlFTsqg;
typedef struct tySequence__dLTPEqP7th9csUVoVHHIjNw tySequence__dLTPEqP7th9csUVoVHHIjNw;
typedef struct tySequence__dLTPEqP7th9csUVoVHHIjNw_Content tySequence__dLTPEqP7th9csUVoVHHIjNw_Content;
typedef struct tyTuple__kN8up2W6YKc5YA9avn5mV5w tyTuple__kN8up2W6YKc5YA9avn5mV5w;
typedef struct tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ;
typedef struct RootObj RootObj;
typedef struct TNimTypeV2 TNimTypeV2;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
struct tyObject_TLineInfo__kiDjTapnw5C9b3hMkuXAcnA {
	NU16 line;
	NI16 col;
	NI32 fileIndex;
};
typedef NU32 tySet_tyEnum_TNodeFlag__sglT9bUvYWblEf3C9c5ok1QA;
typedef NU8 tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ;
struct tySequence__dLTPEqP7th9csUVoVHHIjNw {
  NI len; tySequence__dLTPEqP7th9csUVoVHHIjNw_Content* p;
};
struct tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ {
	tyObject_TType__Mr5OLuzzwXOlraK5ByalKg* typField;
	tyObject_TLineInfo__kiDjTapnw5C9b3hMkuXAcnA info;
	tySet_tyEnum_TNodeFlag__sglT9bUvYWblEf3C9c5ok1QA flags;
	tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ kind;
union{
	struct {
	NI64 intVal;
} _kind_1;
	struct {
	NF floatVal;
} _kind_2;
	struct {
	NimStringV2 strVal;
} _kind_3;
	struct {
	tyObject_TSym__JSAgsmM1rxuWFgHM7Nlxdg* sym;
} _kind_4;
	struct {
	tyObject_TIdent__dfGofgHRLZgz9aF6YlFTsqg* ident;
} _kind_5;
	struct {
	tySequence__dLTPEqP7th9csUVoVHHIjNw sons;
} _kind_6;
};
};
typedef NU8 tySet_tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ[21];
typedef NU8 tyEnum_TMsgKind__pCKnCkdazBSZAewKQ9a3R5g;
typedef NU8 tyEnum_TErrorHandling__TVDY9cjniDpHSXHIbcThXrQ;
typedef NU16 tySet_tyEnum_TRenderFlag__gDamCxUj0iS9bEaSTAVGRZg;
struct tyTuple__kN8up2W6YKc5YA9avn5mV5w {
	NimStringV2 Field0;
	NI Field1;
	NI Field2;
};
struct tyObject_TIdent__dfGofgHRLZgz9aF6YlFTsqg {
	NI id;
	NimStringV2 s;
	tyObject_TIdent__dfGofgHRLZgz9aF6YlFTsqg* next;
	NI h;
};
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;
};
typedef NU8 tyEnum_TLLStreamKind__Vt32Tvf0nxx4kIGObvTB4w;
typedef struct {
N_NIMCALL_PTR(NI, ClP_0) (tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* s_p0, void* buf_p1, NI bufLen_p2, void* ClE_0);
void* ClE_0;
} tyProc__wlJibQYTL5o48Y4PSwC79ag;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (void* ClE_0);
void* ClE_0;
} tyProc__HzVCwACFYM9cx9aV62PdjtuA;
struct tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ {
	RootObj Sup;
	tyEnum_TLLStreamKind__Vt32Tvf0nxx4kIGObvTB4w kind;
	FILE* f;
	NimStringV2 s;
	NI rd;
	NI wr;
	NI lineOffset;
	tyProc__wlJibQYTL5o48Y4PSwC79ag repl;
	tyProc__HzVCwACFYM9cx9aV62PdjtuA onPrompt;
};
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
struct tySequence__dLTPEqP7th9csUVoVHHIjNw_Content { NI cap; tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* data[SEQ_DECL_SIZE]; };
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ*, getArg__OOZOOZOOZcompilerZfilters_u12)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3);
static N_INLINE(NI, len__OOZOOZOOZcompilerZast_u3206)(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___OOZOOZOOZcompilerZnodekinds_u168)(tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ e_p0);
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldErrorStr)(NimStringV2 f_p0, NimStringV2 discVal_p1);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i_p0, NI n_p1);
N_LIB_PRIVATE N_NIMCALL(void, invalidPragma__OOZOOZOOZcompilerZfilters_u9)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1);
N_LIB_PRIVATE N_NOINLINE(void, liMessage__OOZOOZOOZcompilerZmsgs_u1230)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TLineInfo__kiDjTapnw5C9b3hMkuXAcnA info_p1, tyEnum_TMsgKind__pCKnCkdazBSZAewKQ9a3R5g msg_p2, NimStringV2 arg_p3, tyEnum_TErrorHandling__TVDY9cjniDpHSXHIbcThXrQ eh_p4, tyTuple__kN8up2W6YKc5YA9avn5mV5w* info2_p5, NIM_BOOL isRaw_p6, NIM_BOOL ignoreError_p7);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nsuFormatSingleElem)(NimStringV2 formatstr_p0, NimStringV2 a_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, renderTree__OOZOOZOOZcompilerZrenderer_u56)(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p0, tySet_tyEnum_TRenderFlag__gDamCxUj0iS9bEaSTAVGRZg renderFlags_p1);
N_LIB_PRIVATE N_NOCONV(void, deallocShared)(void* p_p0);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringV2 a_p0, NimStringV2 b_p1);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___OOZOOZOOZcompilerZast_u3273)(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ** dest_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* src_p1);
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_NOINLINE(void, raiseRangeErrorI)(NI64 i_p0, NI64 a_p1, NI64 b_p2);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___OOZOOZOOZcompilerZast_u3270)(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* dest_p0);
N_LIB_PRIVATE N_NIMCALL(void, eqcopy___system_u2754)(NimStringV2* dest_p0, NimStringV2 src_p1);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, strArg__OOZOOZOOZcompilerZfilters_u55)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3, NimStringV2 default_p4);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, boolArg__OOZOOZOOZcompilerZfilters_u71)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3, NIM_BOOL default_p4);
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ*, llStreamOpen__OOZOOZOOZcompilerZllstream_u31)(NimStringV2 data_p0);
N_NIMCALL(NimStringV2, rawNewString)(NI cap_p0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, llStreamReadLine__OOZOOZOOZcompilerZllstream_u454)(tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* s_p0, NimStringV2* line_p1);
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(NIM_BOOL, nsuStartsWith)(NimStringV2 s_p0, NimStringV2 prefix_p1);
N_LIB_PRIVATE N_NIMCALL(void, llStreamWriteln__OOZOOZOOZcompilerZllstream_u486)(tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* s_p0, NimStringV2 data_p1);
N_LIB_PRIVATE N_NIMCALL(void, llStreamClose__OOZOOZOOZcompilerZllstream_u181)(tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* s_p0);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, nsuReplaceStr)(NimStringV2 s_p0, NimStringV2 sub_p1, NimStringV2 by_p2);
static NIM_CONST tySet_tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ TM__TpC7tIfhGAaosc7HIsUuXA_2 = {
0xec, 0xff, 0x7f, 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[62+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_3 = { 62 | NIM_STRLIT_FLAG, "field \'sons\' is not accessible for type \'TNode\' using \'kind = " };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_4 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_5 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_6 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_7 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const struct {
  NI cap; NIM_CHAR data[21+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_8 = { 21 | NIM_STRLIT_FLAG, "\'$1\' not allowed here" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_9 = {21, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_8};
static const struct {
  NI cap; NIM_CHAR data[70+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_11 = { 70 | NIM_STRLIT_FLAG, "/Users/runner/work/nightlies/nightlies/nim-2.2.10/compiler/filters.nim" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_12 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_13 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static NIM_CONST tySet_tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ TM__TpC7tIfhGAaosc7HIsUuXA_14 = {
0x04, 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[63+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_15 = { 63 | NIM_STRLIT_FLAG, "field \'ident\' is not accessible for type \'TNode\' using \'kind = " };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_16 = {63, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_15};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_17 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_18 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_19 = {62, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_3};
static NIM_CONST tySet_tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ TM__TpC7tIfhGAaosc7HIsUuXA_21 = {
0xe0, 0xff, 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[64+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_22 = { 64 | NIM_STRLIT_FLAG, "field \'intVal\' is not accessible for type \'TNode\' using \'kind = " };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_23 = {64, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_22};
static NIM_CONST tySet_tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ TM__TpC7tIfhGAaosc7HIsUuXA_24 = {
0x00, 0x00, 0x70, 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[64+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_25 = { 64 | NIM_STRLIT_FLAG, "field \'strVal\' is not accessible for type \'TNode\' using \'kind = " };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_26 = {64, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_25};
static const struct {
  NI cap; NIM_CHAR data[0+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_27 = { 0 | NIM_STRLIT_FLAG, "" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_28 = {0, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_27};
static const struct {
  NI cap; NIM_CHAR data[10+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_29 = { 10 | NIM_STRLIT_FLAG, "startswith" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_30 = {10, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_29};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_31 = {0, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_27};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_32 = {63, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_15};
static const struct {
  NI cap; NIM_CHAR data[4+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_33 = { 4 | NIM_STRLIT_FLAG, "true" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_34 = {4, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_33};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_35 = {63, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_15};
static const struct {
  NI cap; NIM_CHAR data[5+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_36 = { 5 | NIM_STRLIT_FLAG, "false" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_37 = {5, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_36};
static const struct {
  NI cap; NIM_CHAR data[7+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_38 = { 7 | NIM_STRLIT_FLAG, "leading" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_39 = {7, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_38};
static const struct {
  NI cap; NIM_CHAR data[8+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_40 = { 8 | NIM_STRLIT_FLAG, "trailing" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_41 = {8, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_40};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_42 = {0, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_27};
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__TpC7tIfhGAaosc7HIsUuXA_43 = {
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[3+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_44 = { 3 | NIM_STRLIT_FLAG, "sub" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_45 = {3, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_44};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_46 = {0, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_27};
static const struct {
  NI cap; NIM_CHAR data[2+1];
} TM__TpC7tIfhGAaosc7HIsUuXA_47 = { 2 | NIM_STRLIT_FLAG, "by" };
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_48 = {2, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_47};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_49 = {0, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_27};
static const NimStringV2 TM__TpC7tIfhGAaosc7HIsUuXA_50 = {0, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_27};
static NIM_CONST tyTuple__kN8up2W6YKc5YA9avn5mV5w TM__TpC7tIfhGAaosc7HIsUuXA_10 = {{70, (NimStrPayload*)&TM__TpC7tIfhGAaosc7HIsUuXA_11},
((NI)19),
((NI)12)}
;
extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4198;
static N_INLINE(NI, len__OOZOOZOOZcompilerZast_u3206)(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p0) {
	NI result;
	NI T1_;
{	if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*n_p0).kind))>>3] &(1U<<((NU)(((*n_p0).kind))&7U)))!=0)) 	{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_4, dollar___OOZOOZOOZcompilerZnodekinds_u168((*n_p0).kind)); goto BeforeRet_;
	}
	T1_ = (*n_p0)._kind_6.sons.len;
	result = T1_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (&nimInErrorMode__system_u4198);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, invalidPragma__OOZOOZOOZcompilerZfilters_u9)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1) {
	NimStringV2 colontmpD_;
	NimStringV2 colontmpD__2;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
	colontmpD__2.len = 0; colontmpD__2.p = NIM_NIL;
	colontmpD_ = renderTree__OOZOOZOOZcompilerZrenderer_u56(n_p1, 4);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	colontmpD__2 = nsuFormatSingleElem(TM__TpC7tIfhGAaosc7HIsUuXA_9, colontmpD_);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	liMessage__OOZOOZOOZcompilerZmsgs_u1230(conf_p0, (*n_p1).info, ((tyEnum_TMsgKind__pCKnCkdazBSZAewKQ9a3R5g)17), colontmpD__2, ((tyEnum_TErrorHandling__TVDY9cjniDpHSXHIbcThXrQ)0), (&TM__TpC7tIfhGAaosc7HIsUuXA_10), NIM_FALSE, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (colontmpD__2.p && !(colontmpD__2.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD__2.p);
}
		if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
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(tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ*, getArg__OOZOOZOOZcompilerZfilters_u12)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3) {
	tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = ((tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ*) NIM_NIL);
	{
		if (!((*n_p1).kind >= ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)1) && (*n_p1).kind <= ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)23))) goto LA3_;
		goto BeforeRet_;
	}
LA3_: ;
	{
		NI i_1;
		NI colontmp_;
		NI i_2;
		i_1 = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = len__OOZOOZOOZcompilerZast_u3206(n_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		i_2 = ((NI)1);
		{
			while (1) {
				NI TM__TpC7tIfhGAaosc7HIsUuXA_20;
				if (!(i_2 < colontmp_)) goto LA7;
				i_1 = i_2;
				{
					if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*n_p1).kind))>>3] &(1U<<((NU)(((*n_p1).kind))&7U)))!=0)) 					{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_5, dollar___OOZOOZOOZcompilerZnodekinds_u168((*n_p1).kind)); goto BeforeRet_;
					}
					if (i_1 < 0 || i_1 >= (*n_p1)._kind_6.sons.len){ raiseIndexError2(i_1,(*n_p1)._kind_6.sons.len-1); goto BeforeRet_;
					}
					if (!((*(*n_p1)._kind_6.sons.p->data[i_1]).kind == ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)33))) goto LA10_;
					{
						if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*n_p1).kind))>>3] &(1U<<((NU)(((*n_p1).kind))&7U)))!=0)) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_6, dollar___OOZOOZOOZcompilerZnodekinds_u168((*n_p1).kind)); goto BeforeRet_;
						}
						if (i_1 < 0 || i_1 >= (*n_p1)._kind_6.sons.len){ raiseIndexError2(i_1,(*n_p1)._kind_6.sons.len-1); goto BeforeRet_;
						}
						if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*(*n_p1)._kind_6.sons.p->data[i_1]).kind))>>3] &(1U<<((NU)(((*(*n_p1)._kind_6.sons.p->data[i_1]).kind))&7U)))!=0)) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_7, dollar___OOZOOZOOZcompilerZnodekinds_u168((*(*n_p1)._kind_6.sons.p->data[i_1]).kind)); goto BeforeRet_;
						}
						if (((NI)0) < 0 || ((NI)0) >= (*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.len){ raiseIndexError2(((NI)0),(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.len-1); goto BeforeRet_;
						}
						if (!!(((*(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.p->data[((NI)0)]).kind == ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)2)))) goto LA14_;
						invalidPragma__OOZOOZOOZcompilerZfilters_u9(conf_p0, n_p1);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
LA14_: ;
					{
						NI T18_;
						if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*n_p1).kind))>>3] &(1U<<((NU)(((*n_p1).kind))&7U)))!=0)) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_12, dollar___OOZOOZOOZcompilerZnodekinds_u168((*n_p1).kind)); goto BeforeRet_;
						}
						if (i_1 < 0 || i_1 >= (*n_p1)._kind_6.sons.len){ raiseIndexError2(i_1,(*n_p1)._kind_6.sons.len-1); goto BeforeRet_;
						}
						if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*(*n_p1)._kind_6.sons.p->data[i_1]).kind))>>3] &(1U<<((NU)(((*(*n_p1)._kind_6.sons.p->data[i_1]).kind))&7U)))!=0)) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_13, dollar___OOZOOZOOZcompilerZnodekinds_u168((*(*n_p1)._kind_6.sons.p->data[i_1]).kind)); goto BeforeRet_;
						}
						if (((NI)0) < 0 || ((NI)0) >= (*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.len){ raiseIndexError2(((NI)0),(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.len-1); goto BeforeRet_;
						}
						if (!(((TM__TpC7tIfhGAaosc7HIsUuXA_14[(NU)(((*(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.p->data[((NI)0)]).kind))>>3] &(1U<<((NU)(((*(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.p->data[((NI)0)]).kind))&7U)))!=0))) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_16, dollar___OOZOOZOOZcompilerZnodekinds_u168((*(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.p->data[((NI)0)]).kind)); goto BeforeRet_;
						}
						T18_ = (NI)0;
						T18_ = nsuCmpIgnoreStyle((*(*(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.p->data[((NI)0)])._kind_5.ident).s, name_p2);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						if (!(T18_ == ((NI)0))) goto LA19_;
						if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*n_p1).kind))>>3] &(1U<<((NU)(((*n_p1).kind))&7U)))!=0)) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_17, dollar___OOZOOZOOZcompilerZnodekinds_u168((*n_p1).kind)); goto BeforeRet_;
						}
						if (i_1 < 0 || i_1 >= (*n_p1)._kind_6.sons.len){ raiseIndexError2(i_1,(*n_p1)._kind_6.sons.len-1); goto BeforeRet_;
						}
						if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*(*n_p1)._kind_6.sons.p->data[i_1]).kind))>>3] &(1U<<((NU)(((*(*n_p1)._kind_6.sons.p->data[i_1]).kind))&7U)))!=0)) 						{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_18, dollar___OOZOOZOOZcompilerZnodekinds_u168((*(*n_p1)._kind_6.sons.p->data[i_1]).kind)); goto BeforeRet_;
						}
						if (((NI)1) < 0 || ((NI)1) >= (*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.len){ raiseIndexError2(((NI)1),(*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.len-1); goto BeforeRet_;
						}
						eqcopy___OOZOOZOOZcompilerZast_u3273(&result, (*(*n_p1)._kind_6.sons.p->data[i_1])._kind_6.sons.p->data[((NI)1)]);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						goto BeforeRet_;
					}
LA19_: ;
				}
				goto LA8_;
LA10_: ;
				{
					if (!(i_1 == pos_p3)) goto LA22_;
					if (((TM__TpC7tIfhGAaosc7HIsUuXA_2[(NU)(((*n_p1).kind))>>3] &(1U<<((NU)(((*n_p1).kind))&7U)))!=0)) 					{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_19, dollar___OOZOOZOOZcompilerZnodekinds_u168((*n_p1).kind)); goto BeforeRet_;
					}
					if (i_1 < 0 || i_1 >= (*n_p1)._kind_6.sons.len){ raiseIndexError2(i_1,(*n_p1)._kind_6.sons.len-1); goto BeforeRet_;
					}
					eqcopy___OOZOOZOOZcompilerZast_u3273(&result, (*n_p1)._kind_6.sons.p->data[i_1]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					goto BeforeRet_;
				}
				goto LA8_;
LA22_: ;
LA8_: ;
				if (nimAddInt(i_2, ((NI)1), &TM__TpC7tIfhGAaosc7HIsUuXA_20)) { raiseOverflow(); goto BeforeRet_;
				};
				i_2 = (NI)(TM__TpC7tIfhGAaosc7HIsUuXA_20);
			} LA7: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, charArg__OOZOOZOOZcompilerZfilters_u35)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3, NIM_CHAR default_p4) {
	NIM_CHAR result;
	tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* x_1;
NIM_BOOL oldNimErrFin1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_CHAR)0;
	x_1 = NIM_NIL;
	x_1 = getArg__OOZOOZOOZcompilerZfilters_u12(conf_p0, n_p1, name_p2, pos_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(x_1 == ((tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ*) NIM_NIL))) goto LA4_;
		result = default_p4;
	}
	goto LA2_;
LA4_: ;
	{
		if (!((*x_1).kind == ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)5))) goto LA7_;
		if (!(((TM__TpC7tIfhGAaosc7HIsUuXA_21[(NU)(((*x_1).kind))>>3] &(1U<<((NU)(((*x_1).kind))&7U)))!=0))) 		{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_23, dollar___OOZOOZOOZcompilerZnodekinds_u168((*x_1).kind)); goto LA1_;
		}
		if ((((NI) ((*x_1)._kind_1.intVal))) < ((NI)0) || (((NI) ((*x_1)._kind_1.intVal))) > ((NI)255)){ raiseRangeErrorI(((NI) ((*x_1)._kind_1.intVal)), ((NI)0), ((NI)255)); goto LA1_;
		}
		result = ((NIM_CHAR) ((((NI) ((*x_1)._kind_1.intVal)))));
	}
	goto LA2_;
LA7_: ;
	{
		result = 0;
		invalidPragma__OOZOOZOOZcompilerZfilters_u9(conf_p0, n_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA2_: ;
	{
		LA1_:;
	}
	{
		oldNimErrFin1_ = *nimErr_; *nimErr_ = NIM_FALSE;
		eqdestroy___OOZOOZOOZcompilerZast_u3270(x_1);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		*nimErr_ = oldNimErrFin1_;
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringV2, strArg__OOZOOZOOZcompilerZfilters_u55)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3, NimStringV2 default_p4) {
	NimStringV2 result;
	tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* x_1;
NIM_BOOL oldNimErrFin1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result.len = 0; result.p = NIM_NIL;
	x_1 = NIM_NIL;
	x_1 = getArg__OOZOOZOOZcompilerZfilters_u12(conf_p0, n_p1, name_p2, pos_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(x_1 == ((tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ*) NIM_NIL))) goto LA4_;
		eqcopy___system_u2754((&result), default_p4);
	}
	goto LA2_;
LA4_: ;
	{
		if (!((*x_1).kind >= ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)20) && (*x_1).kind <= ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)22))) goto LA7_;
		if (!(((TM__TpC7tIfhGAaosc7HIsUuXA_24[(NU)(((*x_1).kind))>>3] &(1U<<((NU)(((*x_1).kind))&7U)))!=0))) 		{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_26, dollar___OOZOOZOOZcompilerZnodekinds_u168((*x_1).kind)); goto LA1_;
		}
		eqcopy___system_u2754((&result), (*x_1)._kind_3.strVal);
	}
	goto LA2_;
LA7_: ;
	{
		result = TM__TpC7tIfhGAaosc7HIsUuXA_28;
		invalidPragma__OOZOOZOOZcompilerZfilters_u9(conf_p0, n_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA2_: ;
	{
		LA1_:;
	}
	{
		oldNimErrFin1_ = *nimErr_; *nimErr_ = NIM_FALSE;
		eqdestroy___OOZOOZOOZcompilerZast_u3270(x_1);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		*nimErr_ = oldNimErrFin1_;
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, boolArg__OOZOOZOOZcompilerZfilters_u71)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* n_p1, NimStringV2 name_p2, NI pos_p3, NIM_BOOL default_p4) {
	NIM_BOOL result;
	tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* x_1;
NIM_BOOL oldNimErrFin1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	x_1 = NIM_NIL;
	x_1 = getArg__OOZOOZOOZcompilerZfilters_u12(conf_p0, n_p1, name_p2, pos_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(x_1 == ((tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ*) NIM_NIL))) goto LA4_;
		result = default_p4;
	}
	goto LA2_;
LA4_: ;
	{
		NIM_BOOL T7_;
		NI T9_;
		T7_ = (NIM_BOOL)0;
		T7_ = ((*x_1).kind == ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)2));
		if (!(T7_)) goto LA8_;
		if (!(((TM__TpC7tIfhGAaosc7HIsUuXA_14[(NU)(((*x_1).kind))>>3] &(1U<<((NU)(((*x_1).kind))&7U)))!=0))) 		{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_32, dollar___OOZOOZOOZcompilerZnodekinds_u168((*x_1).kind)); goto LA1_;
		}
		T9_ = (NI)0;
		T9_ = nsuCmpIgnoreStyle((*(*x_1)._kind_5.ident).s, TM__TpC7tIfhGAaosc7HIsUuXA_34);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T7_ = (T9_ == ((NI)0));
LA8_: ;
		if (!T7_) goto LA10_;
		result = NIM_TRUE;
	}
	goto LA2_;
LA10_: ;
	{
		NIM_BOOL T13_;
		NI T15_;
		T13_ = (NIM_BOOL)0;
		T13_ = ((*x_1).kind == ((tyEnum_TNodeKind__Kq5ckzatEHB9a8r7P3H36fQ)2));
		if (!(T13_)) goto LA14_;
		if (!(((TM__TpC7tIfhGAaosc7HIsUuXA_14[(NU)(((*x_1).kind))>>3] &(1U<<((NU)(((*x_1).kind))&7U)))!=0))) 		{ raiseFieldErrorStr(TM__TpC7tIfhGAaosc7HIsUuXA_35, dollar___OOZOOZOOZcompilerZnodekinds_u168((*x_1).kind)); goto LA1_;
		}
		T15_ = (NI)0;
		T15_ = nsuCmpIgnoreStyle((*(*x_1)._kind_5.ident).s, TM__TpC7tIfhGAaosc7HIsUuXA_37);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T13_ = (T15_ == ((NI)0));
LA14_: ;
		if (!T13_) goto LA16_;
		result = NIM_FALSE;
	}
	goto LA2_;
LA16_: ;
	{
		result = NIM_FALSE;
		invalidPragma__OOZOOZOOZcompilerZfilters_u9(conf_p0, n_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA2_: ;
	{
		LA1_:;
	}
	{
		oldNimErrFin1_ = *nimErr_; *nimErr_ = NIM_FALSE;
		eqdestroy___OOZOOZOOZcompilerZast_u3270(x_1);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		*nimErr_ = oldNimErrFin1_;
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ*, filterStrip__OOZOOZOOZcompilerZfilters_u91)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* stdin_p1, NimStringV2 filename_p2, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* call_p3) {
	tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* result;
	NimStringV2 pattern_1;
	NimStringV2 line_1;
	NIM_BOOL leading_1;
	NIM_BOOL trailing_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = NIM_NIL;
	pattern_1.len = 0; pattern_1.p = NIM_NIL;
	line_1.len = 0; line_1.p = NIM_NIL;
	pattern_1 = strArg__OOZOOZOOZcompilerZfilters_u55(conf_p0, call_p3, TM__TpC7tIfhGAaosc7HIsUuXA_30, ((NI)1), TM__TpC7tIfhGAaosc7HIsUuXA_31);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	leading_1 = boolArg__OOZOOZOOZcompilerZfilters_u71(conf_p0, call_p3, TM__TpC7tIfhGAaosc7HIsUuXA_39, ((NI)2), NIM_TRUE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	trailing_1 = boolArg__OOZOOZOOZcompilerZfilters_u71(conf_p0, call_p3, TM__TpC7tIfhGAaosc7HIsUuXA_41, ((NI)3), NIM_TRUE);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	result = llStreamOpen__OOZOOZOOZcompilerZllstream_u31(TM__TpC7tIfhGAaosc7HIsUuXA_42);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	line_1 = rawNewString(((NI)80));
	{
		while (1) {
			NIM_BOOL T4_;
			NimStringV2 stripped_1;
			T4_ = (NIM_BOOL)0;
			T4_ = llStreamReadLine__OOZOOZOOZcompilerZllstream_u454(stdin_p1, (&line_1));
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			if (!T4_) goto LA3;
			stripped_1.len = 0; stripped_1.p = NIM_NIL;
			stripped_1 = nsuStrip(line_1, leading_1, trailing_1, TM__TpC7tIfhGAaosc7HIsUuXA_43);
			if (NIM_UNLIKELY(*nimErr_)) goto LA5_;
			{
				NIM_BOOL T8_;
				T8_ = (NIM_BOOL)0;
				T8_ = (pattern_1.len == ((NI)0));
				if (T8_) goto LA9_;
				T8_ = nsuStartsWith(stripped_1, pattern_1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA5_;
LA9_: ;
				if (!T8_) goto LA10_;
				llStreamWriteln__OOZOOZOOZcompilerZllstream_u486(result, stripped_1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA5_;
			}
			goto LA6_;
LA10_: ;
			{
				llStreamWriteln__OOZOOZOOZcompilerZllstream_u486(result, line_1);
				if (NIM_UNLIKELY(*nimErr_)) goto LA5_;
			}
LA6_: ;
			{
				LA5_:;
			}
			{
				if (stripped_1.p && !(stripped_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(stripped_1.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		} LA3: ;
	}
	llStreamClose__OOZOOZOOZcompilerZllstream_u181(stdin_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (line_1.p && !(line_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(line_1.p);
}
		if (pattern_1.p && !(pattern_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(pattern_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ*, filterReplace__OOZOOZOOZcompilerZfilters_u102)(tyObject_ConfigRefcolonObjectType___WEVIgmckGyO0Rv9cbVqxUQw* conf_p0, tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* stdin_p1, NimStringV2 filename_p2, tyObject_TNode__Ti48YnpfFPqIlDllc6ehaQ* call_p3) {
	tyObject_TLLStream__SBuFBW9b2EpSkuka9b9cYZHgQ* result;
	NimStringV2 sub_1;
	NimStringV2 by_1;
	NimStringV2 line_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = NIM_NIL;
	sub_1.len = 0; sub_1.p = NIM_NIL;
	by_1.len = 0; by_1.p = NIM_NIL;
	line_1.len = 0; line_1.p = NIM_NIL;
	sub_1 = strArg__OOZOOZOOZcompilerZfilters_u55(conf_p0, call_p3, TM__TpC7tIfhGAaosc7HIsUuXA_45, ((NI)1), TM__TpC7tIfhGAaosc7HIsUuXA_46);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		if (!(sub_1.len == ((NI)0))) goto LA4_;
		invalidPragma__OOZOOZOOZcompilerZfilters_u9(conf_p0, call_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA4_: ;
	by_1 = strArg__OOZOOZOOZcompilerZfilters_u55(conf_p0, call_p3, TM__TpC7tIfhGAaosc7HIsUuXA_48, ((NI)2), TM__TpC7tIfhGAaosc7HIsUuXA_49);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	result = llStreamOpen__OOZOOZOOZcompilerZllstream_u31(TM__TpC7tIfhGAaosc7HIsUuXA_50);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	line_1 = rawNewString(((NI)80));
	{
		while (1) {
			NIM_BOOL T8_;
			NimStringV2 colontmpD_;
			T8_ = (NIM_BOOL)0;
			T8_ = llStreamReadLine__OOZOOZOOZcompilerZllstream_u454(stdin_p1, (&line_1));
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
			if (!T8_) goto LA7;
			colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
			colontmpD_ = nsuReplaceStr(line_1, sub_1, by_1);
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
			llStreamWriteln__OOZOOZOOZcompilerZllstream_u486(result, colontmpD_);
			if (NIM_UNLIKELY(*nimErr_)) goto LA9_;
			{
				LA9_:;
			}
			{
				if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		} LA7: ;
	}
	llStreamClose__OOZOOZOOZcompilerZllstream_u181(stdin_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		LA1_:;
	}
	{
		if (line_1.p && !(line_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(line_1.p);
}
		if (by_1.p && !(by_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(by_1.p);
}
		if (sub_1.p && !(sub_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(sub_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
