/* Generated by Nim Compiler v1.3.5 */
/*   (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

/* section: NIM_merge_HEADERS */

#include "nimbase.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <string.h>
#include <setjmp.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

/* section: NIM_merge_FRAME_DEFINES */
#define nimfr_(x, y)
#define nimln_(x, y)

/* section: NIM_merge_FORWARD_TYPES */
typedef struct tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg;
typedef struct Exception Exception;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
typedef struct tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w;
typedef struct tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ;
typedef struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ;
typedef struct tySequence__aNpJjaoUowCQc7fBn3wtDQ tySequence__aNpJjaoUowCQc7fBn3wtDQ;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A;
typedef struct tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg;
typedef struct RootObj RootObj;
typedef struct NimStringDesc NimStringDesc;
typedef struct TSafePoint TSafePoint;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
typedef struct GcFrameHeader GcFrameHeader;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA;
typedef struct tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ;
typedef struct tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA;
typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg;
typedef struct tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ;
typedef struct tyObject_Thread__aCkJjuuA9audHPimgL5uPkg tyObject_Thread__aCkJjuuA9audHPimgL5uPkg;
typedef struct tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw;
typedef struct tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw;
typedef struct tyObject_ToFreeQueue__5COJP8EWIaAuXvZlDbQZmw tyObject_ToFreeQueue__5COJP8EWIaAuXvZlDbQZmw;
typedef struct tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg;
typedef struct tyTuple__eqKX08KMOzzMwkfJUXhLpw tyTuple__eqKX08KMOzzMwkfJUXhLpw;
typedef struct tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g;
typedef struct tySequence__4eQHGndY6XBYpFOH09apV8Q tySequence__4eQHGndY6XBYpFOH09apV8Q;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw;
typedef struct tySequence__qwqHTkRvwhrRyENtudHQ7g tySequence__qwqHTkRvwhrRyENtudHQ7g;
typedef struct tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag;
typedef struct tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ;
typedef struct tyObject_XmlNodeObj__X79bE2j9a1V7tizbx9blALudQ tyObject_XmlNodeObj__X79bE2j9a1V7tizbx9blALudQ;
typedef struct tySequence__9adZzcOGzsbgOQfLQZInF8Q tySequence__9adZzcOGzsbgOQfLQZInF8Q;
typedef struct tySequence__AjV3cEUgs0Y9c7dCt9aItdIA tySequence__AjV3cEUgs0Y9c7dCt9aItdIA;
typedef struct tySequence__phjbYJtsbOIAYa9be34hhZg tySequence__phjbYJtsbOIAYa9be34hhZg;
typedef struct tySequence__Oy5XceZ6t0fE9a50ltafOpg tySequence__Oy5XceZ6t0fE9a50ltafOpg;
typedef struct tyTuple__oX5InXzfMaDJhIOZ39aPhDg tyTuple__oX5InXzfMaDJhIOZ39aPhDg;
typedef struct tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw;
typedef struct tyObject_PDispatchercolonObjectType___mNiwh37MfaAP9cG4kqT6kpg tyObject_PDispatchercolonObjectType___mNiwh37MfaAP9cG4kqT6kpg;
typedef struct tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w;

/* section: NIM_merge_TYPES */
typedef NF tyArray__iV2wVpdhi9coq9cstlcqapXg[2001];
struct tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg {
tyArray__iV2wVpdhi9coq9cstlcqapXg tls;
};
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__9axCnCRMUx32AHzFgBrzSMg) (Exception* e);
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
typedef N_NIMCALL_PTR(void, tyProc__NFmM6mqUOVW3cJg4yvk8Fw) (Exception* e);
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {
NI size;
NI align;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {
void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {
NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SPr7N6UKfuF549bNPiUvSRw[256];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {
tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {
tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {
NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {
NI minLargeObj;
NI maxLargeObj;
tyArray__SPr7N6UKfuF549bNPiUvSRw freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {
NI collections;
NI maxThreshold;
NI maxStackSize;
NI freedObjects;
};
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
CRITICAL_SECTION lock;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
NI gcThreadId;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
};
typedef tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* tyUncheckedArray__qYl1ErvQvkPpq9bTvm2UvTg[1];
struct tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w {
NI prevSize;
NI size;
};
struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ {
  tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w Sup;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* next;
tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* prev;
tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* freeList;
NI free;
NI acc;
NIM_ALIGN(16) NU8 data[SEQ_DECL_SIZE];
};
typedef NI8 tyArray__mkmEeKAWtk2yS9bBb1lUWXA[256];
struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg {
  tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w Sup;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* next;
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* prev;
NIM_ALIGN(16) NU8 data[SEQ_DECL_SIZE];
};
struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw {
NI size;
NI acc;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* next;
};
typedef NU tyArray__VqSA39cBDWnwnJySTumCdjw[8];
struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw {
tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* next;
NI key;
tyArray__VqSA39cBDWnwnJySTumCdjw bits;
};
struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ {
NI Field0;
NI Field1;
};
struct tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ {
tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* next;
NI zeroField;
};
struct TGenericSeq {
NI len;
NI reserved;
};
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (void* ClE_0);
void* ClE_0;
} tyProc__HzVCwACFYM9cx9aV62PdjtuA;
struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A {
void* Field0;
tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg* Field1;
};
struct RootObj {
TNimType* m_type;
};
struct tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg {
  RootObj Sup;
};
typedef NU8 tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ;
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {
NI refcount;
TNimType* typ;
};
typedef void* tyArray__Rrw59cMvNu8cDA9cQDh4v2oA[100];
struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg {
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* next;
NI dataLen;
tyArray__Rrw59cMvNu8cDA9cQDh4v2oA d;
};
typedef NU8 tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_NIMCALL_PTR(void, tyProc__W6IXMh2CA4X1rFYGjUb4yg) (NimStringDesc* msg);
struct Exception {
  RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};
typedef tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ tyArray__9aTRall1siQT9bXabu2aKXUg[3500];
typedef NIM_CHAR tyArray__4y4exD1dAnu89atYV5jeSuw[250];
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA {
  Exception Sup;
};
struct tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
NI32 errorCode;
};
typedef N_NIMCALL_PTR(void, Finalizer) (void* self);
struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA {
  Exception Sup;
};
struct tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA {
  tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ {
  tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA Sup;
};
struct tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg {
  tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA Sup;
};
struct tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ {
  tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
typedef N_NIMCALL_PTR(void, tyProc__nSqh6BBL9cSEu9bcR48Z72QA) (tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw* arg);
struct tyObject_Thread__aCkJjuuA9audHPimgL5uPkg {
tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg* core;
NI sys;
tyProc__nSqh6BBL9cSEu9bcR48Z72QA dataFn;
tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw* data;
};
struct tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw {
NI c;
CRITICAL_SECTION L;
NI counter;
};
typedef N_NIMCALL_PTR(void, tyProc__fhqfcnDhIcLpBpSTVsWEZg) (void* thread, void* args);
typedef void* tyArray__2PWyF6nokyTyhzmcY3ON3w[128];
struct tyObject_ToFreeQueue__5COJP8EWIaAuXvZlDbQZmw {
NI len;
CRITICAL_SECTION lock;
tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw empty;
tyArray__2PWyF6nokyTyhzmcY3ON3w data;
};
struct tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw {
tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw taskArrived;
tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw taskStarted;
tyProc__fhqfcnDhIcLpBpSTVsWEZg f;
void* data;
NIM_BOOL ready;
NIM_BOOL initialized;
NIM_BOOL shutdown;
tyObject_ToFreeQueue__5COJP8EWIaAuXvZlDbQZmw q;
tyObject_Semaphore__sx9abLHOwgGDBH9bpoqw2ezw readyForTask;
};
typedef N_STDCALL_PTR(NI32, tyProc__ah5wcFv3UG20t2vgXBy0Fg) (void* x);
typedef N_STDCALL_PTR(NI, tyProc__jc40GBUDal8eAxynRASEHA) (void* lpThreadAttributes, NI32 dwStackSize, tyProc__ah5wcFv3UG20t2vgXBy0Fg lpStartAddress, void* lpParameter, NI32 dwCreationFlags, NI32* lpThreadId);
struct tyTuple__eqKX08KMOzzMwkfJUXhLpw {
void* Field0;
void* Field1;
};
typedef tyTuple__eqKX08KMOzzMwkfJUXhLpw tyArray__LZ6VIxbN559biiZQVaUyyvA[16777215];
struct tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg {
NI counter;
NI max;
tyArray__LZ6VIxbN559biiZQVaUyyvA data;
};
typedef NIM_CHAR tyArray__gpc2RrLEcWgv7ONpLYNHOw[2001];
typedef N_CLOSURE_PTR(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_38) (void);
struct tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g {
  tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;
};
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag {
  tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw Sup;
};
typedef struct {
N_NIMCALL_PTR(NimStringDesc*, ClP_0) (NimStringDesc* identity, void* ClE_0);
void* ClE_0;
} tyProc__oFHfEKFsiYTMAy9a42cSiKw;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (NimStringDesc* hint, tyTuple__UV3llMMYFckfui8YMBuUZA* Result, void* ClE_0);
void* ClE_0;
} tyProc__lYMtBEH0vEMRzoDaCw5CJg;
struct tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ {
  RootObj Sup;
tyProc__oFHfEKFsiYTMAy9a42cSiKw serverGetPskFunc;
tyProc__lYMtBEH0vEMRzoDaCw5CJg clientGetPskFunc;
};
typedef NIM_CHAR tyArray__eVNFTutn6un5gcq48fQLdg[65];
typedef NF tyArray__yp9a149boki9cCCWgfXI0Ip4A[23];
typedef NIM_CHAR tyArray__PGLh8drTnaWr3s1qUUSq2Q[500];
struct tyTuple__oX5InXzfMaDJhIOZ39aPhDg {
NimStringDesc* Field0;
NimStringDesc* Field1;
NIM_CHAR Field2;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* Field3;
};
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyProc__HzVCwACFYM9cx9aV62PdjtuA cbproc, void* ClE_0);
void* ClE_0;
} tyProc__VHS3NdmbwcdcZKmKV1JWhw;

/* section: NIM_merge_SEQ_TYPES */
struct tySequence__aNpJjaoUowCQc7fBn3wtDQ {
  TGenericSeq Sup;
  tyProc__HzVCwACFYM9cx9aV62PdjtuA data[SEQ_DECL_SIZE];
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
  TGenericSeq Sup;
  tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__4eQHGndY6XBYpFOH09apV8Q {
  TGenericSeq Sup;
  tyTuple__UV3llMMYFckfui8YMBuUZA data[SEQ_DECL_SIZE];
};
struct tySequence__qwqHTkRvwhrRyENtudHQ7g {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
struct tySequence__AjV3cEUgs0Y9c7dCt9aItdIA {
  TGenericSeq Sup;
  tyObject_XmlNodeObj__X79bE2j9a1V7tizbx9blALudQ* data[SEQ_DECL_SIZE];
};
struct tySequence__9adZzcOGzsbgOQfLQZInF8Q {
  TGenericSeq Sup;
  tySequence__AjV3cEUgs0Y9c7dCt9aItdIA* data[SEQ_DECL_SIZE];
};
struct tySequence__phjbYJtsbOIAYa9be34hhZg {
  TGenericSeq Sup;
  tySequence__sM4lkSb7zS6F7OVMvW9cffQ* data[SEQ_DECL_SIZE];
};
struct tySequence__Oy5XceZ6t0fE9a50ltafOpg {
  TGenericSeq Sup;
  tyTuple__oX5InXzfMaDJhIOZ39aPhDg data[SEQ_DECL_SIZE];
};
typedef struct {tyProc__9axCnCRMUx32AHzFgBrzSMg localRaiseHook__EIvMhANBvB9cp2Ezvt29cADg;
NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA;
tySequence__aNpJjaoUowCQc7fBn3wtDQ* threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw;
NI threadId__wzrdPYhtL9czkCWS4o9an9cRw;
TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw;
TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
GcFrameHeader* gcFramePtr__ot48iojqko9aFxGhyjjjVaA;
tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw* utcInstance__oeKVHn4dFpBJO35HhEkelw;
tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw* localInstance__cLtN9cK9bCe6IPhJ3UFNLNKA;
NIM_BOOL envComputed__LLyFo9bsdu1ZXMDvAe8DhrQ;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* environment__mlhK49b6YMgc9cgrcYkKq9a3g;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* ownArgv__WVJ54JSHy7VxacV39bwBPFA;
NIM_BOOL ownParsedArgv__9btHydaUC5pNXxitEZsyzIg;
tyProc__VHS3NdmbwcdcZKmKV1JWhw callSoonProc__9b9b4iUSd60RO2UqC52ifJ6A;
tyObject_PDispatchercolonObjectType___mNiwh37MfaAP9cG4kqT6kpg* gDisp__yIbBArLUsg2pBJkilx4yvg;
tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* defaultSslContext__3GZQajZtKdLpqTTN2RjTzw;
NIM_BOOL isSlave__t9a8wsVVRYqGEKhg1vb49b3g;
NIM_BOOL pyThreadFrameInited__0LBR4zzVR5uWvgtv8SrMjg;
NIM_BOOL gcInited__uuy3PWTwb5gov9ao9bXJYBPg;
} NimThreadVars;

/* section: NIM_merge_PROC_HEADERS */
N_NOCONV(NI, NimThreadVarsSize)(void);
N_LIB_PRIVATE N_NIMCALL(void, initGC__amVlU9ajqZ06ujoesRBHcDg)(void);
static N_INLINE(void*, GetThreadLocalVars)(void);
N_LIB_PRIVATE N_NIMCALL(void*, threadVarGetValue__O8VJSmwa3WY6y9bP6Ht9b7hw)(NI32 dwTlsIndex);
N_LIB_PRIVATE N_NIMCALL(void, init__wKM37ZoL6WtPOU9bn6Ug18A)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, NI cap);
N_LIB_PRIVATE N_NOCONV(void*, alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg)(NI size);
N_LIB_PRIVATE N_NIMCALL(void*, alloc0__UxtcZ3QOXKsB7mMchxUf9cg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size);
N_LIB_PRIVATE N_NIMCALL(void*, alloc__UxtcZ3QOXKsB7mMchxUf9cg_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size);
N_LIB_PRIVATE N_NIMCALL(void*, rawAlloc__mE4QEVyMvGRVliDWDngZCQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI requestedSize);
static N_INLINE(NI, roundup__ix09bNPnFKmnm9c9bTyF5mHpAsystem)(NI x, NI v);
N_LIB_PRIVATE N_NIMCALL(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*, getSmallChunk__0ixBBlKB5QN59bxrmztRmCw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getBigChunk__stlXHMKRKFIGOvq8t4ynRQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
static N_INLINE(void, mappingSearch__x0o9aLs0rybi5SymOs9ciTLQsystem)(NI* r, NI* fl, NI* sl);
static N_INLINE(NI, msbit__NR8XkKls428clCUr82szCgsystem)(NU32 x);
static N_INLINE(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, findSuitableBlock__asVN3MOMG2rBAqS7SmK0xQsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI* fl, NI* sl);
static N_INLINE(NI, lsbit__NR8XkKls428clCUr82szCg_2system)(NU32 x);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, requestOsChunks__stlXHMKRKFIGOvq8t4ynRQ_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
static N_INLINE(void*, osAllocPages__HMOhWrY1QMa49a2BcJwSDZQsystem)(NI size);
N_LIB_PRIVATE N_NOINLINE(void, raiseOutOfMem__mMRdr4sgmnykA9aWeM9aDZlw)(void);
static N_INLINE(void, rawWrite)(FILE* f, NCSTRING s);
static N_INLINE(NI, nimCStrLen)(NCSTRING a);
static N_INLINE(void*, osTryAllocPages__HMOhWrY1QMa49a2BcJwSDZQ_2system)(NI size);
static N_INLINE(void, incCurrMem__JPUl8p4328ZL9bXnEtbaZcAsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes);
N_LIB_PRIVATE N_NIMCALL(void, addHeapLink__LIRFHBfc9aX3C5dmMmLnpwA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* p, NI size);
N_LIB_PRIVATE N_NIMCALL(void*, llAlloc__ovw3NMWXeZ0Qi9cGYq1E2Tg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
static N_INLINE(void, zeroMem__FsvhfMqbswETmyMWtamDewsystem)(void* p, NI size);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__9b5xR7VBZVwQDvk5Nr9bDKdQ)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key);
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetGet__O3FRrWKKUdi8uRTGxiPdIg)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key);
static N_INLINE(NI, pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c);
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(void, splitChunk__BqFVAuadgXfvAiq8B9cBjqQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, splitChunk2__gSNzk4aToVCSTE1opfEv2A)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size);
static N_INLINE(void, updatePrevSize__9b5Bu9akw7RalDC4isB4QVbgsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI prevSize);
static N_INLINE(NIM_BOOL, isAccessible__EZspgz843pJ9adnD0ZpJO6wsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p);
static N_INLINE(NI, pageIndex__cMO7rAWQ0KzYXPVgB0ZR3gsystem)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, incl__tSnfTXv7GxXoDyFDm9bvzqg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key);
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetPut__Cw86Sj6YgVACdT20AkWjcA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key);
N_LIB_PRIVATE N_NIMCALL(void, addChunkToMatrix__YSJZJgeU5UU2aa8GNvs3WA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b);
static N_INLINE(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, mappingInsert__SRLfEtcWb2dn0ht85HEwbQsystem)(NI r);
static N_INLINE(void, setBit__I4TSeZGFKfrVTL1oqiweCgsystem)(NI nr, NU32* dest);
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix2__XFftAAJrARamxGOKUFQy9aw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b, NI fl, NI sl);
static N_INLINE(void, clearBit__I4TSeZGFKfrVTL1oqiweCg_2system)(NI nr, NU32* dest);
static N_INLINE(void, listAdd__G9cCXZ1ju0DgzqrqBg9acaKQsystem)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c);
static N_INLINE(void, listRemove__G9cCXZ1ju0DgzqrqBg9acaKQ_2system)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c);
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getHugeChunk__stlXHMKRKFIGOvq8t4ynRQ_3)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size);
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, getBottom__3mqnVBLDtYhZizqw9bvHELA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(void, add__3D9aOyz4rDquPZKBlqn0xig)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI key, NI upperBound);
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, allocAvlNode__Du8pyfSfDLyN9aoS2IcBsHg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI key, NI upperBound);
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(void, skew__NJo8pxZdXEAIa7wkHls9cOw)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t);
N_LIB_PRIVATE N_NIMCALL(void, split__NJo8pxZdXEAIa7wkHls9cOw_2)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t);
N_LIB_PRIVATE N_NIMCALL(void, init__rlyb6Y54ONML4HcId0P2OA)(tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw* t);
static N_INLINE(NI, atomicInc__v6qORsZ9azlHHhOL1JYACRAsystem)(NI* memLoc, NI x);
static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_LIB_PRIVATE N_NIMCALL(void, doOperation__sl6eqhLncFedgwzv6TlMVw)(void* p, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
N_LIB_PRIVATE N_NIMCALL(void, mark__SOJE9bROCOc8iabVsKM64Sg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(void, acquire__2gdcVC9bfoOlGMK1NSM2nLQ)(CRITICAL_SECTION* lock);
N_LIB_PRIVATE N_NIMCALL(void, nimGCunref)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, release__2gdcVC9bfoOlGMK1NSM2nLQ_2)(CRITICAL_SECTION* lock);
N_LIB_PRIVATE N_NIMCALL(void, forAllChildren__XCvXrotwhq0gugZtuZTNPQ)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
static N_INLINE(void*, cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
N_LIB_PRIVATE N_NIMCALL(void, forAllChildrenAux__3hKpU9c72lqUqbltnsyFjRw)(void* dest, TNimType* mt, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
N_LIB_PRIVATE N_NIMCALL(void, forAllSlotsAux__ld9axHPi9bpxevVrdgKiDF5Q)(void* dest, TNimNode* n, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op);
N_LIB_PRIVATE N_NIMCALL(TNimNode*, selectBranch__2us2RQByTh81i9aW4EEgfmw)(void* aa, TNimNode* n);
N_LIB_PRIVATE N_NIMCALL(NU, getDiscriminant__7LnhHf25BuMRNdnPtDbjcw)(void* aa, TNimNode* n);
static N_INLINE(NI, starpercent___dgYAo7RfdUVVpvkfKDym8w_3system)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(NI, align__vzThvqZajaR9ct9cQ7SOy1tQ)(NI address, NI alignment);
static N_INLINE(void, add__W9aRfhn7HvnQTPAb8ajo1uwsystem)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOCONV(void*, allocImpl__KzdpcuLT9aef9bsiSHlIu9aFg_2)(NI size);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NOCONV(void, deallocImpl__SAtZpVrJ3o5FJvSdLQe9auA)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, dealloc__Jg1OaY9ahkT3MBopLAXRSGw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, void* p);
N_LIB_PRIVATE N_NIMCALL(void, rawDealloc__K7uQ6aTKvW6OnOV8EMoNNQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p);
static N_INLINE(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*, pageAddr__JNTkgd9cRu9a9bEvn7wS0U8EAsystem)(void* p);
static N_INLINE(NIM_BOOL, isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c);
N_LIB_PRIVATE N_NIMCALL(void, freeBigChunk__IPvsryqksLyNxxag3IQr2g)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c);
static N_INLINE(NIM_BOOL, chunkUnused__2Ih49c9ai3KYJhUe3C8xg07w_2system)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c);
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix__YSJZJgeU5UU2aa8GNvs3WA_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b);
N_LIB_PRIVATE N_NIMCALL(void, excl__9cAWqpgI1NbhhZ3cVPHhI5A)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key);
N_LIB_PRIVATE N_NIMCALL(void, del__Io5JDKCS5u26IEWw0J53hQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI x);
static N_INLINE(void, deallocAvlNode__pgghNmDMWP23LqxNq9atk7gsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n);
N_LIB_PRIVATE N_NIMCALL(void, freeHugeChunk__IPvsryqksLyNxxag3IQr2g_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c);
static N_INLINE(void, decCurrMem__JPUl8p4328ZL9bXnEtbaZcA_2system)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes);
static N_INLINE(void, osDeallocPages__dRMEutPSAkbR9b9blNmTzvoQsystem)(void* p, NI size);
static N_NIMCALL(void, Marker_tySequence__aNpJjaoUowCQc7fBn3wtDQ)(void* p, NI op);
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_3)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
static N_NIMCALL(void, Marker_tySequence__uB9b75OUPRENsBAu4AnoePA)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__vU9aO9cTqOMn6CBzhV8rX7Sw)(void* p, NI op);
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_6)(void);
N_LIB_PRIVATE N_NIMCALL(NI, getRefcount)(void* p);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
static N_INLINE(NI, percentpercent___dgYAo7RfdUVVpvkfKDym8w_4system)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(void, procAddrError)(NCSTRING name);
static N_NIMCALL(void, Marker_tyRef__9clYsYwyjCqe2PFTuCI3Ubg)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void*, rawNewObj__ehkAaLROrd0Hc9aLROWt1nQ)(TNimType* typ, NI size, tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, collectCT__UyJsrKu7wmHDvZRV57hjsg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, NI size);
static N_INLINE(NI, getFreeMem__o7kGt4Ciqh9aCBinZc9bV9cugsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
static N_INLINE(NI, getOccupiedMem__o7kGt4Ciqh9aCBinZc9bV9cug_2system)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(void, collectCTBody__XHio9cMpnLoH7GyCj1Z9besg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__0yw8cp0rOgL8i0O5kzzb0g)(void);
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__VOU3z9bbtHMYBiCVB5tMX1g)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack);
static N_INLINE(void, prepareForInteriorPointerChecking__ot9aebHKDFT2OPbEVY47F9bQsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(NI, lowGauge__vu9a10GqvNeXA9alSqdG48cw)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n);
N_LIB_PRIVATE N_NIMCALL(NI, highGauge__vu9a10GqvNeXA9alSqdG48cw_2)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n);
N_LIB_PRIVATE N_CDECL(void, markStackAndRegisters__U6T7JWtDLrWhtmhXSoy9a6g)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, setPosition__Fnam3HOmbq2ymF0tDBas5Q)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position);
N_LIB_PRIVATE N_NIMCALL(tyObject_GcStack__7fytPA5bBsob6See21YMRA*, getActiveStack__muO7WGG730PTJWpoUnluHg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isActiveStack__c6NLIYJQ5DIKtQqRJH8S7w)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack);
static N_INLINE(void, gcMark__x5SbLN3uVBCsEa67N20nPwsystem)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, void* p);
N_LIB_PRIVATE N_NIMCALL(void*, interiorAllocatedPtr__NuzKjA4SX9afyji9cHHIuKpQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p);
static N_INLINE(NIM_BOOL, lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, inRange__BIq3l3oBvrBeYSWFT5iXiw)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root, NI key);
N_LIB_PRIVATE N_NIMCALL(void, markGlobals__XHio9cMpnLoH7GyCj1Z9besg_2)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
N_LIB_PRIVATE N_NIMCALL(void, sweep__XHio9cMpnLoH7GyCj1Z9besg_3)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch);
static N_INLINE(NIM_BOOL, isCell__knKGR9cPCi0isv7h4omKxdAsystem)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, freeCyclicCell__SOJE9bROCOc8iabVsKM64Sg_2)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(void, prepareDealloc__fvhnFro5wEfzy879alizcUQ)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell);
N_LIB_PRIVATE N_NIMCALL(NI, getOccupiedMem__hrQB9bN29c1nR1E9cHqYcNcDA)(void);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewStringNoInit)(NI space);
N_LIB_PRIVATE N_NIMCALL(void*, newObjNoInit)(TNimType* typ, NI size);
static N_INLINE(NI, resize__cOCDWr16YD4j3dBrbbH3yQsystem)(NI old);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
static N_INLINE(void, addEscapedChar__dfKNBK6s29c7zfWj2JwI7EQsystem)(NimStringDesc** s, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
static N_INLINE(void, sysFatal__pO9abt7E7FWB3DInHeLgZeQsystem)(NimStringDesc* message);
static N_NIMCALL(void, Marker_tyRef__r8GBEWywN07B3Rat3azS4Q)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__dMaT1dYJWy6HCDx9bdXp24A)(TGenericSeq* a, NI elemAlign);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionAux__na8C8pUZ9cLQWVwk35l5vfw)(Exception* e);
static N_INLINE(void, pushCurrentException)(Exception* e);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last);
static N_NIMCALL(void, Marker_tyRef__HV2B9a6TW6WPpQna2mQFeQQ)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toNimStr)(NCSTRING str, NI len);
static N_NIMCALL(void, Marker_tyRef__S8DV6hfcgC9c0IiUsAoR29cQ)(void* p, NI op);
N_LIB_PRIVATE N_NOCONV(void*, allocShared0Impl__KzdpcuLT9aef9bsiSHlIu9aFg_3)(NI size);
N_LIB_PRIVATE N_NOCONV(void*, allocSharedImpl)(NI size);
N_LIB_PRIVATE N_NIMCALL(void*, nimLoadLibrary)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(void, nimLoadLibraryError)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(void*, nimGetProcAddr)(void* lib, NCSTRING name);
N_LIB_PRIVATE N_STDCALL(NI32, threadProcWrapper__LGq7Tl8RtbZVKMdJtqW9aHA)(void* closure);
N_LIB_PRIVATE N_NIMCALL(void, threadProcWrapStackFrame__4bfnMli3YetX01hUbaU1ig)(tyObject_Thread__aCkJjuuA9audHPimgL5uPkg* thrd);
N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom);
N_LIB_PRIVATE N_NIMCALL(void, setPosition__Zp3k9bHhfG9aKFJWRJNwKuKw)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position);
N_LIB_PRIVATE N_NIMCALL(void, threadProcWrapDispatch__4bfnMli3YetX01hUbaU1ig_2)(tyObject_Thread__aCkJjuuA9audHPimgL5uPkg* thrd);
N_LIB_PRIVATE N_NIMCALL(void, genericDeepCopy)(void* dest, void* src, TNimType* mt);
static N_INLINE(void, GC_disable__RsY2eAkO9aEvlDhb7ZyRF8gsystem)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*, initPtrTable__awRYFsOgLT2QxepuItx23Q)(void);
N_LIB_PRIVATE N_NIMCALL(void, genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ)(void* dest, void* src, TNimType* mt, tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg** tab);
static N_INLINE(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(NimStringDesc*, copyDeepString__hklXXwFsTQvUNkBUDEf9aqAsystem)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(void, genericDeepCopyAux__iOYDOwyGohWpJUS4DfUiYg)(void* dest, void* src, TNimNode* n, tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg** tab);
N_LIB_PRIVATE N_NIMCALL(void, genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw)(void* dest, TNimNode* n);
N_LIB_PRIVATE N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void*, get__9cnRB9aE2YD2tJCXxY88IIBg)(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* t, void* key);
N_LIB_PRIVATE N_NIMCALL(void, put__QKifuA1kFfqUiPGvoyTJJA)(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg** t, void* key, void* val);
N_LIB_PRIVATE N_NIMCALL(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*, rehash__eWVeXGQWT5uEpbu5jaBwxQ)(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* t);
static N_INLINE(void, GC_enable__RsY2eAkO9aEvlDhb7ZyRF8g_2system)(void);
N_LIB_PRIVATE N_NIMCALL(void, threadTrouble__amVlU9ajqZ06ujoesRBHcDg_2)(void);
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2)(Exception* e);
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3)(Exception* e);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___qXwhltkA4r6d4Hcwmx9cN8A)(tySequence__uB9b75OUPRENsBAu4AnoePA* s);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_LIB_PRIVATE N_NIMCALL(void, add__8FwY5enLGB0dFerO6Ny9caw)(NimStringDesc** x, NCSTRING y);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_LIB_PRIVATE N_NIMCALL(void, addInt__mftMOxbyu0h4yByfs3sqjA)(NimStringDesc** result, NI64 x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___dS1BF3Vxjg9aJMmmhVJKSpQ)(NimStringDesc** dest);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
N_LIB_PRIVATE N_NIMCALL(void, showErrorMessage__zsORN9crdKxsL9cHrQcdHSMw)(NCSTRING data);
static N_INLINE(void, popCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, writeToStdErr__a2kDfqdSc1eYf0ZCWOGinQ)(NCSTRING msg);
N_LIB_PRIVATE N_NIMCALL(void, deallocOsPages__amVlU9ajqZ06ujoesRBHcDg_3)(void);
N_LIB_PRIVATE N_NIMCALL(void, deallocOsPages__9cjK1n7e8rk5QVWjYl2tSrw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NIMCALL(void, llDeallocAll__9cjK1n7e8rk5QVWjYl2tSrw_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a);
N_LIB_PRIVATE N_NOCONV(void, deallocShared)(void* p);
N_LIB_PRIVATE N_NOCONV(void, deallocSharedImpl__SAtZpVrJ3o5FJvSdLQe9auA_2)(void* p);
static N_NIMCALL(void, Marker_tyRef__M8bPR1OE5OXPYGyQdVHfTg)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__Ie1m0dv1ZHg72IgPRr1cDw)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__U5DxFPRpHCCZDKWQzM9adaw)(void* dest, void* src, TNimType* mt, NIM_BOOL shallow);
N_LIB_PRIVATE N_NIMCALL(void*, nimNewSeqOfCap)(TNimType* typ, NI cap);
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ)(void* dest, void* src, TNimNode* n, NIM_BOOL shallow);
static N_INLINE(void, chckObjAsgn)(TNimType* a, TNimType* b);
static N_INLINE(void, sysFatal__LGIwiR9aqSM70ldGCThzJ3gsystem)(NimStringDesc* message);
static N_NIMCALL(void, Marker_tyRef__C0A9bPZSVeyr2BWpBf4Jxqw)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__HMIVdYjdZYWskTmTQVo5BQ)(void* p, NI op);
static N_NIMCALL(void, Marker_tySequence__qwqHTkRvwhrRyENtudHQ7g)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__8Wn9cfOy9assdXGuxu0oUaVA)(TGenericSeq* a, NI elemAlign, NI elemSize, NI index);
static N_NIMCALL(void, Marker_tyRef__8SzoIAgLw9ci2v0yafHj9b6Q)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___xqL1qTIQGkhdyM4F59c1P9aw)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x);
N_LIB_PRIVATE N_NIMCALL(NI, writeFloatToBuffer__UrA9aquvUwHFUFx78eUQk3A)(NIM_CHAR* buf, NF value);
N_LIB_PRIVATE N_NIMCALL(void, addCstringN__DuMbk0Tea09bkpFWJtZlU6A)(NimStringDesc** result, NCSTRING buf, NI buflen);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_LIB_PRIVATE N_NIMCALL(void, add__L5ivS03sIqPjaqmOum9c7Vw)(NimStringDesc** result, tyObject_XmlNodeObj__X79bE2j9a1V7tizbx9blALudQ* n, NI indent, NI indWidth, NIM_BOOL addNewLines);
static N_NIMCALL(void, Marker_tySequence__9adZzcOGzsbgOQfLQZInF8Q)(void* p, NI op);
static N_NIMCALL(void, Marker_tySequence__phjbYJtsbOIAYa9be34hhZg)(void* p, NI op);
static N_NIMCALL(void, Marker_tySequence__Oy5XceZ6t0fE9a50ltafOpg)(void* p, NI op);
static N_INLINE(void, initThreadVarsEmulation)(void);
static N_INLINE(void, initStackBottomWith)(void* locals);

/* section: NIM_merge_DATA */
N_LIB_PRIVATE NIM_CONST tyArray__mkmEeKAWtk2yS9bBb1lUWXA fsLookupTable__Gn52IZvqY4slyBTOYwGNRQ = {((NI8) -1),
((NI8) 0),
((NI8) 1),
((NI8) 1),
((NI8) 2),
((NI8) 2),
((NI8) 2),
((NI8) 2),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 3),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 4),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 5),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 6),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7),
((NI8) 7)}
;
N_LIB_PRIVATE TNimType NTI__HzVCwACFYM9cx9aV62PdjtuA_;
N_LIB_PRIVATE TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_;
N_LIB_PRIVATE TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
N_LIB_PRIVATE TNimType NTI__diB2NTuAIWY0FO9c5IUJRGg_;
N_LIB_PRIVATE TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_;
N_LIB_PRIVATE TNimType NTI__aNpJjaoUowCQc7fBn3wtDQ_;
N_LIB_PRIVATE TNimType NTI__XEycrCsme5C8CVWAYEcdBQ_;
N_LIB_PRIVATE TNimType NTI__S9agCYBinaYZnGWcjTdxclg_;
N_LIB_PRIVATE TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
N_LIB_PRIVATE TNimType NTI__oLyohQ7O2XOvGnflOss8EA_;
N_LIB_PRIVATE TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
N_LIB_PRIVATE TNimType NTI__uB9b75OUPRENsBAu4AnoePA_;
N_LIB_PRIVATE TNimType NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_;
N_LIB_PRIVATE TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
N_LIB_PRIVATE TNimType NTI__BeJgrOdDsczOwEWOZbRfKA_;
N_LIB_PRIVATE TNimType NTI__sVg18TP9cLifHyygRe9cro9aA_;
N_LIB_PRIVATE TNimType NTI__9clYsYwyjCqe2PFTuCI3Ubg_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_7, "\"", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_8, "\\a", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_9, "\\b", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_10, "\\t", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_11, "\\n", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_12, "\\v", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_13, "\\f", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_14, "\\c", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_15, "\\e", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_16, "\\\\", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_17, "\\\'", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_18, "\\\"", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_19, "\\x", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_20, "0123456789ABCDEF", 16);
N_LIB_PRIVATE TNimType NTI__LbeSGvgPzGzXnW9caIkJqMA_;
N_LIB_PRIVATE TNimType NTI__cT9c9bHlHSpA1QTnKbHjnIkA_;
N_LIB_PRIVATE TNimType NTI__9cxMi1BPLc3UKt9br86bGfGQ_;
N_LIB_PRIVATE TNimType NTI__r8GBEWywN07B3Rat3azS4Q_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_22, "over- or underflow", 18);
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
N_LIB_PRIVATE TNimType NTI__x1muge9crz9aAVqWWUrEL9aXg_;
N_LIB_PRIVATE TNimType NTI__HV2B9a6TW6WPpQna2mQFeQQ_;
N_LIB_PRIVATE TNimType NTI__PtYxPmY5X0dorfvxAFbJpQ_;
N_LIB_PRIVATE TNimType NTI__S8DV6hfcgC9c0IiUsAoR29cQ_;
N_LIB_PRIVATE TNimType NTI__Aav8dQoMlCFnZRxA0IhTHQ_;
N_LIB_PRIVATE TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_26, "kernel32", 8);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_27, "kernel32", 8);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_30, "API usage error: GC_enable called but GC is already enabled", 59);
extern TNimType NTI__CyNApV6Mfiphj5eUnH5G1A_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_31, "[[reraised from:\012", 17);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_32, "]]\012", 3);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_33, "(", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_34, ", ", 2);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_35, "0", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_36, ")", 1);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_37, "\012", 1);
N_LIB_PRIVATE TNimType NTI__KFG1Y2EPzgtJWwuYhMD0Fw_;
N_LIB_PRIVATE TNimType NTI__M8bPR1OE5OXPYGyQdVHfTg_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_39, "cannot create thread", 20);
N_LIB_PRIVATE TNimType NTI__nlCscttRCss70IBTyuBqnA_;
N_LIB_PRIVATE TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
N_LIB_PRIVATE TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
N_LIB_PRIVATE TNimType NTI__6toVe0IizlEwN9bORXEdX3g_;
N_LIB_PRIVATE TNimType NTI__C0A9bPZSVeyr2BWpBf4Jxqw_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_42, "invalid object assignment", 25);
extern TNimType NTI__4eQHGndY6XBYpFOH09apV8Q_;
N_LIB_PRIVATE TNimType NTI__kDPg4wXyR8DDyA0MeEjIsw_;
N_LIB_PRIVATE TNimType NTI__iLZrPn9anoh9ad1MmO0RczFw_;
N_LIB_PRIVATE TNimType NTI__nmiMWKVIe46vacnhAFrQvw_;
N_LIB_PRIVATE TNimType NTI__HMIVdYjdZYWskTmTQVo5BQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_43, " (invalid data!)", 16);
N_LIB_PRIVATE TNimType NTI__qwqHTkRvwhrRyENtudHQ7g_;
N_LIB_PRIVATE TNimType NTI__t7nhKLvXTQS9cS8ByJU9bIag_;
N_LIB_PRIVATE TNimType NTI__8SzoIAgLw9ci2v0yafHj9b6Q_;
N_LIB_PRIVATE TNimType NTI__hLlQjbV9bLNq5PFxYcqacsA_;
extern TNimType NTI__t2PQ49cw9cyPD5BKolxzFbTw_;
extern TNimType NTI__22zILeNTc8ClX7DrPZ3XOQ_;
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_44, "true", 4);
STRING_LITERAL(TM__Q5wkpxktOdTGvlSRo9bzt9aw_45, "false", 5);
N_LIB_PRIVATE TNimType NTI__Zko9ahsslsvncfBXJMjCANg_;
N_LIB_PRIVATE TNimType NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_;
N_LIB_PRIVATE NIM_CONST tyArray__yp9a149boki9cCCWgfXI0Ip4A powtens__l8b44pimyaWe7sztIOF1Tw = {1.0000000000000000e+000,
1.0000000000000000e+001,
1.0000000000000000e+002,
1.0000000000000000e+003,
1.0000000000000000e+004,
1.0000000000000000e+005,
1.0000000000000000e+006,
1.0000000000000000e+007,
1.0000000000000000e+008,
1.0000000000000000e+009,
1.0000000000000000e+010,
1.0000000000000000e+011,
1.0000000000000000e+012,
1.0000000000000000e+013,
1.0000000000000000e+014,
1.0000000000000000e+015,
1.0000000000000000e+016,
1.0000000000000000e+017,
1.0000000000000000e+018,
1.0000000000000000e+019,
1.0000000000000000e+020,
1.0000000000000000e+021,
1.0000000000000000e+022}
;
extern TNimType NTI__AjV3cEUgs0Y9c7dCt9aItdIA_;
N_LIB_PRIVATE TNimType NTI__9adZzcOGzsbgOQfLQZInF8Q_;
N_LIB_PRIVATE TNimType NTI__phjbYJtsbOIAYa9be34hhZg_;
N_LIB_PRIVATE TNimType NTI__a9bIsIkdQvQMv0xYGrfgSag_;
extern TNimType NTI__oX5InXzfMaDJhIOZ39aPhDg_;
N_LIB_PRIVATE TNimType NTI__Oy5XceZ6t0fE9a50ltafOpg_;

/* section: NIM_merge_VARS */
N_LIB_PRIVATE NI nim_program_result;
N_LIB_PRIVATE NI32 globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
N_LIB_PRIVATE tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg mainThread__6r3APOnKvB9aL9atazGvT52A;
N_LIB_PRIVATE tyProc__9axCnCRMUx32AHzFgBrzSMg globalRaiseHook__JbO1ti4ULxrw54m4zNPbpA;
N_LIB_PRIVATE tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ outOfMemHook__kZNaA7u1MfSW5ZeoGvw8xg;
N_LIB_PRIVATE tyProc__NFmM6mqUOVW3cJg4yvk8Fw unhandledExceptionHook__RJpSsXsRUH8ochbXTEhRIw;
N_LIB_PRIVATE TNimType strDesc__D0UzA4zsDu5tgpJQ9a9clXPg = {((NI) 8), 0, ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28), 2, NIM_NIL, NIM_NIL, NIM_NIL, NIM_NIL, NIM_NIL}
;
N_LIB_PRIVATE tyProc__W6IXMh2CA4X1rFYGjUb4yg errorMessageWriter__ZXnv0JyrWe3HTd07wpSr7A;
N_LIB_PRIVATE tyProc__W6IXMh2CA4X1rFYGjUb4yg onUnhandledException__bFrawQlTKZhLweDD36j9b8g;
N_LIB_PRIVATE tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg sharedHeap__R3bhvQCN0d6AYpkvxfT9aGw;
N_LIB_PRIVATE CRITICAL_SECTION heapLock__Cm9aJxbMhUuv7Cj8trffHQw;
N_LIB_PRIVATE NI globalMarkersLen;
N_LIB_PRIVATE tyArray__9aTRall1siQT9bXabu2aKXUg globalMarkers;
N_LIB_PRIVATE NI threadLocalMarkersLen;
N_LIB_PRIVATE tyArray__9aTRall1siQT9bXabu2aKXUg threadLocalMarkers;
N_LIB_PRIVATE NI gHeapidGenerator__hd54mEUTGcVuZLChYgtR9bg;
static void* TM__Q5wkpxktOdTGvlSRo9bzt9aw_24;
tyProc__jc40GBUDal8eAxynRASEHA Dl_1325210_;

/* section: NIM_merge_PROCS */
N_LIB_PRIVATE N_NIMCALL(void*, threadVarGetValue__O8VJSmwa3WY6y9bP6Ht9b7hw)(NI32 dwTlsIndex) {
	void* result;
	NU32 realLastError;
	result = (void*)0;
	realLastError = GetLastError();
	result = TlsGetValue(dwTlsIndex);
	SetLastError(realLastError);
	return result;
}
static N_INLINE(void*, GetThreadLocalVars)(void) {
	void* result;
	void* T1_;
	result = (void*)0;
	T1_ = (void*)0;
	T1_ = threadVarGetValue__O8VJSmwa3WY6y9bP6Ht9b7hw(globalsSlot__ciXDZu9c27pHpCRMoz4RIgw);
	result = ((void*) ((*((tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg*) (T1_))).tls));
	return result;
}
static N_INLINE(NI, roundup__ix09bNPnFKmnm9c9bTyF5mHpAsystem)(NI x, NI v) {
	NI result;
	result = (NI)0;
	result = (NI)((NI)(x + (NI)(v - ((NI) 1))) & (NI)((NU64) ~((NI)(v - ((NI) 1)))));
	return result;
}
static N_INLINE(NI, msbit__NR8XkKls428clCUr82szCgsystem)(NU32 x) {
	NI result;
	NI a;
	result = (NI)0;
	{
		if (!((NU32)(x) <= (NU32)(((NU32) 65535)))) goto LA3_;
		{
			if (!((NU32)(x) <= (NU32)(((NU32) 255)))) goto LA7_;
			a = ((NI) 0);
		}
		goto LA5_;
		LA7_: ;
		{
			a = ((NI) 8);
		}
		LA5_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		{
			if (!((NU32)(x) <= (NU32)(((NU32) 16777215)))) goto LA13_;
			a = ((NI) 16);
		}
		goto LA11_;
		LA13_: ;
		{
			a = ((NI) 24);
		}
		LA11_: ;
	}
	LA1_: ;
	result = (NI)(((NI) (fsLookupTable__Gn52IZvqY4slyBTOYwGNRQ[((NU32)((NU32)(x) >> (NU64)(a)))- 0])) + a);
	return result;
}
static N_INLINE(void, mappingSearch__x0o9aLs0rybi5SymOs9ciTLQsystem)(NI* r, NI* fl, NI* sl) {
	NI t;
	NI T1_;
	NI T2_;
	T1_ = (NI)0;
	T1_ = msbit__NR8XkKls428clCUr82szCgsystem(((NU32) ((*r))));
	T2_ = (NI)0;
	T2_ = roundup__ix09bNPnFKmnm9c9bTyF5mHpAsystem((NI)((NU64)(((NI) 1)) << (NU64)((NI)(T1_ - ((NI) 5)))), ((NI) 4096));
	t = (NI)(T2_ - ((NI) 1));
	(*r) = (NI)((*r) + t);
	(*r) = (NI)((*r) & (NI)((NU64) ~(t)));
	(*r) = (((*r) <= ((NI) 1056964608)) ? (*r) : ((NI) 1056964608));
	(*fl) = msbit__NR8XkKls428clCUr82szCgsystem(((NU32) ((*r))));
	(*sl) = (NI)((NI)((NI64)((*r)) >> (NU64)((NI)((*fl) - ((NI) 5)))) - ((NI) 32));
	(*fl) -= ((NI) 6);
}
static N_INLINE(NI, lsbit__NR8XkKls428clCUr82szCg_2system)(NU32 x) {
	NI result;
	result = (NI)0;
	result = msbit__NR8XkKls428clCUr82szCgsystem((NU32)(x & (NU32)((NU32)((NU32)((NU32) ~(x))) + (NU32)(((NU32) 1)))));
	return result;
}
static N_INLINE(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, findSuitableBlock__asVN3MOMG2rBAqS7SmK0xQsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI* fl, NI* sl) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
	NU32 tmp;
	result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
	tmp = (NU32)((*a).slBitmap[((*fl))- 0] & (NU32)((NU64)(((NU32) IL64(4294967295))) << (NU64)((*sl))));
	result = NIM_NIL;
	{
		if (!!((tmp == ((NU32) 0)))) goto LA3_;
		(*sl) = lsbit__NR8XkKls428clCUr82szCg_2system(tmp);
		result = (*a).matrix[((*fl))- 0][((*sl))- 0];
	}
	goto LA1_;
	LA3_: ;
	{
		(*fl) = lsbit__NR8XkKls428clCUr82szCg_2system((NU32)((*a).flBitmap & (NU32)((NU64)(((NU32) IL64(4294967295))) << (NU64)((NI)((*fl) + ((NI) 1))))));
		{
			if (!(((NI) 0) < (*fl))) goto LA8_;
			(*sl) = lsbit__NR8XkKls428clCUr82szCg_2system((*a).slBitmap[((*fl))- 0]);
			result = (*a).matrix[((*fl))- 0][((*sl))- 0];
		}
		LA8_: ;
	}
	LA1_: ;
	return result;
}
static N_INLINE(NI, nimCStrLen)(NCSTRING a) {
	NI result;
	size_t T1_;
	result = (NI)0;
	T1_ = (size_t)0;
	T1_ = strlen(a);
	result = ((NI) (T1_));
	return result;
}
static N_INLINE(void, rawWrite)(FILE* f, NCSTRING s) {
	void* T1_;
	int T2_;
	int T3_;
	T1_ = (void*)0;
	T1_ = ((void*) (s));
	T2_ = (int)0;
	T2_ = fwrite(T1_, ((size_t) 1), ((size_t) ((s ? nimCStrLen(s) : 0))), f);
	(void)(T2_);
	T3_ = (int)0;
	T3_ = fflush(f);
	(void)(T3_);
}
N_LIB_PRIVATE N_NOINLINE(void, raiseOutOfMem__mMRdr4sgmnykA9aWeM9aDZlw)(void) {
	{
		if (!!((outOfMemHook__kZNaA7u1MfSW5ZeoGvw8xg == NIM_NIL))) goto LA3_;
		outOfMemHook__kZNaA7u1MfSW5ZeoGvw8xg();
	}
	LA3_: ;
	rawWrite(stderr, "out of memory\012");
	exit(((NI) 1));
}
static N_INLINE(void*, osAllocPages__HMOhWrY1QMa49a2BcJwSDZQsystem)(NI size) {
	void* result;
	result = (void*)0;
	result = VirtualAlloc(NIM_NIL, size, ((NI32) 12288), ((NI32) 4));
	{
		if (!(result == NIM_NIL)) goto LA3_;
		raiseOutOfMem__mMRdr4sgmnykA9aWeM9aDZlw();
	}
	LA3_: ;
	return result;
}
static N_INLINE(void*, osTryAllocPages__HMOhWrY1QMa49a2BcJwSDZQ_2system)(NI size) {
	void* result;
	result = (void*)0;
	result = VirtualAlloc(NIM_NIL, size, ((NI32) 12288), ((NI32) 4));
	return result;
}
static N_INLINE(void, incCurrMem__JPUl8p4328ZL9bXnEtbaZcAsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes) {
	(*a).currMem += bytes;
}
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a, v, ((size_t) (size)));
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	result = (NIM_BOOL*)0;
	result = (&NimTV_->nimInErrorMode__759bT87luu8XGcbkw13FUjA);
	return result;
}
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(void, zeroMem__FsvhfMqbswETmyMWtamDewsystem)(void* p, NI size) {
	nimZeroMem(p, size);
}
N_LIB_PRIVATE N_NIMCALL(void*, llAlloc__ovw3NMWXeZ0Qi9cGYq1E2Tg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
	void* result;
	result = (void*)0;
	{
		NIM_BOOL T3_;
		tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* old;
		void* T7_;
		T3_ = (NIM_BOOL)0;
		T3_ = ((*a).llmem == NIM_NIL);
		if (T3_) goto LA4_;
		T3_ = ((*(*a).llmem).size < size);
		LA4_: ;
		if (!T3_) goto LA5_;
		old = (*a).llmem;
		T7_ = (void*)0;
		T7_ = osAllocPages__HMOhWrY1QMa49a2BcJwSDZQsystem(((NI) 4096));
		(*a).llmem = ((tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw*) (T7_));
		incCurrMem__JPUl8p4328ZL9bXnEtbaZcAsystem(a, ((NI) 4096));
		(*(*a).llmem).size = ((NI) 4072);
		(*(*a).llmem).acc = ((NI) 24);
		(*(*a).llmem).next = old;
	}
	LA5_: ;
	result = ((void*) ((NI)(((NI) (ptrdiff_t) ((*a).llmem)) + (*(*a).llmem).acc)));
	(*(*a).llmem).size -= size;
	(*(*a).llmem).acc += size;
	zeroMem__FsvhfMqbswETmyMWtamDewsystem(result, ((NI) (size)));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addHeapLink__LIRFHBfc9aX3C5dmMmLnpwA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* p, NI size) {
	tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* it;
	it = (&(*a).heapLinks);
	{
		while (1) {
			NIM_BOOL T3_;
			T3_ = (NIM_BOOL)0;
			T3_ = !((it == NIM_NIL));
			if (!(T3_)) goto LA4_;
			T3_ = (((NI) 30) <= (*it).len);
			LA4_: ;
			if (!T3_) goto LA2;
			it = (*it).next;
		} LA2: ;
	}
	{
		tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* n;
		void* T9_;
		tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* colontmp_;
		NI colontmp__2;
		if (!(it == NIM_NIL)) goto LA7_;
		T9_ = (void*)0;
		T9_ = llAlloc__ovw3NMWXeZ0Qi9cGYq1E2Tg(a, ((NI) 496));
		n = ((tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg*) (T9_));
		(*n).next = (*a).heapLinks.next;
		(*a).heapLinks.next = n;
		colontmp_ = p;
		colontmp__2 = size;
		(*n).chunks[(((NI) 0))- 0].Field0 = colontmp_;
		(*n).chunks[(((NI) 0))- 0].Field1 = colontmp__2;
		(*n).len = ((NI) 1);
	}
	goto LA5_;
	LA7_: ;
	{
		NI L;
		tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* colontmp__3;
		NI colontmp__4;
		L = (*it).len;
		colontmp__3 = p;
		colontmp__4 = size;
		(*it).chunks[(L)- 0].Field0 = colontmp__3;
		(*it).chunks[(L)- 0].Field1 = colontmp__4;
		(*it).len += ((NI) 1);
	}
	LA5_: ;
}
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) {
	NI result;
	result = (NI)0;
	result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y))))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetGet__O3FRrWKKUdi8uRTGxiPdIg)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key) {
	tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* result;
	tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* it;
{	result = (tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*)0;
	it = (*t).data[((NI)(key & ((NI) 255)))- 0];
	{
		while (1) {
			if (!!((it == NIM_NIL))) goto LA2;
			{
				if (!((*it).key == key)) goto LA5_;
				result = it;
				goto BeforeRet_;
			}
			LA5_: ;
			it = (*it).next;
		} LA2: ;
	}
	result = NIM_NIL;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__9b5xR7VBZVwQDvk5Nr9bDKdQ)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key) {
	NIM_BOOL result;
	tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* t;
	result = (NIM_BOOL)0;
	t = intSetGet__O3FRrWKKUdi8uRTGxiPdIg(s, (NI)((NI64)(key) >> (NU64)(((NI) 9))));
	{
		NI u;
		if (!!((t == NIM_NIL))) goto LA3_;
		u = (NI)(key & ((NI) 511));
		result = !(((NU)((*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] & (NU)((NU64)(((NU) 1)) << (NU64)((NI)(u & ((NI) 63))))) == ((NU) 0)));
	}
	goto LA1_;
	LA3_: ;
	{
		result = NIM_FALSE;
	}
	LA1_: ;
	return result;
}
static N_INLINE(NI, pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c) {
	NI result;
	result = (NI)0;
	result = (NI)((NI64)(((NI) (ptrdiff_t) (c))) >> (NU64)(((NI) 12)));
	return result;
}
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) {
	NI result;
	result = (NI)0;
	result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y))))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, requestOsChunks__stlXHMKRKFIGOvq8t4ynRQ_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
	NI size_2;
	NI nxt;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* next;
	NI lastSize;
	NI prv;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* prev;
	result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
	{
		NI usedMem;
		if (!!((*a).blockChunkSizeIncrease)) goto LA3_;
		usedMem = (*a).occ;
		{
			if (!(usedMem < ((NI) 65536))) goto LA7_;
			(*a).nextChunkSize = ((NI) 16384);
		}
		goto LA5_;
		LA7_: ;
		{
			NI T10_;
			T10_ = (NI)0;
			T10_ = roundup__ix09bNPnFKmnm9c9bTyF5mHpAsystem((NI)((NI64)(usedMem) >> (NU64)(((NI) 2))), ((NI) 4096));
			(*a).nextChunkSize = ((T10_ <= (NI)((*a).nextChunkSize * ((NI) 2))) ? T10_ : (NI)((*a).nextChunkSize * ((NI) 2)));
			(*a).nextChunkSize = (((*a).nextChunkSize <= ((NI) 1056964608)) ? (*a).nextChunkSize : ((NI) 1056964608));
		}
		LA5_: ;
	}
	LA3_: ;
	size_2 = size;
	{
		void* T15_;
		if (!((*a).nextChunkSize < size_2)) goto LA13_;
		T15_ = (void*)0;
		T15_ = osAllocPages__HMOhWrY1QMa49a2BcJwSDZQsystem(size_2);
		result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T15_));
	}
	goto LA11_;
	LA13_: ;
	{
		void* T17_;
		T17_ = (void*)0;
		T17_ = osTryAllocPages__HMOhWrY1QMa49a2BcJwSDZQ_2system((*a).nextChunkSize);
		result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T17_));
		{
			void* T22_;
			if (!(result == NIM_NIL)) goto LA20_;
			T22_ = (void*)0;
			T22_ = osAllocPages__HMOhWrY1QMa49a2BcJwSDZQsystem(size_2);
			result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T22_));
			(*a).blockChunkSizeIncrease = NIM_TRUE;
		}
		goto LA18_;
		LA20_: ;
		{
			size_2 = (*a).nextChunkSize;
		}
		LA18_: ;
	}
	LA11_: ;
	incCurrMem__JPUl8p4328ZL9bXnEtbaZcAsystem(a, size_2);
	(*a).freeMem += size_2;
	addHeapLink__LIRFHBfc9aX3C5dmMmLnpwA(a, result, size_2);
	(*result).next = NIM_NIL;
	(*result).prev = NIM_NIL;
	(*result).Sup.size = size_2;
	nxt = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (result)), size_2);
	next = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (nxt));
	{
		NI T26_;
		NIM_BOOL T27_;
		T26_ = (NI)0;
		T26_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(next);
		T27_ = (NIM_BOOL)0;
		T27_ = contains__9b5xR7VBZVwQDvk5Nr9bDKdQ((&(*a).chunkStarts), T26_);
		if (!T27_) goto LA28_;
		(*next).prevSize = (NI)(size_2 | (NI)((*next).prevSize & ((NI) 1)));
	}
	LA28_: ;
	{
		if (!!(((*a).lastSize == ((NI) 0)))) goto LA32_;
		lastSize = (*a).lastSize;
	}
	goto LA30_;
	LA32_: ;
	{
		lastSize = ((NI) 4096);
	}
	LA30_: ;
	prv = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (result)), lastSize);
	prev = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (prv));
	{
		NIM_BOOL T37_;
		NI T38_;
		T37_ = (NIM_BOOL)0;
		T38_ = (NI)0;
		T38_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(prev);
		T37_ = contains__9b5xR7VBZVwQDvk5Nr9bDKdQ((&(*a).chunkStarts), T38_);
		if (!(T37_)) goto LA39_;
		T37_ = ((*prev).size == lastSize);
		LA39_: ;
		if (!T37_) goto LA40_;
		(*result).Sup.prevSize = (NI)(lastSize | (NI)((*result).Sup.prevSize & ((NI) 1)));
	}
	goto LA35_;
	LA40_: ;
	{
		(*result).Sup.prevSize = (NI)(((NI) 0) | (NI)((*result).Sup.prevSize & ((NI) 1)));
	}
	LA35_: ;
	(*a).lastSize = size_2;
	return result;
}
static N_INLINE(NI, pageIndex__cMO7rAWQ0KzYXPVgB0ZR3gsystem)(void* p) {
	NI result;
	result = (NI)0;
	result = (NI)((NI64)(((NI) (ptrdiff_t) (p))) >> (NU64)(((NI) 12)));
	return result;
}
static N_INLINE(NIM_BOOL, isAccessible__EZspgz843pJ9adnD0ZpJO6wsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p) {
	NIM_BOOL result;
	NI T1_;
	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = pageIndex__cMO7rAWQ0KzYXPVgB0ZR3gsystem(p);
	result = contains__9b5xR7VBZVwQDvk5Nr9bDKdQ((&(*a).chunkStarts), T1_);
	return result;
}
static N_INLINE(void, updatePrevSize__9b5Bu9akw7RalDC4isB4QVbgsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI prevSize) {
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* ri;
	NI T1_;
	T1_ = (NI)0;
	T1_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (c)), (*c).Sup.size);
	ri = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (T1_));
	{
		NIM_BOOL T4_;
		T4_ = (NIM_BOOL)0;
		T4_ = isAccessible__EZspgz843pJ9adnD0ZpJO6wsystem((&(*a)), ((void*) (ri)));
		if (!T4_) goto LA5_;
		(*ri).prevSize = (NI)(prevSize | (NI)((*ri).prevSize & ((NI) 1)));
	}
	LA5_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*, intSetPut__Cw86Sj6YgVACdT20AkWjcA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* t, NI key) {
	tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* result;
	result = (tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*)0;
	result = intSetGet__O3FRrWKKUdi8uRTGxiPdIg((&(*t)), key);
	{
		void* T5_;
		if (!(result == NIM_NIL)) goto LA3_;
		T5_ = (void*)0;
		T5_ = llAlloc__ovw3NMWXeZ0Qi9cGYq1E2Tg(a, ((NI) 80));
		result = ((tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw*) (T5_));
		(*result).next = (*t).data[((NI)(key & ((NI) 255)))- 0];
		(*t).data[((NI)(key & ((NI) 255)))- 0] = result;
		(*result).key = key;
	}
	LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, incl__tSnfTXv7GxXoDyFDm9bvzqg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key) {
	tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* t;
	NI u;
	t = intSetPut__Cw86Sj6YgVACdT20AkWjcA(a, s, (NI)((NI64)(key) >> (NU64)(((NI) 9))));
	u = (NI)(key & ((NI) 511));
	(*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] = (NU)((*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] | (NU)((NU64)(((NU) 1)) << (NU64)((NI)(u & ((NI) 63)))));
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, splitChunk2__gSNzk4aToVCSTE1opfEv2A)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
	NI T1_;
	tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* T2_;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T3_;
	NI T4_;
	result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
	T1_ = (NI)0;
	T1_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (c)), size);
	result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T1_));
	(*result).Sup.size = (NI)((*c).Sup.size - size);
	(*result).next = NIM_NIL;
	(*result).prev = NIM_NIL;
	(*result).Sup.prevSize = size;
	updatePrevSize__9b5Bu9akw7RalDC4isB4QVbgsystem(a, c, (*result).Sup.size);
	(*c).Sup.size = size;
	T2_ = (tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg*)0;
	T2_ = a;
	T3_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
	T3_ = &result->Sup;
	T4_ = (NI)0;
	T4_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(T3_);
	incl__tSnfTXv7GxXoDyFDm9bvzqg(T2_, (&(*a).chunkStarts), T4_);
	return result;
}
static N_INLINE(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ, mappingInsert__SRLfEtcWb2dn0ht85HEwbQsystem)(NI r) {
	tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ result;
	nimZeroMem((void*)(&result), sizeof(tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ));
	result.Field0 = msbit__NR8XkKls428clCUr82szCgsystem(((NU32) (r)));
	result.Field1 = (NI)((NI)((NI64)(r) >> (NU64)((NI)(result.Field0 - ((NI) 5)))) - ((NI) 32));
	result.Field0 -= ((NI) 6);
	return result;
}
static N_INLINE(void, setBit__I4TSeZGFKfrVTL1oqiweCgsystem)(NI nr, NU32* dest) {
	(*dest) = (NU32)((*dest) | (NU32)((NU64)(((NU32) 1)) << (NU64)((NI)(nr & ((NI) 31)))));
}
N_LIB_PRIVATE N_NIMCALL(void, addChunkToMatrix__YSJZJgeU5UU2aa8GNvs3WA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b) {
	tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ T1_;
	NI fl;
	NI sl;
	T1_ = mappingInsert__SRLfEtcWb2dn0ht85HEwbQsystem((*b).Sup.size);
	fl = T1_.Field0;
	sl = T1_.Field1;
	(*b).prev = NIM_NIL;
	(*b).next = (*a).matrix[(fl)- 0][(sl)- 0];
	{
		if (!!(((*a).matrix[(fl)- 0][(sl)- 0] == NIM_NIL))) goto LA4_;
		(*(*a).matrix[(fl)- 0][(sl)- 0]).prev = b;
	}
	LA4_: ;
	(*a).matrix[(fl)- 0][(sl)- 0] = b;
	setBit__I4TSeZGFKfrVTL1oqiweCgsystem(sl, (&(*a).slBitmap[(fl)- 0]));
	setBit__I4TSeZGFKfrVTL1oqiweCgsystem(fl, (&(*a).flBitmap));
}
N_LIB_PRIVATE N_NIMCALL(void, splitChunk__BqFVAuadgXfvAiq8B9cBjqQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c, NI size) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* rest;
	rest = splitChunk2__gSNzk4aToVCSTE1opfEv2A(a, c, size);
	addChunkToMatrix__YSJZJgeU5UU2aa8GNvs3WA(a, rest);
}
static N_INLINE(void, clearBit__I4TSeZGFKfrVTL1oqiweCg_2system)(NI nr, NU32* dest) {
	(*dest) = (NU32)((*dest) & (NU32)((NU32) ~((NU32)((NU64)(((NU32) 1)) << (NU64)((NI)(nr & ((NI) 31)))))));
}
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix2__XFftAAJrARamxGOKUFQy9aw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b, NI fl, NI sl) {
	(*a).matrix[(fl)- 0][(sl)- 0] = (*b).next;
	{
		if (!!(((*a).matrix[(fl)- 0][(sl)- 0] == NIM_NIL))) goto LA3_;
		(*(*a).matrix[(fl)- 0][(sl)- 0]).prev = NIM_NIL;
	}
	goto LA1_;
	LA3_: ;
	{
		clearBit__I4TSeZGFKfrVTL1oqiweCg_2system(sl, (&(*a).slBitmap[(fl)- 0]));
		{
			if (!((*a).slBitmap[(fl)- 0] == ((NU32) 0))) goto LA8_;
			clearBit__I4TSeZGFKfrVTL1oqiweCg_2system(fl, (&(*a).flBitmap));
		}
		LA8_: ;
	}
	LA1_: ;
	(*b).prev = NIM_NIL;
	(*b).next = NIM_NIL;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getBigChunk__stlXHMKRKFIGOvq8t4ynRQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
	NI size_2;
	NI fl;
	NI sl;
	tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* T19_;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T20_;
	NI T21_;
	result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
	size_2 = size;
	fl = ((NI) 0);
	sl = ((NI) 0);
	mappingSearch__x0o9aLs0rybi5SymOs9ciTLQsystem((&size_2), (&fl), (&sl));
	result = findSuitableBlock__asVN3MOMG2rBAqS7SmK0xQsystem((&(*a)), (&fl), (&sl));
	{
		if (!(result == NIM_NIL)) goto LA3_;
		{
			if (!(size_2 < ((NI) 524288))) goto LA7_;
			result = requestOsChunks__stlXHMKRKFIGOvq8t4ynRQ_2(a, ((NI) 524288));
			splitChunk__BqFVAuadgXfvAiq8B9cBjqQ(a, result, size_2);
		}
		goto LA5_;
		LA7_: ;
		{
			result = requestOsChunks__stlXHMKRKFIGOvq8t4ynRQ_2(a, size_2);
			{
				if (!(size_2 < (*result).Sup.size)) goto LA12_;
				splitChunk__BqFVAuadgXfvAiq8B9cBjqQ(a, result, size_2);
			}
			LA12_: ;
		}
		LA5_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		removeChunkFromMatrix2__XFftAAJrARamxGOKUFQy9aw(a, result, fl, sl);
		{
			if (!((NI)(size_2 + ((NI) 4096)) <= (*result).Sup.size)) goto LA17_;
			splitChunk__BqFVAuadgXfvAiq8B9cBjqQ(a, result, size_2);
		}
		LA17_: ;
	}
	LA1_: ;
	(*result).Sup.prevSize = ((NI) 1);
	T19_ = (tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg*)0;
	T19_ = a;
	T20_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
	T20_ = &result->Sup;
	T21_ = (NI)0;
	T21_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(T20_);
	incl__tSnfTXv7GxXoDyFDm9bvzqg(T19_, (&(*a).chunkStarts), T21_);
	(*a).freeMem -= size_2;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*, getSmallChunk__0ixBBlKB5QN59bxrmztRmCw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* result;
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* res;
	result = (tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*)0;
	res = getBigChunk__stlXHMKRKFIGOvq8t4ynRQ(a, ((NI) 4096));
	result = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (res));
	return result;
}
static N_INLINE(void, listAdd__G9cCXZ1ju0DgzqrqBg9acaKQsystem)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c) {
	(*c).next = (*head);
	{
		if (!!(((*head) == NIM_NIL))) goto LA3_;
		(*(*head)).prev = c;
	}
	LA3_: ;
	(*head) = c;
}
static N_INLINE(void, listRemove__G9cCXZ1ju0DgzqrqBg9acaKQ_2system)(tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ** head, tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c) {
	{
		if (!(c == (*head))) goto LA3_;
		(*head) = (*c).next;
		{
			if (!!(((*head) == NIM_NIL))) goto LA7_;
			(*(*head)).prev = NIM_NIL;
		}
		LA7_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		(*(*c).prev).next = (*c).next;
		{
			if (!!(((*c).next == NIM_NIL))) goto LA12_;
			(*(*c).next).prev = (*c).prev;
		}
		LA12_: ;
	}
	LA1_: ;
	(*c).next = NIM_NIL;
	(*c).prev = NIM_NIL;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*, getHugeChunk__stlXHMKRKFIGOvq8t4ynRQ_3)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI size) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* result;
	void* T1_;
	tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* T2_;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T3_;
	NI T4_;
	result = (tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*)0;
	T1_ = (void*)0;
	T1_ = osAllocPages__HMOhWrY1QMa49a2BcJwSDZQsystem(size);
	result = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T1_));
	incCurrMem__JPUl8p4328ZL9bXnEtbaZcAsystem(a, size);
	(*result).next = NIM_NIL;
	(*result).prev = NIM_NIL;
	(*result).Sup.size = size;
	(*result).Sup.prevSize = ((NI) 1);
	T2_ = (tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg*)0;
	T2_ = a;
	T3_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
	T3_ = &result->Sup;
	T4_ = (NI)0;
	T4_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(T3_);
	incl__tSnfTXv7GxXoDyFDm9bvzqg(T2_, (&(*a).chunkStarts), T4_);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, getBottom__3mqnVBLDtYhZizqw9bvHELA)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* result;
	result = (tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*)0;
	result = (&(*a).bottomData);
	{
		if (!((*result).link[(((NI) 0))- 0] == NIM_NIL)) goto LA3_;
		(*result).link[(((NI) 0))- 0] = result;
		(*result).link[(((NI) 1))- 0] = result;
	}
	LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, allocAvlNode__Du8pyfSfDLyN9aoS2IcBsHg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI key, NI upperBound) {
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* result;
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* bottom;
	result = (tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*)0;
	{
		if (!!(((*a).freeAvlNodes == NIM_NIL))) goto LA3_;
		result = (*a).freeAvlNodes;
		(*a).freeAvlNodes = (*(*a).freeAvlNodes).link[(((NI) 0))- 0];
	}
	goto LA1_;
	LA3_: ;
	{
		void* T6_;
		T6_ = (void*)0;
		T6_ = llAlloc__ovw3NMWXeZ0Qi9cGYq1E2Tg(a, ((NI) 40));
		result = ((tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*) (T6_));
	}
	LA1_: ;
	(*result).key = key;
	(*result).upperBound = upperBound;
	bottom = getBottom__3mqnVBLDtYhZizqw9bvHELA(a);
	(*result).link[(((NI) 0))- 0] = bottom;
	(*result).link[(((NI) 1))- 0] = bottom;
	(*result).level = ((NI) 1);
	return result;
}
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, skew__NJo8pxZdXEAIa7wkHls9cOw)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t) {
	{
		tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* temp;
		if (!((*(*(*t)).link[(((NI) 0))- 0]).level == (*(*t)).level)) goto LA3_;
		temp = (*t);
		(*t) = (*(*t)).link[(((NI) 0))- 0];
		(*temp).link[(((NI) 0))- 0] = (*(*t)).link[(((NI) 1))- 0];
		(*(*t)).link[(((NI) 1))- 0] = temp;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, split__NJo8pxZdXEAIa7wkHls9cOw_2)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t) {
	{
		tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* temp;
		if (!((*(*(*(*t)).link[(((NI) 1))- 0]).link[(((NI) 1))- 0]).level == (*(*t)).level)) goto LA3_;
		temp = (*t);
		(*t) = (*(*t)).link[(((NI) 1))- 0];
		(*temp).link[(((NI) 1))- 0] = (*(*t)).link[(((NI) 0))- 0];
		(*(*t)).link[(((NI) 0))- 0] = temp;
		(*(*t)).level += ((NI) 1);
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, add__3D9aOyz4rDquPZKBlqn0xig)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI key, NI upperBound) {
	{
		if (!((*(*t)).link[(((NI) 0))- 0] == (*t))) goto LA3_;
		(*t) = allocAvlNode__Du8pyfSfDLyN9aoS2IcBsHg(a, key, upperBound);
	}
	goto LA1_;
	LA3_: ;
	{
		{
			NIM_BOOL T8_;
			T8_ = (NIM_BOOL)0;
			T8_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(key, (*(*t)).key);
			if (!T8_) goto LA9_;
			add__3D9aOyz4rDquPZKBlqn0xig(a, &(*(*t)).link[(((NI) 0))- 0], key, upperBound);
		}
		goto LA6_;
		LA9_: ;
		{
			NIM_BOOL T12_;
			T12_ = (NIM_BOOL)0;
			T12_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*(*t)).key, key);
			if (!T12_) goto LA13_;
			add__3D9aOyz4rDquPZKBlqn0xig(a, &(*(*t)).link[(((NI) 1))- 0], key, upperBound);
		}
		goto LA6_;
		LA13_: ;
		{
		}
		LA6_: ;
		skew__NJo8pxZdXEAIa7wkHls9cOw(t);
		split__NJo8pxZdXEAIa7wkHls9cOw_2(t);
	}
	LA1_: ;
}
N_LIB_PRIVATE N_NIMCALL(void*, rawAlloc__mE4QEVyMvGRVliDWDngZCQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI requestedSize) {
	void* result;
	NI size;
	result = (void*)0;
	size = roundup__ix09bNPnFKmnm9c9bTyF5mHpAsystem(requestedSize, ((NI) 16));
	{
		NI s;
		tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c;
		if (!(size <= ((NI) 4032))) goto LA3_;
		s = (NI)(size / ((NI) 16));
		c = (*a).freeSmallChunks[(s)- 0];
		{
			if (!(c == NIM_NIL)) goto LA7_;
			c = getSmallChunk__0ixBBlKB5QN59bxrmztRmCw(a);
			(*c).freeList = NIM_NIL;
			(*c).Sup.size = size;
			(*c).acc = size;
			(*c).free = (NI)(((NI) 4032) - size);
			(*c).next = NIM_NIL;
			(*c).prev = NIM_NIL;
			listAdd__G9cCXZ1ju0DgzqrqBg9acaKQsystem(&(*a).freeSmallChunks[(s)- 0], c);
			result = ((void*) ((*c).data));
		}
		goto LA5_;
		LA7_: ;
		{
			{
				NI T14_;
				if (!((*c).freeList == NIM_NIL)) goto LA12_;
				T14_ = (NI)0;
				T14_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) ((*c).data)), (*c).acc);
				result = ((void*) (T14_));
				(*c).acc += size;
			}
			goto LA10_;
			LA12_: ;
			{
				result = ((void*) ((*c).freeList));
				(*c).freeList = (*(*c).freeList).next;
			}
			LA10_: ;
			(*c).free -= size;
		}
		LA5_: ;
		{
			if (!((*c).free < size)) goto LA18_;
			listRemove__G9cCXZ1ju0DgzqrqBg9acaKQ_2system(&(*a).freeSmallChunks[(s)- 0], c);
		}
		LA18_: ;
		(*a).occ += size;
	}
	goto LA1_;
	LA3_: ;
	{
		tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_2;
		tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* T30_;
		NI T31_;
		NI T32_;
		size = (NI)(requestedSize + ((NI) 32));
		{
			if (!(((NI) 1056964609) <= size)) goto LA23_;
			c_2 = getHugeChunk__stlXHMKRKFIGOvq8t4ynRQ_3(a, size);
		}
		goto LA21_;
		LA23_: ;
		{
			c_2 = getBigChunk__stlXHMKRKFIGOvq8t4ynRQ(a, size);
		}
		LA21_: ;
		result = ((void*) ((*c_2).data));
		{
			if (!((*a).root == NIM_NIL)) goto LA28_;
			(*a).root = getBottom__3mqnVBLDtYhZizqw9bvHELA(a);
		}
		LA28_: ;
		T30_ = (tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg*)0;
		T30_ = a;
		T31_ = (NI)0;
		T31_ = ((NI) (ptrdiff_t) (result));
		T32_ = (NI)0;
		T32_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (result)), size);
		add__3D9aOyz4rDquPZKBlqn0xig(T30_, &(*a).root, T31_, T32_);
		(*a).occ += (*c_2).Sup.size;
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, alloc__UxtcZ3QOXKsB7mMchxUf9cg_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size) {
	void* result;
	NI T1_;
	result = (void*)0;
	result = rawAlloc__mE4QEVyMvGRVliDWDngZCQ(allocator, (NI)(((NI) (size)) + ((NI) 16)));
	(*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (result))).zeroField = ((NI) 1);
	T1_ = (NI)0;
	T1_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (result)), ((NI) 16));
	result = ((void*) (T1_));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, alloc0__UxtcZ3QOXKsB7mMchxUf9cg)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, NI size) {
	void* result;
	result = (void*)0;
	result = alloc__UxtcZ3QOXKsB7mMchxUf9cg_2(allocator, size);
	zeroMem__FsvhfMqbswETmyMWtamDewsystem(result, size);
	return result;
}
N_LIB_PRIVATE N_NOCONV(void*, alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg)(NI size) {
	void* result;
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	result = (void*)0;
	result = alloc0__UxtcZ3QOXKsB7mMchxUf9cg((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.region), size);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, init__wKM37ZoL6WtPOU9bn6Ug18A)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, NI cap) {
	void* T1_;
	(*s).len = ((NI) 0);
	(*s).cap = cap;
	T1_ = (void*)0;
	T1_ = alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg(((NI) ((NI)(cap * ((NI) 8)))));
	(*s).d = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g**) (T1_));
}
static N_INLINE(NI, atomicInc__v6qORsZ9azlHHhOL1JYACRAsystem)(NI* memLoc, NI x) {
	NI result;
	result = (NI)0;
	result = __atomic_add_fetch(memLoc, x, __ATOMIC_RELAXED);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, initGC__amVlU9ajqZ06ujoesRBHcDg)(void) {
	NimThreadVars* NimTV_;
	NI T1_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.cycleThreshold = ((NI) 4194304);
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stat.collections = ((NI) 0);
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stat.maxThreshold = ((NI) 0);
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stat.maxStackSize = ((NI) 0);
	init__wKM37ZoL6WtPOU9bn6Ug18A((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.tempStack), ((NI) 1024));
	init__wKM37ZoL6WtPOU9bn6Ug18A((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.additionalRoots), ((NI) 1024));
	init__rlyb6Y54ONML4HcId0P2OA((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.toDispose));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T1_ = (NI)0;
	T1_ = atomicInc__v6qORsZ9azlHHhOL1JYACRAsystem((&gHeapidGenerator__hd54mEUTGcVuZLChYgtR9bg), ((NI) 1));
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.gcThreadId = (NI)(T1_ - ((NI) 1));
	}BeforeRet_: ;
}
static N_NIMCALL(void, Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA)(void* p, NI op) {
	tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg* a;
	a = (tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg*)p;
}
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
	NI T1_;
	result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = (NI)0;
	T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16));
	result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nimGCunref)(void* p) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell;
	NI L;
	NimThreadVars* NimTV_;
	NI i;
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	cell = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
	L = (NI)(NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.additionalRoots.len - ((NI) 1));
	i = L;
	d = NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.additionalRoots.d;
	{
		while (1) {
			if (!(((NI) 0) <= i)) goto LA2;
			{
				if (!(d[i] == cell)) goto LA5_;
				d[i] = d[L];
				NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.additionalRoots.len -= ((NI) 1);
				goto LA1;
			}
			LA5_: ;
			i -= ((NI) 1);
		} LA2: ;
	} LA1: ;
}
static N_INLINE(void*, cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
	void* result;
	NI T1_;
	result = (void*)0;
	T1_ = (NI)0;
	T1_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (cell)), ((NI) 16));
	result = ((void*) (T1_));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NU, getDiscriminant__7LnhHf25BuMRNdnPtDbjcw)(void* aa, TNimNode* n) {
	NU result;
	NU d;
	NU a;
{	result = (NU)0;
	d = (NU)0;
	a = ((NU) (ptrdiff_t) (aa));
	switch ((*(*n).typ).size) {
	case ((NI) 1):
	{
		d = ((NU) ((*((NU8*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
	}
	break;
	case ((NI) 2):
	{
		d = ((NU) ((*((NU16*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
	}
	break;
	case ((NI) 4):
	{
		d = ((NU) ((*((NU32*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
	}
	break;
	case ((NI) 8):
	{
		d = ((NU) ((*((NU64*) ((NU)((NU64)(a) + (NU64)(((NU) ((*n).offset)))))))));
	}
	break;
	default:
	{
		d = ((NU) 0);
	}
	break;
	}
	result = d;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(TNimNode*, selectBranch__2us2RQByTh81i9aW4EEgfmw)(void* aa, TNimNode* n) {
	TNimNode* result;
	NU discr;
	result = (TNimNode*)0;
	discr = getDiscriminant__7LnhHf25BuMRNdnPtDbjcw(aa, n);
	{
		if (!((NU64)(discr) < (NU64)(((NU) ((*n).len))))) goto LA3_;
		result = (*n).sons[(discr)- 0];
		{
			if (!(result == NIM_NIL)) goto LA7_;
			result = (*n).sons[((*n).len)- 0];
		}
		LA7_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		result = (*n).sons[((*n).len)- 0];
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, forAllSlotsAux__ld9axHPi9bpxevVrdgKiDF5Q)(void* dest, TNimNode* n, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
	NI d;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	switch ((*n).kind) {
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
	{
		NI T2_;
		T2_ = (NI)0;
		T2_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		forAllChildrenAux__3hKpU9c72lqUqbltnsyFjRw(((void*) (T2_)), (*n).typ, op);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
	{
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((*n).len - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA6;
					i = res;
					forAllSlotsAux__ld9axHPi9bpxevVrdgKiDF5Q(dest, (*n).sons[(i)- 0], op);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res += ((NI) 1);
				} LA6: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
	{
		TNimNode* m;
		m = selectBranch__2us2RQByTh81i9aW4EEgfmw(dest, n);
		{
			if (!!((m == NIM_NIL))) goto LA10_;
			forAllSlotsAux__ld9axHPi9bpxevVrdgKiDF5Q(dest, m, op);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA10_: ;
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
	{
	}
	break;
	}
	}BeforeRet_: ;
}
static N_INLINE(NI, starpercent___dgYAo7RfdUVVpvkfKDym8w_3system)(NI x, NI y) {
	NI result;
	result = (NI)0;
	result = ((NI) ((NU)((NU64)(((NU) (x))) * (NU64)(((NU) (y))))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, forAllChildrenAux__3hKpU9c72lqUqbltnsyFjRw)(void* dest, TNimType* mt, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
	NI d;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	{
		if (!(dest == NIM_NIL)) goto LA3_;
		goto BeforeRet_;
	}
	LA3_: ;
	{
		if (!!((((*mt).flags &(1U<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0))) goto LA7_;
		switch ((*mt).kind) {
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
		{
			doOperation__sl6eqhLncFedgwzv6TlMVw((*((void**) (d))), op);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		break;
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
		{
			forAllSlotsAux__ld9axHPi9bpxevVrdgKiDF5Q(dest, (*mt).node, op);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		break;
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 27):
		{
			{
				NI i;
				NI colontmp_;
				NI res;
				i = (NI)0;
				colontmp_ = (NI)0;
				colontmp_ = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
				res = ((NI) 0);
				{
					while (1) {
						NI T15_;
						NI T16_;
						if (!(res <= colontmp_)) goto LA14;
						i = res;
						T15_ = (NI)0;
						T15_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*mt).base).size);
						T16_ = (NI)0;
						T16_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, T15_);
						forAllChildrenAux__3hKpU9c72lqUqbltnsyFjRw(((void*) (T16_)), (*mt).base, op);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						res += ((NI) 1);
					} LA14: ;
				}
			}
		}
		break;
		default:
		{
		}
		break;
		}
	}
	LA7_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NI, align__vzThvqZajaR9ct9cQ7SOy1tQ)(NI address, NI alignment) {
	NI result;
	result = (NI)0;
	{
		if (!(alignment == ((NI) 0))) goto LA3_;
		result = address;
	}
	goto LA1_;
	LA3_: ;
	{
		result = (NI)((NI)(address + (NI)(alignment - ((NI) 1))) & (NI)((NU64) ~((NI)(alignment - ((NI) 1)))));
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, forAllChildren__XCvXrotwhq0gugZtuZTNPQ)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
	tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	marker = (*(*cell).typ).marker;
	{
		void* T5_;
		if (!!((marker == NIM_NIL))) goto LA3_;
		T5_ = (void*)0;
		T5_ = cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem(cell);
		marker(T5_, ((NI) (op)));
	}
	goto LA1_;
	LA3_: ;
	{
		switch ((*(*cell).typ).kind) {
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
		{
			void* T8_;
			T8_ = (void*)0;
			T8_ = cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem(cell);
			forAllChildrenAux__3hKpU9c72lqUqbltnsyFjRw(T8_, (*(*cell).typ).base, op);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		break;
		case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
		{
			NI d;
			void* T10_;
			TGenericSeq* s;
			T10_ = (void*)0;
			T10_ = cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem(cell);
			d = ((NI) (ptrdiff_t) (T10_));
			s = ((TGenericSeq*) (d));
			{
				if (!!((s == NIM_NIL))) goto LA13_;
				{
					NI i;
					NI colontmp_;
					NI res;
					i = (NI)0;
					colontmp_ = (NI)0;
					colontmp_ = (NI)((*s).len - ((NI) 1));
					res = ((NI) 0);
					{
						while (1) {
							NI T18_;
							NI T19_;
							NI T20_;
							NI T21_;
							NI T22_;
							if (!(res <= colontmp_)) goto LA17;
							i = res;
							T18_ = (NI)0;
							T18_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*(*cell).typ).base).align);
							T19_ = (NI)0;
							T19_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, T18_);
							T20_ = (NI)0;
							T20_ = T19_;
							T21_ = (NI)0;
							T21_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*(*cell).typ).base).size);
							T22_ = (NI)0;
							T22_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(T20_, T21_);
							forAllChildrenAux__3hKpU9c72lqUqbltnsyFjRw(((void*) (T22_)), (*(*cell).typ).base, op);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							res += ((NI) 1);
						} LA17: ;
					}
				}
			}
			LA13_: ;
		}
		break;
		default:
		{
		}
		break;
		}
	}
	LA1_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, mark__SOJE9bROCOc8iabVsKM64Sg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		void* c_2;
		tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* it;
		c_2 = (void*)0;
		acquire__2gdcVC9bfoOlGMK1NSM2nLQ((&(*gch).toDispose.lock));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		it = (*gch).toDispose.head;
		{
			while (1) {
				if (!!((it == NIM_NIL))) goto LA3;
				{
					NI i;
					NI colontmp_;
					NI res;
					i = (NI)0;
					colontmp_ = (NI)0;
					colontmp_ = (NI)((*it).dataLen - ((NI) 1));
					res = ((NI) 0);
					{
						while (1) {
							if (!(res <= colontmp_)) goto LA6;
							i = res;
							c_2 = (*it).d[(i)- 0];
							nimGCunref(c_2);
							res += ((NI) 1);
						} LA6: ;
					}
				}
				it = (*it).next;
			} LA3: ;
		}
		release__2gdcVC9bfoOlGMK1NSM2nLQ_2((&(*gch).toDispose.lock));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	(*c).refcount = ((NI) 2);
	forAllChildren__XCvXrotwhq0gugZtuZTNPQ(c, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 1));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		while (1) {
			tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* d;
			if (!(((NI) 0) < (*gch).tempStack.len)) goto LA8;
			(*gch).tempStack.len -= ((NI) 1);
			d = (*gch).tempStack.d[(*gch).tempStack.len];
			{
				if (!((*d).refcount == ((NI) 0))) goto LA11_;
				(*d).refcount = ((NI) 2);
				forAllChildren__XCvXrotwhq0gugZtuZTNPQ(d, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 1));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA11_: ;
		} LA8: ;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NOCONV(void*, allocImpl__KzdpcuLT9aef9bsiSHlIu9aFg_2)(NI size) {
	void* result;
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	result = (void*)0;
	result = alloc__UxtcZ3QOXKsB7mMchxUf9cg_2((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.region), size);
	return result;
}
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
	nimCopyMem(dest, source, size);
}
static N_INLINE(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*, pageAddr__JNTkgd9cRu9a9bEvn7wS0U8EAsystem)(void* p) {
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* result;
	result = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
	result = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) ((NI)(((NI) (ptrdiff_t) (p)) & ((NI) -4096))));
	return result;
}
static N_INLINE(NIM_BOOL, isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c) {
	NIM_BOOL result;
{	result = (NIM_BOOL)0;
	result = ((*c).size <= ((NI) 4032));
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, chunkUnused__2Ih49c9ai3KYJhUe3C8xg07w_2system)(tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((NI)((*c).prevSize & ((NI) 1)) == ((NI) 0));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, removeChunkFromMatrix__YSJZJgeU5UU2aa8GNvs3WA_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* b) {
	tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ T1_;
	NI fl;
	NI sl;
	T1_ = mappingInsert__SRLfEtcWb2dn0ht85HEwbQsystem((*b).Sup.size);
	fl = T1_.Field0;
	sl = T1_.Field1;
	{
		if (!!(((*b).next == NIM_NIL))) goto LA4_;
		(*(*b).next).prev = (*b).prev;
	}
	LA4_: ;
	{
		if (!!(((*b).prev == NIM_NIL))) goto LA8_;
		(*(*b).prev).next = (*b).next;
	}
	LA8_: ;
	{
		if (!((*a).matrix[(fl)- 0][(sl)- 0] == b)) goto LA12_;
		(*a).matrix[(fl)- 0][(sl)- 0] = (*b).next;
		{
			if (!((*a).matrix[(fl)- 0][(sl)- 0] == NIM_NIL)) goto LA16_;
			clearBit__I4TSeZGFKfrVTL1oqiweCg_2system(sl, (&(*a).slBitmap[(fl)- 0]));
			{
				if (!((*a).slBitmap[(fl)- 0] == ((NU32) 0))) goto LA20_;
				clearBit__I4TSeZGFKfrVTL1oqiweCg_2system(fl, (&(*a).flBitmap));
			}
			LA20_: ;
		}
		LA16_: ;
	}
	LA12_: ;
	(*b).prev = NIM_NIL;
	(*b).next = NIM_NIL;
}
N_LIB_PRIVATE N_NIMCALL(void, excl__9cAWqpgI1NbhhZ3cVPHhI5A)(tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA* s, NI key) {
	tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* t;
	t = intSetGet__O3FRrWKKUdi8uRTGxiPdIg((&(*s)), (NI)((NI64)(key) >> (NU64)(((NI) 9))));
	{
		NI u;
		if (!!((t == NIM_NIL))) goto LA3_;
		u = (NI)(key & ((NI) 511));
		(*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] = (NU)((*t).bits[((NI)((NI64)(u) >> (NU64)(((NI) 6))))- 0] & (NU)((NU64) ~((NU)((NU64)(((NU) 1)) << (NU64)((NI)(u & ((NI) 63)))))));
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, freeBigChunk__IPvsryqksLyNxxag3IQr2g)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c) {
	tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_2;
	NI prevSize;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* ri;
	NI T25_;
	c_2 = c;
	(*a).freeMem += (*c_2).Sup.size;
	(*c_2).Sup.prevSize = (NI)((*c_2).Sup.prevSize & ((NI) -2));
	prevSize = (*c_2).Sup.prevSize;
	{
		tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* le;
		NI T5_;
		if (!!((prevSize == ((NI) 0)))) goto LA3_;
		T5_ = (NI)0;
		T5_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (c_2)), prevSize);
		le = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (T5_));
		{
			NIM_BOOL T8_;
			T8_ = (NIM_BOOL)0;
			T8_ = isAccessible__EZspgz843pJ9adnD0ZpJO6wsystem((&(*a)), ((void*) (le)));
			if (!(T8_)) goto LA9_;
			T8_ = chunkUnused__2Ih49c9ai3KYJhUe3C8xg07w_2system(le);
			LA9_: ;
			if (!T8_) goto LA10_;
			{
				NIM_BOOL T14_;
				NIM_BOOL T15_;
				tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T19_;
				NI T20_;
				T14_ = (NIM_BOOL)0;
				T15_ = (NIM_BOOL)0;
				T15_ = isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem(le);
				T14_ = !(T15_);
				if (!(T14_)) goto LA16_;
				T14_ = ((*le).size < ((NI) 1056964608));
				LA16_: ;
				if (!T14_) goto LA17_;
				removeChunkFromMatrix__YSJZJgeU5UU2aa8GNvs3WA_2(a, ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (le)));
				(*le).size += (*c_2).Sup.size;
				T19_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
				T19_ = &c_2->Sup;
				T20_ = (NI)0;
				T20_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(T19_);
				excl__9cAWqpgI1NbhhZ3cVPHhI5A((&(*a).chunkStarts), T20_);
				c_2 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (le));
				{
					tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* rest;
					if (!(((NI) 1056964608) < (*c_2).Sup.size)) goto LA23_;
					rest = splitChunk2__gSNzk4aToVCSTE1opfEv2A(a, c_2, ((NI) 1056964608));
					addChunkToMatrix__YSJZJgeU5UU2aa8GNvs3WA(a, c_2);
					c_2 = rest;
				}
				LA23_: ;
			}
			LA17_: ;
		}
		LA10_: ;
	}
	LA3_: ;
	T25_ = (NI)0;
	T25_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (c_2)), (*c_2).Sup.size);
	ri = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) (T25_));
	{
		NIM_BOOL T28_;
		T28_ = (NIM_BOOL)0;
		T28_ = isAccessible__EZspgz843pJ9adnD0ZpJO6wsystem((&(*a)), ((void*) (ri)));
		if (!(T28_)) goto LA29_;
		T28_ = chunkUnused__2Ih49c9ai3KYJhUe3C8xg07w_2system(ri);
		LA29_: ;
		if (!T28_) goto LA30_;
		{
			NIM_BOOL T34_;
			NIM_BOOL T35_;
			NI T39_;
			T34_ = (NIM_BOOL)0;
			T35_ = (NIM_BOOL)0;
			T35_ = isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem(ri);
			T34_ = !(T35_);
			if (!(T34_)) goto LA36_;
			T34_ = ((*c_2).Sup.size < ((NI) 1056964608));
			LA36_: ;
			if (!T34_) goto LA37_;
			removeChunkFromMatrix__YSJZJgeU5UU2aa8GNvs3WA_2(a, ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (ri)));
			(*c_2).Sup.size += (*ri).size;
			T39_ = (NI)0;
			T39_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(ri);
			excl__9cAWqpgI1NbhhZ3cVPHhI5A((&(*a).chunkStarts), T39_);
			{
				tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* rest_2;
				if (!(((NI) 1056964608) < (*c_2).Sup.size)) goto LA42_;
				rest_2 = splitChunk2__gSNzk4aToVCSTE1opfEv2A(a, c_2, ((NI) 1056964608));
				addChunkToMatrix__YSJZJgeU5UU2aa8GNvs3WA(a, rest_2);
			}
			LA42_: ;
		}
		LA37_: ;
	}
	LA30_: ;
	addChunkToMatrix__YSJZJgeU5UU2aa8GNvs3WA(a, c_2);
}
static N_INLINE(void, deallocAvlNode__pgghNmDMWP23LqxNq9atk7gsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n) {
	(*n).link[(((NI) 0))- 0] = (*a).freeAvlNodes;
	(*a).freeAvlNodes = n;
}
N_LIB_PRIVATE N_NIMCALL(void, del__Io5JDKCS5u26IEWw0J53hQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw** t, NI x) {
{	{
		if (!((*(*t)).link[(((NI) 0))- 0] == (*t))) goto LA3_;
		goto BeforeRet_;
	}
	LA3_: ;
	(*a).last = (*t);
	{
		NIM_BOOL T7_;
		T7_ = (NIM_BOOL)0;
		T7_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(x, (*(*t)).key);
		if (!T7_) goto LA8_;
		del__Io5JDKCS5u26IEWw0J53hQ(a, &(*(*t)).link[(((NI) 0))- 0], x);
	}
	goto LA5_;
	LA8_: ;
	{
		(*a).deleted = (*t);
		del__Io5JDKCS5u26IEWw0J53hQ(a, &(*(*t)).link[(((NI) 1))- 0], x);
	}
	LA5_: ;
	{
		NIM_BOOL T13_;
		NIM_BOOL T14_;
		T13_ = (NIM_BOOL)0;
		T14_ = (NIM_BOOL)0;
		T14_ = ((*t) == (*a).last);
		if (!(T14_)) goto LA15_;
		T14_ = !(((*(*a).deleted).link[(((NI) 0))- 0] == (*a).deleted));
		LA15_: ;
		T13_ = T14_;
		if (!(T13_)) goto LA16_;
		T13_ = (x == (*(*a).deleted).key);
		LA16_: ;
		if (!T13_) goto LA17_;
		(*(*a).deleted).key = (*(*t)).key;
		(*(*a).deleted).upperBound = (*(*t)).upperBound;
		(*a).deleted = getBottom__3mqnVBLDtYhZizqw9bvHELA(a);
		(*t) = (*(*t)).link[(((NI) 1))- 0];
		deallocAvlNode__pgghNmDMWP23LqxNq9atk7gsystem(a, (*a).last);
	}
	goto LA11_;
	LA17_: ;
	{
		NIM_BOOL T20_;
		T20_ = (NIM_BOOL)0;
		T20_ = ((*(*(*t)).link[(((NI) 0))- 0]).level < (NI)((*(*t)).level - ((NI) 1)));
		if (T20_) goto LA21_;
		T20_ = ((*(*(*t)).link[(((NI) 1))- 0]).level < (NI)((*(*t)).level - ((NI) 1)));
		LA21_: ;
		if (!T20_) goto LA22_;
		(*(*t)).level -= ((NI) 1);
		{
			if (!((*(*t)).level < (*(*(*t)).link[(((NI) 1))- 0]).level)) goto LA26_;
			(*(*(*t)).link[(((NI) 1))- 0]).level = (*(*t)).level;
		}
		LA26_: ;
		skew__NJo8pxZdXEAIa7wkHls9cOw(t);
		skew__NJo8pxZdXEAIa7wkHls9cOw(&(*(*t)).link[(((NI) 1))- 0]);
		skew__NJo8pxZdXEAIa7wkHls9cOw(&(*(*(*t)).link[(((NI) 1))- 0]).link[(((NI) 1))- 0]);
		split__NJo8pxZdXEAIa7wkHls9cOw_2(t);
		split__NJo8pxZdXEAIa7wkHls9cOw_2(&(*(*t)).link[(((NI) 1))- 0]);
	}
	goto LA11_;
	LA22_: ;
	LA11_: ;
	}BeforeRet_: ;
}
static N_INLINE(void, decCurrMem__JPUl8p4328ZL9bXnEtbaZcA_2system)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, NI bytes) {
	(*a).maxMem = (((*a).maxMem >= (*a).currMem) ? (*a).maxMem : (*a).currMem);
	(*a).currMem -= bytes;
}
static N_INLINE(void, osDeallocPages__dRMEutPSAkbR9b9blNmTzvoQsystem)(void* p, NI size) {
	{
		int T3_;
		int T6_;
		T3_ = (int)0;
		T3_ = VirtualFree(p, ((NI) 0), ((NI32) 32768));
		if (!(T3_ == ((NI32) 0))) goto LA4_;
		T6_ = (int)0;
		T6_ = printf("virtualFree failing!");
		exit(((NI) 1));
	}
	LA4_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, freeHugeChunk__IPvsryqksLyNxxag3IQr2g_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c) {
	NI size;
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T1_;
	NI T2_;
	size = (*c).Sup.size;
	T1_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
	T1_ = &c->Sup;
	T2_ = (NI)0;
	T2_ = pageIndex__D8ZW0myZd7Fa6ncDvW9a9cMQsystem(T1_);
	excl__9cAWqpgI1NbhhZ3cVPHhI5A((&(*a).chunkStarts), T2_);
	decCurrMem__JPUl8p4328ZL9bXnEtbaZcA_2system(a, size);
	osDeallocPages__dRMEutPSAkbR9b9blNmTzvoQsystem(((void*) (c)), size);
}
N_LIB_PRIVATE N_NIMCALL(void, rawDealloc__K7uQ6aTKvW6OnOV8EMoNNQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p) {
	tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c;
	c = pageAddr__JNTkgd9cRu9a9bEvn7wS0U8EAsystem(p);
	{
		NIM_BOOL T3_;
		tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c_2;
		NI s;
		tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* f;
		T3_ = (NIM_BOOL)0;
		T3_ = isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem(c);
		if (!T3_) goto LA4_;
		c_2 = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (c));
		s = (*c_2).Sup.size;
		(*a).occ -= s;
		f = ((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (p));
		(*f).zeroField = ((NI) 0);
		(*f).next = (*c_2).freeList;
		(*c_2).freeList = f;
		{
			if (!((*c_2).free < s)) goto LA8_;
			listAdd__G9cCXZ1ju0DgzqrqBg9acaKQsystem(&(*a).freeSmallChunks[((NI)(s / ((NI) 16)))- 0], c_2);
			(*c_2).free += s;
		}
		goto LA6_;
		LA8_: ;
		{
			(*c_2).free += s;
			{
				if (!((*c_2).free == ((NI) 4032))) goto LA13_;
				listRemove__G9cCXZ1ju0DgzqrqBg9acaKQ_2system(&(*a).freeSmallChunks[((NI)(s / ((NI) 16)))- 0], c_2);
				(*c_2).Sup.size = ((NI) 4096);
				freeBigChunk__IPvsryqksLyNxxag3IQr2g(a, ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c_2)));
			}
			LA13_: ;
		}
		LA6_: ;
	}
	goto LA1_;
	LA4_: ;
	{
		tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_3;
		tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* T16_;
		c_3 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c));
		(*a).occ -= (*c_3).Sup.size;
		(*a).deleted = getBottom__3mqnVBLDtYhZizqw9bvHELA(a);
		T16_ = (tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg*)0;
		T16_ = a;
		del__Io5JDKCS5u26IEWw0J53hQ(T16_, &(*a).root, ((NI) (ptrdiff_t) ((*c_3).data)));
		{
			if (!(((NI) 1056964609) <= (*c_3).Sup.size)) goto LA19_;
			freeHugeChunk__IPvsryqksLyNxxag3IQr2g_2(a, c_3);
		}
		goto LA17_;
		LA19_: ;
		{
			freeBigChunk__IPvsryqksLyNxxag3IQr2g(a, c_3);
		}
		LA17_: ;
	}
	LA1_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, dealloc__Jg1OaY9ahkT3MBopLAXRSGw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* allocator, void* p) {
	void* x;
	NI T1_;
	T1_ = (NI)0;
	T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (p)), ((NI) 16));
	x = ((void*) (T1_));
	rawDealloc__K7uQ6aTKvW6OnOV8EMoNNQ(allocator, x);
}
N_LIB_PRIVATE N_NOCONV(void, deallocImpl__SAtZpVrJ3o5FJvSdLQe9auA)(void* p) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	dealloc__Jg1OaY9ahkT3MBopLAXRSGw((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.region), p);
}
static N_INLINE(void, add__W9aRfhn7HvnQTPAb8ajo1uwsystem)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
	{
		tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
		void* T5_;
		void* T6_;
		if (!((*s).cap <= (*s).len)) goto LA3_;
		(*s).cap = (NI)((NI)((*s).cap * ((NI) 3)) / ((NI) 2));
		T5_ = (void*)0;
		T5_ = allocImpl__KzdpcuLT9aef9bsiSHlIu9aFg_2(((NI) ((NI)((*s).cap * ((NI) 8)))));
		d = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g**) (T5_));
		T6_ = (void*)0;
		T6_ = ((void*) ((*s).d));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) (d)), T6_, ((NI) ((NI)((*s).len * ((NI) 8)))));
		deallocImpl__SAtZpVrJ3o5FJvSdLQe9auA(((void*) ((*s).d)));
		(*s).d = d;
	}
	LA3_: ;
	(*s).d[(*s).len] = c;
	(*s).len += ((NI) 1);
}
N_LIB_PRIVATE N_NIMCALL(void, doOperation__sl6eqhLncFedgwzv6TlMVw)(void* p, tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ op) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c;
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	{
		if (!(p == NIM_NIL)) goto LA3_;
		goto BeforeRet_;
	}
	LA3_: ;
	c = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
	switch (op) {
	case ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 0):
	{
		mark__SOJE9bROCOc8iabVsKM64Sg((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q), c);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) 1):
	{
		add__W9aRfhn7HvnQTPAb8ajo1uwsystem((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.tempStack), c);
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	doOperation__sl6eqhLncFedgwzv6TlMVw(d, ((tyEnum_WalkOp__Wfy7gT5VQ8B3aJBxqU8D9cQ) (op)));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_NIMCALL(void, Marker_tySequence__aNpJjaoUowCQc7fBn3wtDQ)(void* p, NI op) {
	tySequence__aNpJjaoUowCQc7fBn3wtDQ* a;
	NI T1_;
	a = (tySequence__aNpJjaoUowCQc7fBn3wtDQ*)p;
	T1_ = (NI)0;
	for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
	nimGCvisit((void*)a->data[T1_].ClE_0, op);
	}
}
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_3)(void) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	nimGCvisit((void*)NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw, 0);
}
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc) {
	{
		if (!(threadLocalMarkersLen <= ((NI) 3499))) goto LA3_;
		threadLocalMarkers[(threadLocalMarkersLen)- 0] = markerProc;
		threadLocalMarkersLen += ((NI) 1);
	}
	goto LA1_;
	LA3_: ;
	{
		rawWrite(stderr, "[GC] cannot register thread local variable; too many thread loc"
"al variables");
		exit(((NI) 1));
	}
	LA1_: ;
}
static N_NIMCALL(void, Marker_tySequence__uB9b75OUPRENsBAu4AnoePA)(void* p, NI op) {
	tySequence__uB9b75OUPRENsBAu4AnoePA* a;
	NI T1_;
	a = (tySequence__uB9b75OUPRENsBAu4AnoePA*)p;
	T1_ = (NI)0;
}
static N_NIMCALL(void, Marker_tyRef__vU9aO9cTqOMn6CBzhV8rX7Sw)(void* p, NI op) {
	Exception* a;
	a = (Exception*)p;
	nimGCvisit((void*)(*a).parent, op);
	nimGCvisit((void*)(*a).message, op);
	nimGCvisit((void*)(*a).trace, op);
	nimGCvisit((void*)(*a).up, op);
}
static N_NIMCALL(void, TM__Q5wkpxktOdTGvlSRo9bzt9aw_6)(void) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	nimGCvisit((void*)NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg, 0);
}
N_LIB_PRIVATE N_NIMCALL(NI, getRefcount)(void* p) {
	NI result;
	result = (NI)0;
	result = ((NI) 0);
	return result;
}
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) {
	NCSTRING result;
	result = (NCSTRING)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (s == NIM_NIL);
		if (T3_) goto LA4_;
		T3_ = ((*s).Sup.len == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		result = "";
	}
	goto LA1_;
	LA5_: ;
	{
		result = ((NCSTRING) ((*s).data));
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, nimLoadLibrary)(NimStringDesc* path) {
	void* result;
	HINSTANCE T1_;
	result = (void*)0;
	T1_ = (HINSTANCE)0;
	T1_ = LoadLibraryA(nimToCStringConv(path));
	result = ((void*) (T1_));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nimLoadLibraryError)(NimStringDesc* path) {
	NI32 loadError;
	rawWrite(stderr, "could not load: ");
	rawWrite(stderr, nimToCStringConv(path));
	loadError = GetLastError();
	{
		if (!(loadError == ((NI32) 193))) goto LA3_;
		rawWrite(stderr, "\012(bad format; library may be wrong architecture)");
	}
	LA3_: ;
	rawWrite(stderr, "\012");
	exit(((NI) 1));
}
static N_INLINE(NI, percentpercent___dgYAo7RfdUVVpvkfKDym8w_4system)(NI x, NI y) {
	NI result;
	result = (NI)0;
	result = ((NI) ((NU)((NU64)(((NU) (x))) % (NU64)(((NU) (y))))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, procAddrError)(NCSTRING name) {
	rawWrite(stderr, "could not import: ");
	rawWrite(stderr, name);
	rawWrite(stderr, "\012");
	exit(((NI) 1));
}
N_LIB_PRIVATE N_NIMCALL(void*, nimGetProcAddr)(void* lib, NCSTRING name) {
	void* result;
	tyArray__4y4exD1dAnu89atYV5jeSuw decorated;
	NI m;
{	result = (void*)0;
	result = GetProcAddress(((HINSTANCE) (lib)), name);
	{
		if (!!((result == NIM_NIL))) goto LA3_;
		goto BeforeRet_;
	}
	LA3_: ;
	nimZeroMem((void*)decorated, sizeof(tyArray__4y4exD1dAnu89atYV5jeSuw));
	decorated[(((NI) 0))- 0] = 95;
	m = ((NI) 1);
	{
		while (1) {
			if (!(m < ((NI) 245))) goto LA6;
			{
				if (!((NU8)(name[(NI)(m - ((NI) 1))]) == (NU8)(0))) goto LA9_;
				goto LA5;
			}
			LA9_: ;
			decorated[(m)- 0] = name[(NI)(m - ((NI) 1))];
			m += ((NI) 1);
		} LA6: ;
	} LA5: ;
	decorated[(m)- 0] = 64;
	{
		NI i;
		NI res;
		i = (NI)0;
		res = ((NI) 0);
		{
			while (1) {
				NI k;
				if (!(res <= ((NI) 50))) goto LA13;
				i = res;
				k = (NI)(i * ((NI) 4));
				{
					if (!((NI)(k / ((NI) 100)) == ((NI) 0))) goto LA16_;
					{
						if (!((NI)(k / ((NI) 10)) == ((NI) 0))) goto LA20_;
						m = (NI)(m + ((NI) 1));
					}
					goto LA18_;
					LA20_: ;
					{
						m = (NI)(m + ((NI) 2));
					}
					LA18_: ;
				}
				goto LA14_;
				LA16_: ;
				{
					m = (NI)(m + ((NI) 3));
				}
				LA14_: ;
				decorated[((NI)(m + ((NI) 1)))- 0] = 0;
				{
					while (1) {
						NI T26_;
						T26_ = (NI)0;
						T26_ = percentpercent___dgYAo7RfdUVVpvkfKDym8w_4system(k, ((NI) 10));
						decorated[(m)- 0] = ((NIM_CHAR) (((NI) ((NI)(((NI) 48) + T26_)))));
						m -= ((NI) 1);
						k = (NI)(k / ((NI) 10));
						{
							if (!(k == ((NI) 0))) goto LA29_;
							goto LA24;
						}
						LA29_: ;
					}
				} LA24: ;
				result = GetProcAddress(((HINSTANCE) (lib)), ((NCSTRING) (decorated)));
				{
					if (!!((result == NIM_NIL))) goto LA33_;
					goto BeforeRet_;
				}
				LA33_: ;
				res += ((NI) 1);
			} LA13: ;
		}
	}
	procAddrError(name);
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__9clYsYwyjCqe2PFTuCI3Ubg)(void* p, NI op) {
	tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA* a;
	a = (tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(NI, getFreeMem__o7kGt4Ciqh9aCBinZc9bV9cugsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	NI result;
	result = (NI)0;
	result = (*a).freeMem;
	return result;
}
static N_INLINE(NI, getOccupiedMem__o7kGt4Ciqh9aCBinZc9bV9cug_2system)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	NI result;
	result = (NI)0;
	result = (*a).occ;
	return result;
}
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__VOU3z9bbtHMYBiCVB5tMX1g)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack) {
	NI result;
	void* volatile pos;
	result = (NI)0;
	pos = ((void*) ((&pos)));
	{
		if (!!((pos == NIM_NIL))) goto LA3_;
		result = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) ((*stack).bottom)), ((NI) (ptrdiff_t) (pos)));
	}
	goto LA1_;
	LA3_: ;
	{
		result = ((NI) 0);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NOINLINE(NI, stackSize__0yw8cp0rOgL8i0O5kzzb0g)(void) {
	NI result;
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	result = (NI)0;
	result = ((NI) 0);
	{
		tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack;
		NI T2_;
		stack = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
		stack = (&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack);
		T2_ = (NI)0;
		T2_ = stackSize__VOU3z9bbtHMYBiCVB5tMX1g(stack);
		result = (NI)(result + T2_);
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, lowGauge__vu9a10GqvNeXA9alSqdG48cw)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n) {
	NI result;
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* it;
	result = (NI)0;
	it = n;
	{
		while (1) {
			if (!!(((*it).link[(((NI) 0))- 0] == it))) goto LA2;
			result = (*it).key;
			it = (*it).link[(((NI) 0))- 0];
		} LA2: ;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, highGauge__vu9a10GqvNeXA9alSqdG48cw_2)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* n) {
	NI result;
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* it;
	result = (NI)0;
	result = ((NI) -1);
	it = n;
	{
		while (1) {
			if (!!(((*it).link[(((NI) 0))- 0] == it))) goto LA2;
			result = (*it).upperBound;
			it = (*it).link[(((NI) 1))- 0];
		} LA2: ;
	}
	return result;
}
static N_INLINE(void, prepareForInteriorPointerChecking__ot9aebHKDFT2OPbEVY47F9bQsystem)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	(*a).minLargeObj = lowGauge__vu9a10GqvNeXA9alSqdG48cw((*a).root);
	(*a).maxLargeObj = highGauge__vu9a10GqvNeXA9alSqdG48cw_2((*a).root);
}
N_LIB_PRIVATE N_NIMCALL(void, setPosition__Fnam3HOmbq2ymF0tDBas5Q)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position) {
}
N_LIB_PRIVATE N_NIMCALL(tyObject_GcStack__7fytPA5bBsob6See21YMRA*, getActiveStack__muO7WGG730PTJWpoUnluHg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
	tyObject_GcStack__7fytPA5bBsob6See21YMRA* result;
	result = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
	result = (&(*gch).stack);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isActiveStack__c6NLIYJQ5DIKtQqRJH8S7w)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = NIM_TRUE;
	return result;
}
static N_INLINE(NIM_BOOL, lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system)(NI x, NI y) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((NU64)(((NU) (x))) <= (NU64)(((NU) (y))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*, inRange__BIq3l3oBvrBeYSWFT5iXiw)(tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root, NI key) {
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* result;
	tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* it;
{	result = (tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw*)0;
	it = root;
	{
		while (1) {
			NIM_BOOL T9_;
			if (!!(((*it).link[(((NI) 0))- 0] == it))) goto LA2;
			{
				NIM_BOOL T5_;
				T5_ = (NIM_BOOL)0;
				T5_ = lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system((*it).key, key);
				if (!(T5_)) goto LA6_;
				T5_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(key, (*it).upperBound);
				LA6_: ;
				if (!T5_) goto LA7_;
				result = it;
				goto BeforeRet_;
			}
			LA7_: ;
			T9_ = (NIM_BOOL)0;
			T9_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*it).key, key);
			it = (*it).link[(T9_)- 0];
		} LA2: ;
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, interiorAllocatedPtr__NuzKjA4SX9afyji9cHHIuKpQ)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a, void* p) {
	void* result;
	result = (void*)0;
	{
		NIM_BOOL T3_;
		tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c;
		T3_ = (NIM_BOOL)0;
		T3_ = isAccessible__EZspgz843pJ9adnD0ZpJO6wsystem(a, p);
		if (!T3_) goto LA4_;
		c = pageAddr__JNTkgd9cRu9a9bEvn7wS0U8EAsystem(p);
		{
			NIM_BOOL T8_;
			T8_ = (NIM_BOOL)0;
			T8_ = chunkUnused__2Ih49c9ai3KYJhUe3C8xg07w_2system(c);
			if (!!(T8_)) goto LA9_;
			{
				NIM_BOOL T13_;
				tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c_2;
				NI offset;
				T13_ = (NIM_BOOL)0;
				T13_ = isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem(c);
				if (!T13_) goto LA14_;
				c_2 = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (c));
				offset = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((NI)(((NI) (ptrdiff_t) (p)) & ((NI) 4095)), ((NI) 64));
				{
					NIM_BOOL T18_;
					tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ* d;
					NI T21_;
					NI T22_;
					NI T23_;
					NI T24_;
					T18_ = (NIM_BOOL)0;
					T18_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(offset, (*c_2).acc);
					if (!T18_) goto LA19_;
					T21_ = (NI)0;
					T21_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) ((*c_2).data)), offset);
					T22_ = (NI)0;
					T22_ = T21_;
					T23_ = (NI)0;
					T23_ = percentpercent___dgYAo7RfdUVVpvkfKDym8w_4system(offset, (*c_2).Sup.size);
					T24_ = (NI)0;
					T24_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(T22_, T23_);
					d = ((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (T24_));
					{
						NIM_BOOL T27_;
						T27_ = (NIM_BOOL)0;
						T27_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(((NI) 1), (*d).zeroField);
						if (!T27_) goto LA28_;
						result = ((void*) (d));
					}
					LA28_: ;
				}
				LA19_: ;
			}
			goto LA11_;
			LA14_: ;
			{
				tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_3;
				NU8* d_2;
				c_3 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c));
				d_2 = (*c_3).data;
				{
					NIM_BOOL T33_;
					T33_ = (NIM_BOOL)0;
					T33_ = (((void*) (d_2)) <= p);
					if (!(T33_)) goto LA34_;
					T33_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(((NI) 1), (*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (d_2))).zeroField);
					LA34_: ;
					if (!T33_) goto LA35_;
					result = ((void*) (d_2));
				}
				LA35_: ;
			}
			LA11_: ;
		}
		LA9_: ;
	}
	goto LA1_;
	LA4_: ;
	{
		NI q;
		q = ((NI) (ptrdiff_t) (p));
		{
			NIM_BOOL T40_;
			tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* avlNode;
			T40_ = (NIM_BOOL)0;
			T40_ = lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system((*a).minLargeObj, q);
			if (!(T40_)) goto LA41_;
			T40_ = lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system(q, (*a).maxLargeObj);
			LA41_: ;
			if (!T40_) goto LA42_;
			avlNode = inRange__BIq3l3oBvrBeYSWFT5iXiw((*a).root, q);
			{
				void* k;
				tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_4;
				tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* T48_;
				if (!!((avlNode == NIM_NIL))) goto LA46_;
				k = ((void*) ((*avlNode).key));
				T48_ = (tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*)0;
				T48_ = pageAddr__JNTkgd9cRu9a9bEvn7wS0U8EAsystem(k);
				c_4 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (T48_));
				{
					NIM_BOOL T51_;
					T51_ = (NIM_BOOL)0;
					T51_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(((NI) 1), (*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (k))).zeroField);
					if (!T51_) goto LA52_;
					result = k;
				}
				LA52_: ;
			}
			LA46_: ;
		}
		LA42_: ;
	}
	LA1_: ;
	return result;
}
static N_INLINE(void, gcMark__x5SbLN3uVBCsEa67N20nPwsystem)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, void* p) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell;
	NI c;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	cell = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
	c = ((NI) (ptrdiff_t) (cell));
	{
		NIM_BOOL T3_;
		tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* objStart;
		void* T6_;
		T3_ = (NIM_BOOL)0;
		T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(((NI) 4096), c);
		if (!T3_) goto LA4_;
		T6_ = (void*)0;
		T6_ = interiorAllocatedPtr__NuzKjA4SX9afyji9cHHIuKpQ((&(*gch).region), ((void*) (cell)));
		objStart = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T6_));
		{
			if (!!((objStart == NIM_NIL))) goto LA9_;
			mark__SOJE9bROCOc8iabVsKM64Sg(gch, objStart);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA9_: ;
	}
	LA4_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_CDECL(void, markStackAndRegisters__U6T7JWtDLrWhtmhXSoy9a6g)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
	jmp_buf registers;
	tyObject_GcStack__7fytPA5bBsob6See21YMRA* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	T1_ = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
	T1_ = getActiveStack__muO7WGG730PTJWpoUnluHg(gch);
	setPosition__Fnam3HOmbq2ymF0tDBas5Q(T1_, ((void*) ((&registers))));
	{
		int T4_;
		T4_ = (int)0;
		T4_ = setjmp(registers);
		if (!(T4_ == ((NI32) 0))) goto LA5_;
		{
			tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack;
			NI max;
			NI sp;
			stack = (tyObject_GcStack__7fytPA5bBsob6See21YMRA*)0;
			stack = (&(*gch).stack);
			max = ((NI) (ptrdiff_t) ((*stack).bottom));
			sp = ((NI) (ptrdiff_t) ((&registers)));
			{
				NIM_BOOL T10_;
				NI regEnd;
				T10_ = (NIM_BOOL)0;
				T10_ = isActiveStack__c6NLIYJQ5DIKtQqRJH8S7w(stack);
				if (!T10_) goto LA11_;
				regEnd = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(sp, ((NI)sizeof(jmp_buf)));
				{
					while (1) {
						NIM_BOOL T15_;
						NI T16_;
						T15_ = (NIM_BOOL)0;
						T15_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(sp, regEnd);
						if (!T15_) goto LA14;
						gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, (*((void**) (sp))));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						T16_ = (NI)0;
						T16_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(sp, ((NI) 4));
						gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, (*((void**) (T16_))));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						sp = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(sp, ((NI) 8));
					} LA14: ;
				}
			}
			LA11_: ;
			sp = (NI)(sp & ((NI) -8));
			{
				while (1) {
					NIM_BOOL T19_;
					T19_ = (NIM_BOOL)0;
					T19_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(sp, (NI)(max - ((NI) 64)));
					if (!T19_) goto LA18;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 0))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 1))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 2))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 3))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 4))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 5))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 6))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, ((void**) (sp))[(((NI) 7))- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					sp = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(sp, ((NI) 64));
				} LA18: ;
			}
			{
				while (1) {
					NIM_BOOL T22_;
					T22_ = (NIM_BOOL)0;
					T22_ = lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system(sp, max);
					if (!T22_) goto LA21;
					gcMark__x5SbLN3uVBCsEa67N20nPwsystem(gch, (*((void**) (sp))));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					sp = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(sp, ((NI) 8));
				} LA21: ;
			}
		}
	}
	LA5_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, markGlobals__XHio9cMpnLoH7GyCj1Z9besg_2)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		if (!((*gch).gcThreadId == ((NI) 0))) goto LA3_;
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)(globalMarkersLen - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA7;
					i = res;
					globalMarkers[(i)- 0]();
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res += ((NI) 1);
				} LA7: ;
			}
		}
	}
	LA3_: ;
	{
		NI i_2;
		NI colontmp__2;
		NI res_2;
		i_2 = (NI)0;
		colontmp__2 = (NI)0;
		colontmp__2 = (NI)(threadLocalMarkersLen - ((NI) 1));
		res_2 = ((NI) 0);
		{
			while (1) {
				if (!(res_2 <= colontmp__2)) goto LA10;
				i_2 = res_2;
				threadLocalMarkers[(i_2)- 0]();
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				res_2 += ((NI) 1);
			} LA10: ;
		}
	}
	d = (*gch).additionalRoots.d;
	{
		NI i_3;
		NI colontmp__3;
		NI res_3;
		i_3 = (NI)0;
		colontmp__3 = (NI)0;
		colontmp__3 = (NI)((*gch).additionalRoots.len - ((NI) 1));
		res_3 = ((NI) 0);
		{
			while (1) {
				if (!(res_3 <= colontmp__3)) goto LA13;
				i_3 = res_3;
				mark__SOJE9bROCOc8iabVsKM64Sg(gch, d[i_3]);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				res_3 += ((NI) 1);
			} LA13: ;
		}
	}
	}BeforeRet_: ;
}
static N_INLINE(NIM_BOOL, isCell__knKGR9cPCi0isv7h4omKxdAsystem)(void* p) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(((NI) 1), (*((tyObject_FreeCell__u6M5LHprqzkn9axr04yg9bGQ*) (p))).zeroField);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, prepareDealloc__fvhnFro5wEfzy879alizcUQ)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* cell) {
	TNimType* t;
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	t = (*cell).typ;
	{
		void* T5_;
		if (!!(((*t).finalizer == NIM_NIL))) goto LA3_;
		NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.recGcLock += ((NI) 1);
		T5_ = (void*)0;
		T5_ = cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem(cell);
		((Finalizer) ((*t).finalizer))(T5_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.recGcLock -= ((NI) 1);
	}
	LA3_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, freeCyclicCell__SOJE9bROCOc8iabVsKM64Sg_2)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	(*gch).stat.freedObjects += ((NI) 1);
	prepareDealloc__fvhnFro5wEfzy879alizcUQ(c);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	rawDealloc__K7uQ6aTKvW6OnOV8EMoNNQ((&(*gch).region), ((void*) (c)));
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, sweep__XHio9cMpnLoH7GyCj1Z9besg_3)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		void* x;
		x = (void*)0;
		(*gch).region.locked = NIM_TRUE;
		{
			NI s;
			s = (NI)0;
			{
				NI h;
				NI res;
				h = (NI)0;
				res = ((NI) 0);
				{
					while (1) {
						tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* r;
						if (!(res <= ((NI) 255))) goto LA5;
						h = res;
						r = (*gch).region.chunkStarts.data[(h)- 0];
						{
							while (1) {
								NI i;
								if (!!((r == NIM_NIL))) goto LA7;
								i = ((NI) 0);
								{
									while (1) {
										NU w;
										NI j;
										if (!(i <= ((NI) 7))) goto LA9;
										w = (*r).bits[(i)- 0];
										j = ((NI) 0);
										{
											while (1) {
												if (!!((w == ((NU) 0)))) goto LA11;
												{
													NI T16_;
													if (!!(((NU)(w & ((NU) 1)) == ((NU) 0)))) goto LA14_;
													T16_ = (NI)0;
													T16_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((NI)((NU64)(i) << (NU64)(((NI) 6))), j);
													s = (NI)((NI)((NU64)((*r).key) << (NU64)(((NI) 9))) | T16_);
													{
														NIM_BOOL T19_;
														tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w* c;
														T19_ = (NIM_BOOL)0;
														T19_ = contains__9b5xR7VBZVwQDvk5Nr9bDKdQ((&(*gch).region.chunkStarts), s);
														if (!T19_) goto LA20_;
														c = ((tyObject_BaseChunk__Sdq7WpT6qAH858F5ZEdG3w*) ((NI)((NU64)(s) << (NU64)(((NI) 12)))));
														{
															NIM_BOOL T24_;
															T24_ = (NIM_BOOL)0;
															T24_ = chunkUnused__2Ih49c9ai3KYJhUe3C8xg07w_2system(c);
															if (!!(T24_)) goto LA25_;
															{
																NIM_BOOL T29_;
																tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* c_2;
																NI size;
																NI a;
																NI limit;
																T29_ = (NIM_BOOL)0;
																T29_ = isSmallChunk__2Ih49c9ai3KYJhUe3C8xg07wsystem(c);
																if (!T29_) goto LA30_;
																c_2 = ((tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ*) (c));
																size = (*c_2).Sup.size;
																a = ((NI) (ptrdiff_t) ((*c_2).data));
																limit = (NI)(a + (*c_2).acc);
																{
																	while (1) {
																		NIM_BOOL T34_;
																		T34_ = (NIM_BOOL)0;
																		T34_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(a, limit);
																		if (!T34_) goto LA33;
																		x = ((void*) (a));
																		{
																			NIM_BOOL T37_;
																			tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c_3;
																			T37_ = (NIM_BOOL)0;
																			T37_ = isCell__knKGR9cPCi0isv7h4omKxdAsystem(x);
																			if (!T37_) goto LA38_;
																			c_3 = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (x));
																			{
																				if (!((*c_3).refcount == ((NI) 2))) goto LA42_;
																				(*c_3).refcount = ((NI) 0);
																			}
																			goto LA40_;
																			LA42_: ;
																			{
																				freeCyclicCell__SOJE9bROCOc8iabVsKM64Sg_2(gch, c_3);
																				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
																			}
																			LA40_: ;
																		}
																		LA38_: ;
																		a = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(a, size);
																	} LA33: ;
																}
															}
															goto LA27_;
															LA30_: ;
															{
																tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* c_4;
																c_4 = ((tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg*) (c));
																x = ((void*) ((*c_4).data));
																{
																	NIM_BOOL T48_;
																	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c_5;
																	T48_ = (NIM_BOOL)0;
																	T48_ = isCell__knKGR9cPCi0isv7h4omKxdAsystem(x);
																	if (!T48_) goto LA49_;
																	c_5 = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (x));
																	{
																		if (!((*c_5).refcount == ((NI) 2))) goto LA53_;
																		(*c_5).refcount = ((NI) 0);
																	}
																	goto LA51_;
																	LA53_: ;
																	{
																		freeCyclicCell__SOJE9bROCOc8iabVsKM64Sg_2(gch, c_5);
																		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
																	}
																	LA51_: ;
																}
																LA49_: ;
															}
															LA27_: ;
														}
														LA25_: ;
													}
													LA20_: ;
												}
												LA14_: ;
												j += ((NI) 1);
												w = (NU)((NU64)(w) >> (NU64)(((NI) 1)));
											} LA11: ;
										}
										i += ((NI) 1);
									} LA9: ;
								}
								r = (*r).next;
							} LA7: ;
						}
						res += ((NI) 1);
					} LA5: ;
				}
			}
		}
		(*gch).region.locked = NIM_FALSE;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NI, getOccupiedMem__hrQB9bN29c1nR1E9cHqYcNcDA)(void) {
	NI result;
	NimThreadVars* NimTV_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	result = (NI)0;
	result = NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.region.occ;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, collectCTBody__XHio9cMpnLoH7GyCj1Z9besg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
	NI T1_;
	NI T2_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	T1_ = (NI)0;
	T1_ = stackSize__0yw8cp0rOgL8i0O5kzzb0g();
	(*gch).stat.maxStackSize = (((*gch).stat.maxStackSize >= T1_) ? (*gch).stat.maxStackSize : T1_);
	prepareForInteriorPointerChecking__ot9aebHKDFT2OPbEVY47F9bQsystem((&(*gch).region));
	markStackAndRegisters__U6T7JWtDLrWhtmhXSoy9a6g(gch);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	markGlobals__XHio9cMpnLoH7GyCj1Z9besg_2(gch);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	sweep__XHio9cMpnLoH7GyCj1Z9besg_3(gch);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*gch).stat.collections += ((NI) 1);
	T2_ = (NI)0;
	T2_ = getOccupiedMem__hrQB9bN29c1nR1E9cHqYcNcDA();
	(*gch).cycleThreshold = ((((NI) 4194304) >= (NI)(T2_ * ((NI) 2))) ? ((NI) 4194304) : (NI)(T2_ * ((NI) 2)));
	(*gch).stat.maxThreshold = (((*gch).stat.maxThreshold >= (*gch).cycleThreshold) ? (*gch).stat.maxThreshold : (*gch).cycleThreshold);
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, collectCT__UyJsrKu7wmHDvZRV57hjsg)(tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch, NI size) {
	NI fmem;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	fmem = getFreeMem__o7kGt4Ciqh9aCBinZc9bV9cugsystem((&(*gch).region));
	{
		NIM_BOOL T3_;
		NIM_BOOL T4_;
		NI T5_;
		NIM_BOOL T7_;
		T3_ = (NIM_BOOL)0;
		T4_ = (NIM_BOOL)0;
		T5_ = (NI)0;
		T5_ = getOccupiedMem__o7kGt4Ciqh9aCBinZc9bV9cug_2system((&(*gch).region));
		T4_ = ((*gch).cycleThreshold <= T5_);
		if (T4_) goto LA6_;
		T7_ = (NIM_BOOL)0;
		T7_ = (fmem < size);
		if (!(T7_)) goto LA8_;
		T7_ = (((NI) 4194304) < fmem);
		LA8_: ;
		T4_ = T7_;
		LA6_: ;
		T3_ = T4_;
		if (!(T3_)) goto LA9_;
		T3_ = ((*gch).recGcLock == ((NI) 0));
		LA9_: ;
		if (!T3_) goto LA10_;
		collectCTBody__XHio9cMpnLoH7GyCj1Z9besg(gch);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA10_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void*, rawNewObj__ehkAaLROrd0Hc9aLROWt1nQ)(TNimType* typ, NI size, tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ* gch) {
	void* result;
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* res;
	void* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (void*)0;
	collectCT__UyJsrKu7wmHDvZRV57hjsg(gch, (NI)(size + ((NI) 16)));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T1_ = (void*)0;
	T1_ = rawAlloc__mE4QEVyMvGRVliDWDngZCQ((&(*gch).region), (NI)(size + ((NI) 16)));
	res = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
	(*res).typ = typ;
	(*res).refcount = ((NI) 0);
	result = cellToUsr__oh8PwD5vOIN9awo20FR9c8qAsystem(res);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size) {
	void* result;
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	result = (void*)0;
	result = rawNewObj__ehkAaLROrd0Hc9aLROWt1nQ(typ, size, (&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	zeroMem__FsvhfMqbswETmyMWtamDewsystem(result, ((NI) (size)));
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space) {
	NimStringDesc* result;
	NI s;
	void* T5_;
	result = (NimStringDesc*)0;
	s = space;
	{
		if (!(s < ((NI) 7))) goto LA3_;
		s = ((NI) 7);
	}
	LA3_: ;
	T5_ = (void*)0;
	T5_ = newObj((&strDesc__D0UzA4zsDu5tgpJQ9a9clXPg), (NI)((NI)(((NI) 16) + s) + ((NI) 1)));
	result = ((NimStringDesc*) (T5_));
	(*result).Sup.reserved = s;
	(*result).Sup.len = ((NI) 0);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, newObjNoInit)(TNimType* typ, NI size) {
	void* result;
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	result = (void*)0;
	result = rawNewObj__ehkAaLROrd0Hc9aLROWt1nQ(typ, size, (&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewStringNoInit)(NI space) {
	NimStringDesc* result;
	NI s;
	void* T5_;
	result = (NimStringDesc*)0;
	s = space;
	{
		if (!(s < ((NI) 7))) goto LA3_;
		s = ((NI) 7);
	}
	LA3_: ;
	T5_ = (void*)0;
	T5_ = newObjNoInit((&strDesc__D0UzA4zsDu5tgpJQ9a9clXPg), (NI)((NI)(((NI) 16) + s) + ((NI) 1)));
	result = ((NimStringDesc*) (T5_));
	(*result).Sup.reserved = s;
	(*result).Sup.len = ((NI) 0);
	return result;
}
static N_INLINE(NI, resize__cOCDWr16YD4j3dBrbbH3yQsystem)(NI old) {
	NI result;
	result = (NI)0;
	{
		if (!(old <= ((NI) 0))) goto LA3_;
		result = ((NI) 4);
	}
	goto LA1_;
	LA3_: ;
	{
		if (!(old < ((NI) 65536))) goto LA6_;
		result = (NI)(old * ((NI) 2));
	}
	goto LA1_;
	LA6_: ;
	{
		result = (NI)((NI)(old * ((NI) 3)) / ((NI) 2));
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		if (!(s == NIM_NIL)) goto LA3_;
		result = rawNewStringNoInit(((NI) 1));
		(*result).Sup.len = ((NI) 0);
	}
	goto LA1_;
	LA3_: ;
	{
		result = s;
		{
			NI r;
			void* T10_;
			void* T11_;
			if (!((NI)((*result).Sup.reserved & ((NI) IL64(4611686018427387903))) <= (*result).Sup.len)) goto LA8_;
			r = resize__cOCDWr16YD4j3dBrbbH3yQsystem((NI)((*result).Sup.reserved & ((NI) IL64(4611686018427387903))));
			result = rawNewStringNoInit(r);
			(*result).Sup.len = (*s).Sup.len;
			T10_ = (void*)0;
			T10_ = ((void*) ((&(*result).data[((NI) 0)])));
			T11_ = (void*)0;
			T11_ = ((void*) ((&(*s).data[((NI) 0)])));
			copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T10_, T11_, ((NI) ((NI)((*s).Sup.len + ((NI) 1)))));
			(*result).Sup.reserved = r;
		}
		LA8_: ;
	}
	LA1_: ;
	(*result).data[(*result).Sup.len] = c;
	(*result).data[(NI)((*result).Sup.len + ((NI) 1))] = 0;
	(*result).Sup.len += ((NI) 1);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		if (!(dest == NIM_NIL)) goto LA3_;
		result = rawNewStringNoInit(addlen);
	}
	goto LA1_;
	LA3_: ;
	{
		if (!((NI)((*dest).Sup.len + addlen) <= (NI)((*dest).Sup.reserved & ((NI) IL64(4611686018427387903))))) goto LA6_;
		result = dest;
	}
	goto LA1_;
	LA6_: ;
	{
		NI sp;
		NI T9_;
		void* T10_;
		void* T11_;
		T9_ = (NI)0;
		T9_ = resize__cOCDWr16YD4j3dBrbbH3yQsystem((NI)((*dest).Sup.reserved & ((NI) IL64(4611686018427387903))));
		sp = ((T9_ >= (NI)((*dest).Sup.len + addlen)) ? T9_ : (NI)((*dest).Sup.len + addlen));
		result = rawNewStringNoInit(sp);
		(*result).Sup.len = (*dest).Sup.len;
		T10_ = (void*)0;
		T10_ = ((void*) ((&(*result).data[((NI) 0)])));
		T11_ = (void*)0;
		T11_ = ((void*) ((&(*dest).data[((NI) 0)])));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T10_, T11_, ((NI) ((NI)((*dest).Sup.len + ((NI) 1)))));
		(*result).Sup.reserved = sp;
	}
	LA1_: ;
	return result;
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	{
		void* T5_;
		void* T6_;
		if (!!((src == NIM_NIL))) goto LA3_;
		T5_ = (void*)0;
		T5_ = ((void*) ((&(*dest).data[(*dest).Sup.len])));
		T6_ = (void*)0;
		T6_ = ((void*) ((*src).data));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T5_, T6_, ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
static N_INLINE(void, addEscapedChar__dfKNBK6s29c7zfWj2JwI7EQsystem)(NimStringDesc** s, NIM_CHAR c) {
	switch (((NU8)(c))) {
	case 7:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_8));
	}
	break;
	case 8:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_9));
	}
	break;
	case 9:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_10));
	}
	break;
	case 10:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_11));
	}
	break;
	case 11:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_12));
	}
	break;
	case 12:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_13));
	}
	break;
	case 13:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_14));
	}
	break;
	case 27:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_15));
	}
	break;
	case 92:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_16));
	}
	break;
	case 39:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_17));
	}
	break;
	case 34:
	{
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_18));
	}
	break;
	case 32 ... 33:
	case 35 ... 38:
	case 40 ... 91:
	case 93 ... 126:
	{
		(*s) = addChar((*s), c);
	}
	break;
	default:
	{
		NI n;
		(*s) = resizeString((*s), 2);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_19));
		n = ((NU8)(c));
		(*s) = addChar((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_20)->data[(NI)((NI64)((NI)(n & ((NI) 240))) >> (NU64)(((NI) 4)))]);
		(*s) = addChar((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_20)->data[(NI)(n & ((NI) 15))]);
	}
	break;
	}
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__45fPtFhY4FavRaYwDhRfuA)(NimStringDesc** s, NimStringDesc* x) {
	(*s) = resizeString((*s), 1);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_7));
	{
		NIM_CHAR c;
		NI i;
		NI L;
		c = (NIM_CHAR)0;
		i = ((NI) 0);
		L = (x ? x->Sup.len : 0);
		{
			while (1) {
				if (!(i < L)) goto LA3;
				c = x->data[i];
				{
					if (!((NU8)(c) <= (NU8)(127))) goto LA6_;
					addEscapedChar__dfKNBK6s29c7zfWj2JwI7EQsystem(s, c);
				}
				goto LA4_;
				LA6_: ;
				{
					(*s) = addChar((*s), c);
				}
				LA4_: ;
				i += ((NI) 1);
			} LA3: ;
		}
	}
	(*s) = resizeString((*s), 1);
appendString((*s), ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_7));
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		if (!!((src == NIM_NIL))) goto LA3_;
		{
			if (!!(((NI)((*src).Sup.reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)))) goto LA7_;
			result = src;
		}
		goto LA5_;
		LA7_: ;
		{
			void* T10_;
			void* T11_;
			result = rawNewStringNoInit((*src).Sup.len);
			(*result).Sup.len = (*src).Sup.len;
			T10_ = (void*)0;
			T10_ = ((void*) ((*result).data));
			T11_ = (void*)0;
			T11_ = ((void*) ((*src).data));
			copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T10_, T11_, ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		}
		LA5_: ;
	}
	LA3_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__r8GBEWywN07B3Rat3azS4Q)(void* p, NI op) {
	tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ* a;
	a = (tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*)p;
	nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__pO9abt7E7FWB3DInHeLgZeQsystem)(NimStringDesc* message) {
	tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ* T1_;
{	T1_ = (tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*)0;
	T1_ = (tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*) newObj((&NTI__r8GBEWywN07B3Rat3azS4Q_), sizeof(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ));
	(*T1_).Sup.Sup.Sup.Sup.m_type = (&NTI__9cxMi1BPLc3UKt9br86bGfGQ_);
	(*T1_).Sup.Sup.Sup.name = "OverflowDefect";
	(*T1_).Sup.Sup.Sup.message = copyString(message);
	raiseExceptionEx((Exception*)T1_, "OverflowDefect", "sysFatal", "fatal.nim", 49);
	goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void) {
	sysFatal__pO9abt7E7FWB3DInHeLgZeQsystem(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_22));
}
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len) {
	void* result;
	NI size;
	NI T1_;
	NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_21;
	NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_23;
{	result = (void*)0;
	T1_ = (NI)0;
	T1_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*typ).base).align);
	if (nimMulInt(len, (*(*typ).base).size, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_21)) { raiseOverflow(); goto BeforeRet_;
};
	if (nimAddInt(T1_, (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_21), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_23)) { raiseOverflow(); goto BeforeRet_;
};
	size = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_23);
	result = newObj(typ, size);
	(*((TGenericSeq*) (result))).len = len;
	(*((TGenericSeq*) (result))).reserved = len;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__dMaT1dYJWy6HCDx9bdXp24A)(TGenericSeq* a, NI elemAlign) {
	void* result;
	NI T1_;
	NI T2_;
	result = (void*)0;
	T1_ = (NI)0;
	T1_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), elemAlign);
	T2_ = (NI)0;
	T2_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (a)), T1_);
	result = ((void*) (T2_));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ) {
	TGenericSeq* result;
	result = (TGenericSeq*)0;
	{
		void* T5_;
		if (!(s == NIM_NIL)) goto LA3_;
		T5_ = (void*)0;
		T5_ = newSeq(typ, ((NI) 1));
		result = ((TGenericSeq*) (T5_));
		(*result).len = ((NI) 0);
	}
	goto LA1_;
	LA3_: ;
	{
		result = s;
		{
			NI r;
			void* T11_;
			void* T12_;
			void* T13_;
			void* T14_;
			void* T15_;
			if (!((NI)((*result).reserved & ((NI) IL64(4611686018427387903))) <= (*result).len)) goto LA9_;
			r = resize__cOCDWr16YD4j3dBrbbH3yQsystem((NI)((*result).reserved & ((NI) IL64(4611686018427387903))));
			T11_ = (void*)0;
			T11_ = newSeq(typ, r);
			result = ((TGenericSeq*) (T11_));
			(*result).len = (*s).len;
			T12_ = (void*)0;
			T12_ = dataPointer__dMaT1dYJWy6HCDx9bdXp24A(result, (*(*typ).base).align);
			T13_ = (void*)0;
			T13_ = T12_;
			T14_ = (void*)0;
			T14_ = dataPointer__dMaT1dYJWy6HCDx9bdXp24A(s, (*(*typ).base).align);
			T15_ = (void*)0;
			T15_ = T14_;
			copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T13_, T15_, ((NI) ((NI)((*s).len * (*(*typ).base).size))));
			(*s).len = ((NI) 0);
		}
		LA9_: ;
	}
	LA1_: ;
	return result;
}
static N_INLINE(void, pushCurrentException)(Exception* e) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	(*e).up = NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg;
	NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg = e;
}
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionAux__na8C8pUZ9cLQWVwk35l5vfw)(Exception* e) {
	NimThreadVars* NimTV_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	{
		if (!!((NimTV_->localRaiseHook__EIvMhANBvB9cp2Ezvt29cADg == NIM_NIL))) goto LA3_;
		{
			NIM_BOOL T7_;
			T7_ = (NIM_BOOL)0;
			T7_ = NimTV_->localRaiseHook__EIvMhANBvB9cp2Ezvt29cADg(e);
			if (!!(T7_)) goto LA8_;
			goto BeforeRet_;
		}
		LA8_: ;
	}
	LA3_: ;
	{
		if (!!((globalRaiseHook__JbO1ti4ULxrw54m4zNPbpA == NIM_NIL))) goto LA12_;
		{
			NIM_BOOL T16_;
			T16_ = (NIM_BOOL)0;
			T16_ = globalRaiseHook__JbO1ti4ULxrw54m4zNPbpA(e);
			if (!!(T16_)) goto LA17_;
			goto BeforeRet_;
		}
		LA17_: ;
	}
	LA12_: ;
	{
		if (!!((e == NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg))) goto LA21_;
		pushCurrentException(e);
	}
	LA21_: ;
	NimTV_->nimInErrorMode__759bT87luu8XGcbkw13FUjA += ((NI) 1);
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		if (!((*e).name == 0)) goto LA3_;
		(*e).name = ename;
	}
	LA3_: ;
	{
		NIM_BOOL T7_;
		tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA T11_;
		NI T12_;
		T7_ = (NIM_BOOL)0;
		T7_ = !((((void*) (procname)) == NIM_NIL));
		if (!(T7_)) goto LA8_;
		T7_ = !((((void*) (filename)) == NIM_NIL));
		LA8_: ;
		if (!T7_) goto LA9_;
		nimZeroMem((void*)(&T11_), sizeof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA));
		T11_.procname = procname;
		T11_.filename = filename;
		T11_.line = line;
		(*e).trace = (tySequence__uB9b75OUPRENsBAu4AnoePA*) incrSeqV3((TGenericSeq*)((*e).trace), (&NTI__uB9b75OUPRENsBAu4AnoePA_));
		T12_ = (*e).trace->Sup.len++;
		(*e).trace->data[T12_] = T11_;
	}
	LA9_: ;
	raiseExceptionAux__na8C8pUZ9cLQWVwk35l5vfw(e);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, newSeq__q7W9bxIQ7BrFLngLO9cYelsA)(NI len) {
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTI__sM4lkSb7zS6F7OVMvW9cffQ_), len);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, mnewString)(NI len) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = rawNewString(len);
	(*result).Sup.len = len;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last) {
	NimStringDesc* result;
	NI first_2;
	NI L;
	result = (NimStringDesc*)0;
	first_2 = ((first >= ((NI) 0)) ? first : ((NI) 0));
	L = (((NI)((NI)(((last <= ((s ? s->Sup.len : 0)-1)) ? last : ((s ? s->Sup.len : 0)-1)) - first_2) + ((NI) 1)) >= ((NI) 0)) ? (NI)((NI)(((last <= ((s ? s->Sup.len : 0)-1)) ? last : ((s ? s->Sup.len : 0)-1)) - first_2) + ((NI) 1)) : ((NI) 0));
	result = mnewString(((NI) (L)));
	{
		NI i;
		NI colontmp_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = (NI)(L - ((NI) 1));
		res = ((NI) 0);
		{
			while (1) {
				if (!(res <= colontmp_)) goto LA3;
				i = res;
				result->data[i] = s->data[(NI)(i + first_2)];
				res += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__iGg0RIKceRvsmvq8FUHOEw)(NimStringDesc* s, NI first) {
	NimStringDesc* result;
	NimStringDesc* T1_;
	result = (NimStringDesc*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = s;
	result = substr__2yh9cer0ymNRHlOOg8P7IuA(T1_, first, ((s ? s->Sup.len : 0)-1));
	return result;
}
static N_NIMCALL(void, Marker_tyRef__HV2B9a6TW6WPpQna2mQFeQQ)(void* p, NI op) {
	tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg* a;
	a = (tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg*)p;
	nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toNimStr)(NCSTRING str, NI len) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = rawNewStringNoInit(len);
	(*result).Sup.len = len;
	copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((*result).data)), ((void*) (str)), ((NI) ((NI)(len + ((NI) 1)))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		if (!(((void*) (str)) == NIM_NIL)) goto LA3_;
		result = NIM_NIL;
	}
	goto LA1_;
	LA3_: ;
	{
		NCSTRING T6_;
		T6_ = (NCSTRING)0;
		T6_ = str;
		result = toNimStr(T6_, (str ? nimCStrLen(str) : 0));
	}
	LA1_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__S8DV6hfcgC9c0IiUsAoR29cQ)(void* p, NI op) {
	tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ* a;
	a = (tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(NI32, toU32__RbqzLrUZ5SHNjxdiDB0DWw)(NI64 x) {
	NI32 result;
	result = (NI32)0;
	result = ((NI32) (x));
	return result;
}
N_LIB_PRIVATE N_NOCONV(void*, allocSharedImpl)(NI size) {
	void* result;
	result = (void*)0;
	EnterCriticalSection((&heapLock__Cm9aJxbMhUuv7Cj8trffHQw));
	result = alloc__UxtcZ3QOXKsB7mMchxUf9cg_2((&sharedHeap__R3bhvQCN0d6AYpkvxfT9aGw), size);
	LeaveCriticalSection((&heapLock__Cm9aJxbMhUuv7Cj8trffHQw));
	return result;
}
N_LIB_PRIVATE N_NOCONV(void*, allocShared0Impl__KzdpcuLT9aef9bsiSHlIu9aFg_3)(NI size) {
	void* result;
	result = (void*)0;
	result = allocSharedImpl(size);
	zeroMem__FsvhfMqbswETmyMWtamDewsystem(result, size);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, setPosition__Zp3k9bHhfG9aKFJWRJNwKuKw)(tyObject_GcStack__7fytPA5bBsob6See21YMRA* stack, void* position) {
}
N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	{
		if (!(NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack.bottom == NIM_NIL)) goto LA3_;
		NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack.bottom = theStackBottom;
	}
	goto LA1_;
	LA3_: ;
	{
		NI a;
		NI b;
		if (!!((theStackBottom == NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack.bottom))) goto LA6_;
		a = ((NI) (ptrdiff_t) (theStackBottom));
		b = ((NI) (ptrdiff_t) (NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack.bottom));
		NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack.bottom = ((void*) (((a >= b) ? a : b)));
	}
	goto LA1_;
	LA6_: ;
	LA1_: ;
	setPosition__Zp3k9bHhfG9aKFJWRJNwKuKw((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.stack), theStackBottom);
}
static N_INLINE(void, GC_disable__RsY2eAkO9aEvlDhb7ZyRF8gsystem)(void) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.recGcLock += ((NI) 1);
}
N_LIB_PRIVATE N_NIMCALL(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*, initPtrTable__awRYFsOgLT2QxepuItx23Q)(void) {
	tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* result;
	void* T1_;
	result = (tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*)0;
	T1_ = (void*)0;
	T1_ = alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg(((NI) 528));
	result = ((tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*) (T1_));
	(*result).counter = ((NI) 0);
	(*result).max = ((NI) 31);
	return result;
}
static N_INLINE(void, unsureAsgnRef)(void** dest, void* src) {
	(*dest) = src;
}
static N_INLINE(NimStringDesc*, copyDeepString__hklXXwFsTQvUNkBUDEf9aqAsystem)(NimStringDesc* src) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		void* T5_;
		void* T6_;
		if (!!((src == NIM_NIL))) goto LA3_;
		result = rawNewStringNoInit((*src).Sup.len);
		(*result).Sup.len = (*src).Sup.len;
		T5_ = (void*)0;
		T5_ = ((void*) ((*result).data));
		T6_ = (void*)0;
		T6_ = ((void*) ((*src).data));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T5_, T6_, ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
	}
	LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, genericReset)(void* dest, TNimType* mt) {
	NI d;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	switch ((*mt).kind) {
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
	{
		unsureAsgnRef(((void**) (dest)), NIM_NIL);
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
	{
		genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw(dest, (*mt).node);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
	{
		TNimType** pint;
		genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw(dest, (*mt).node);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		pint = ((TNimType**) (dest));
		(*pint) = NIM_NIL;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
	{
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					NI T8_;
					NI T9_;
					if (!(res <= colontmp_)) goto LA7;
					i = res;
					T8_ = (NI)0;
					T8_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*mt).base).size);
					T9_ = (NI)0;
					T9_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, T8_);
					genericReset(((void*) (T9_)), (*mt).base);
					res += ((NI) 1);
				} LA7: ;
			}
		}
	}
	break;
	default:
	{
		zeroMem__FsvhfMqbswETmyMWtamDewsystem(dest, ((NI) ((*mt).size)));
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw)(void* dest, TNimNode* n) {
	NI d;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	switch ((*n).kind) {
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
	{
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
	{
		NI T3_;
		T3_ = (NI)0;
		T3_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		genericReset(((void*) (T3_)), (*n).typ);
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
	{
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((*n).len - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA7;
					i = res;
					genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw(dest, (*n).sons[(i)- 0]);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res += ((NI) 1);
				} LA7: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
	{
		TNimNode* m;
		NI T13_;
		m = selectBranch__2us2RQByTh81i9aW4EEgfmw(dest, n);
		{
			if (!!((m == NIM_NIL))) goto LA11_;
			genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw(dest, m);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA11_: ;
		T13_ = (NI)0;
		T13_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		zeroMem__FsvhfMqbswETmyMWtamDewsystem(((void*) (T13_)), ((NI) ((*(*n).typ).size)));
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericDeepCopyAux__iOYDOwyGohWpJUS4DfUiYg)(void* dest, void* src, TNimNode* n, tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg** tab) {
	NI d;
	NI s;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	s = ((NI) (ptrdiff_t) (src));
	switch ((*n).kind) {
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
	{
		NI T2_;
		void* T3_;
		NI T4_;
		T2_ = (NI)0;
		T2_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		T3_ = (void*)0;
		T3_ = ((void*) (T2_));
		T4_ = (NI)0;
		T4_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(s, (*n).offset);
		genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ(T3_, ((void*) (T4_)), (*n).typ, tab);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
	{
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((*n).len - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA8;
					i = res;
					genericDeepCopyAux__iOYDOwyGohWpJUS4DfUiYg(dest, src, (*n).sons[(i)- 0], tab);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res += ((NI) 1);
				} LA8: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
	{
		TNimNode* dd;
		TNimNode* m;
		NI T16_;
		void* T17_;
		NI T18_;
		dd = selectBranch__2us2RQByTh81i9aW4EEgfmw(dest, n);
		m = selectBranch__2us2RQByTh81i9aW4EEgfmw(src, n);
		{
			NIM_BOOL T12_;
			T12_ = (NIM_BOOL)0;
			T12_ = !((m == dd));
			if (!(T12_)) goto LA13_;
			T12_ = !((dd == NIM_NIL));
			LA13_: ;
			if (!T12_) goto LA14_;
			genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw(dest, dd);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA14_: ;
		T16_ = (NI)0;
		T16_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		T17_ = (void*)0;
		T17_ = ((void*) (T16_));
		T18_ = (NI)0;
		T18_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(s, (*n).offset);
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T17_, ((void*) (T18_)), ((NI) ((*(*n).typ).size)));
		{
			if (!!((m == NIM_NIL))) goto LA21_;
			genericDeepCopyAux__iOYDOwyGohWpJUS4DfUiYg(dest, src, m, tab);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA21_: ;
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
	{
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void*, get__9cnRB9aE2YD2tJCXxY88IIBg)(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* t, void* key) {
	void* result;
	NI h;
{	result = (void*)0;
	h = (NI)((NI64)(((NI) (ptrdiff_t) (key))) >> (NU64)(((NI) 8)));
	{
		while (1) {
			void* k;
			k = (*t).data[((NI)(h & (*t).max))- 0].Field0;
			{
				if (!(k == NIM_NIL)) goto LA5_;
				goto LA1;
			}
			LA5_: ;
			{
				if (!(k == key)) goto LA9_;
				result = (*t).data[((NI)(h & (*t).max))- 0].Field1;
				goto BeforeRet_;
			}
			LA9_: ;
			h += ((NI) 1);
		}
	} LA1: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*, rehash__eWVeXGQWT5uEpbu5jaBwxQ)(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* t) {
	tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* result;
	NI cap;
	void* T1_;
	result = (tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*)0;
	cap = (NI)((NI)((*t).max + ((NI) 1)) * ((NI) 2));
	T1_ = (void*)0;
	T1_ = alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg(((NI) ((NI)(((NI) 16) + (NI)(((NI) 16) * cap)))));
	result = ((tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg*) (T1_));
	(*result).counter = (*t).counter;
	(*result).max = (NI)(cap - ((NI) 1));
	{
		NI i;
		NI res;
		i = (NI)0;
		res = ((NI) 0);
		{
			while (1) {
				void* k;
				if (!(res <= (*t).max)) goto LA4;
				i = res;
				k = (*t).data[(i)- 0].Field0;
				{
					NI h;
					if (!!((k == NIM_NIL))) goto LA7_;
					h = (NI)((NI64)(((NI) (ptrdiff_t) (k))) >> (NU64)(((NI) 8)));
					{
						while (1) {
							if (!!(((*result).data[((NI)(h & (*result).max))- 0].Field0 == NIM_NIL))) goto LA10;
							h += ((NI) 1);
						} LA10: ;
					}
					(*result).data[((NI)(h & (*result).max))- 0] = (*t).data[(i)- 0];
				}
				LA7_: ;
				res += ((NI) 1);
			} LA4: ;
		}
	}
	deallocImpl__SAtZpVrJ3o5FJvSdLQe9auA(((void*) (t)));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, put__QKifuA1kFfqUiPGvoyTJJA)(tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg** t, void* key, void* val) {
	NI h;
	void* colontmp_;
	void* colontmp__2;
	{
		if (!((NI)((NI)((*(*t)).max + ((NI) 1)) * ((NI) 2)) < (NI)((*(*t)).counter * ((NI) 3)))) goto LA3_;
		(*t) = rehash__eWVeXGQWT5uEpbu5jaBwxQ((*t));
	}
	LA3_: ;
	h = (NI)((NI64)(((NI) (ptrdiff_t) (key))) >> (NU64)(((NI) 8)));
	{
		while (1) {
			if (!!(((*(*t)).data[((NI)(h & (*(*t)).max))- 0].Field0 == NIM_NIL))) goto LA6;
			h += ((NI) 1);
		} LA6: ;
	}
	colontmp_ = key;
	colontmp__2 = val;
	(*(*t)).data[((NI)(h & (*(*t)).max))- 0].Field0 = colontmp_;
	(*(*t)).data[((NI)(h & (*(*t)).max))- 0].Field1 = colontmp__2;
	(*(*t)).counter += ((NI) 1);
}
N_LIB_PRIVATE N_NIMCALL(void, genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ)(void* dest, void* src, TNimType* mt, tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg** tab) {
	NI d;
	NI s;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	s = ((NI) (ptrdiff_t) (src));
	switch ((*mt).kind) {
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
	{
		void** x;
		void* s2;
		x = ((void**) (dest));
		s2 = (*((void**) (s)));
		{
			if (!(s2 == NIM_NIL)) goto LA4_;
			unsureAsgnRef(x, s2);
		}
		goto LA2_;
		LA4_: ;
		{
			NimStringDesc* T7_;
			T7_ = (NimStringDesc*)0;
			T7_ = copyDeepString__hklXXwFsTQvUNkBUDEf9aqAsystem(((NimStringDesc*) (s2)));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			unsureAsgnRef(x, ((void*) (T7_)));
		}
		LA2_: ;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
	{
		void* s2_2;
		TGenericSeq* seq;
		void** x_2;
		void* T13_;
		NI dst;
		s2_2 = (*((void**) (src)));
		seq = ((TGenericSeq*) (s2_2));
		x_2 = ((void**) (dest));
		{
			if (!(s2_2 == NIM_NIL)) goto LA11_;
			unsureAsgnRef(x_2, s2_2);
			goto BeforeRet_;
		}
		LA11_: ;
		T13_ = (void*)0;
		T13_ = newSeq(mt, (*seq).len);
		unsureAsgnRef(x_2, T13_);
		dst = ((NI) (ptrdiff_t) ((*((void**) (dest)))));
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((*seq).len - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					NI T17_;
					NI T18_;
					NI T19_;
					NI T20_;
					NI T21_;
					void* T22_;
					NI T23_;
					NI T24_;
					NI T25_;
					NI T26_;
					NI T27_;
					if (!(res <= colontmp_)) goto LA16;
					i = res;
					T17_ = (NI)0;
					T17_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*mt).base).align);
					T18_ = (NI)0;
					T18_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(dst, T17_);
					T19_ = (NI)0;
					T19_ = T18_;
					T20_ = (NI)0;
					T20_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*mt).base).size);
					T21_ = (NI)0;
					T21_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(T19_, T20_);
					T22_ = (void*)0;
					T22_ = ((void*) (T21_));
					T23_ = (NI)0;
					T23_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*mt).base).align);
					T24_ = (NI)0;
					T24_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (s2_2)), T23_);
					T25_ = (NI)0;
					T25_ = T24_;
					T26_ = (NI)0;
					T26_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*mt).base).size);
					T27_ = (NI)0;
					T27_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(T25_, T26_);
					genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ(T22_, ((void*) (T27_)), (*mt).base, tab);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res += ((NI) 1);
				} LA16: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
	{
		{
			if (!!(((*mt).base == NIM_NIL))) goto LA31_;
			genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ(dest, src, (*mt).base, tab);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA29_;
		LA31_: ;
		{
			TNimType** pint;
			pint = ((TNimType**) (dest));
			(*pint) = (*((TNimType**) (src)));
		}
		LA29_: ;
		genericDeepCopyAux__iOYDOwyGohWpJUS4DfUiYg(dest, src, (*mt).node, tab);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
	{
		genericDeepCopyAux__iOYDOwyGohWpJUS4DfUiYg(dest, src, (*mt).node, tab);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
	{
		{
			NI i_2;
			NI colontmp__2;
			NI res_2;
			i_2 = (NI)0;
			colontmp__2 = (NI)0;
			colontmp__2 = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
			res_2 = ((NI) 0);
			{
				while (1) {
					NI T39_;
					NI T40_;
					void* T41_;
					NI T42_;
					NI T43_;
					if (!(res_2 <= colontmp__2)) goto LA38;
					i_2 = res_2;
					T39_ = (NI)0;
					T39_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i_2, (*(*mt).base).size);
					T40_ = (NI)0;
					T40_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, T39_);
					T41_ = (void*)0;
					T41_ = ((void*) (T40_));
					T42_ = (NI)0;
					T42_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i_2, (*(*mt).base).size);
					T43_ = (NI)0;
					T43_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(s, T42_);
					genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ(T41_, ((void*) (T43_)), (*mt).base, tab);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res_2 += ((NI) 1);
				} LA38: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
	{
		void* s2_3;
		s2_3 = (*((void**) (src)));
		{
			if (!(s2_3 == NIM_NIL)) goto LA47_;
			unsureAsgnRef(((void**) (dest)), s2_3);
		}
		goto LA45_;
		LA47_: ;
		{
			void* z;
			if (!!(((*(*mt).base).deepcopy == NIM_NIL))) goto LA50_;
			z = (*(*mt).base).deepcopy(s2_3);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			unsureAsgnRef(((void**) (dest)), z);
		}
		goto LA45_;
		LA50_: ;
		{
			void* z_2;
			z_2 = get__9cnRB9aE2YD2tJCXxY88IIBg((*tab), s2_3);
			{
				tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* x_3;
				TNimType* realType;
				void* z_3;
				if (!(z_2 == NIM_NIL)) goto LA55_;
				x_3 = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(s2_3);
				realType = (*x_3).typ;
				z_3 = newObj(realType, (*(*realType).base).size);
				unsureAsgnRef(((void**) (dest)), z_3);
				put__QKifuA1kFfqUiPGvoyTJJA(tab, s2_3, z_3);
				genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ(z_3, s2_3, (*realType).base, tab);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			goto LA53_;
			LA55_: ;
			{
				unsureAsgnRef(((void**) (dest)), z_2);
			}
			LA53_: ;
		}
		LA45_: ;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 21):
	{
		void* s2_4;
		s2_4 = (*((void**) (src)));
		{
			NIM_BOOL T61_;
			void* T65_;
			T61_ = (NIM_BOOL)0;
			T61_ = !((s2_4 == NIM_NIL));
			if (!(T61_)) goto LA62_;
			T61_ = !(((*(*mt).base).deepcopy == NIM_NIL));
			LA62_: ;
			if (!T61_) goto LA63_;
			T65_ = (void*)0;
			T65_ = (*(*mt).base).deepcopy(s2_4);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			(*((void**) (dest))) = T65_;
		}
		goto LA59_;
		LA63_: ;
		{
			(*((void**) (dest))) = s2_4;
		}
		LA59_: ;
	}
	break;
	default:
	{
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(dest, src, ((NI) ((*mt).size)));
	}
	break;
	}
	}BeforeRet_: ;
}
static N_INLINE(void, GC_enable__RsY2eAkO9aEvlDhb7ZyRF8g_2system)(void) {
	NimThreadVars* NimTV_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	{
		tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ* T5_;
		if (!(NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.recGcLock <= ((NI) 0))) goto LA3_;
		T5_ = (tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*)0;
		T5_ = (tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*) newObj((&NTI__S8DV6hfcgC9c0IiUsAoR29cQ_), sizeof(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ));
		(*T5_).Sup.Sup.Sup.m_type = (&NTI__PtYxPmY5X0dorfvxAFbJpQ_);
		(*T5_).Sup.Sup.name = "AssertionDefect";
		(*T5_).Sup.Sup.message = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_30));
		(*T5_).Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T5_, "AssertionDefect", "GC_enable", "gc_ms.nim", 500);
		goto BeforeRet_;
	}
	LA3_: ;
	NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.recGcLock -= ((NI) 1);
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericDeepCopy)(void* dest, void* src, TNimType* mt) {
	tyObject_PtrTablecolonObjectType___lAJk19b9bJwgXR49cf9ctH29blg* tab;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	GC_disable__RsY2eAkO9aEvlDhb7ZyRF8gsystem();
	tab = initPtrTable__awRYFsOgLT2QxepuItx23Q();
	genericDeepCopyAux__SUmU9bkE2rxUaiQfnnPnSUQ(dest, src, mt, &tab);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	deallocImpl__SAtZpVrJ3o5FJvSdLQe9auA(((void*) (tab)));
	GC_enable__RsY2eAkO9aEvlDhb7ZyRF8g_2system();
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, add__8FwY5enLGB0dFerO6Ny9caw)(NimStringDesc** x, NCSTRING y) {
	NI i;
	i = ((NI) 0);
	{
		if (!!((((void*) (y)) == NIM_NIL))) goto LA3_;
		{
			while (1) {
				if (!!(((NU8)(y[i]) == (NU8)(0)))) goto LA6;
				(*x) = addChar((*x), y[i]);
				i += ((NI) 1);
			} LA6: ;
		}
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen) {
	NimStringDesc* result;
	NI n;
	result = (NimStringDesc*)0;
	n = ((newLen >= ((NI) 0)) ? newLen : ((NI) 0));
	{
		if (!(s == NIM_NIL)) goto LA3_;
		result = mnewString(newLen);
	}
	goto LA1_;
	LA3_: ;
	{
		if (!(n <= (NI)((*s).Sup.reserved & ((NI) IL64(4611686018427387903))))) goto LA6_;
		result = s;
	}
	goto LA1_;
	LA6_: ;
	{
		NI sp;
		NI T9_;
		void* T10_;
		void* T11_;
		void* T12_;
		T9_ = (NI)0;
		T9_ = resize__cOCDWr16YD4j3dBrbbH3yQsystem((NI)((*s).Sup.reserved & ((NI) IL64(4611686018427387903))));
		sp = ((T9_ >= newLen) ? T9_ : newLen);
		result = rawNewStringNoInit(sp);
		(*result).Sup.len = (*s).Sup.len;
		T10_ = (void*)0;
		T10_ = ((void*) ((&(*result).data[((NI) 0)])));
		T11_ = (void*)0;
		T11_ = ((void*) ((&(*s).data[((NI) 0)])));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T10_, T11_, ((NI) ((NI)((*s).Sup.len + ((NI) 1)))));
		T12_ = (void*)0;
		T12_ = ((void*) ((&(*result).data[(*s).Sup.len])));
		zeroMem__FsvhfMqbswETmyMWtamDewsystem(T12_, ((NI) ((NI)(newLen - (*s).Sup.len))));
		(*result).Sup.reserved = sp;
	}
	LA1_: ;
	(*result).Sup.len = n;
	(*result).data[n] = 0;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addInt__mftMOxbyu0h4yByfs3sqjA)(NimStringDesc** result, NI64 x) {
	NI base;
	NI i;
	NI64 y;
	base = ((*result) ? (*result)->Sup.len : 0);
	(*result) = setLengthStr((*result), ((NI) ((NI)(base + ((NI) 32)))));
	i = ((NI) 0);
	y = x;
	{
		while (1) {
			NI64 d;
			d = (NI64)(y / IL64(10));
			(*result)->data[(NI)(base + i)] = ((NIM_CHAR) (((NI) ((NI)((((NI) ((NI64)(y - (NI64)(d * IL64(10))))) > 0? (((NI) ((NI64)(y - (NI64)(d * IL64(10)))))) : -(((NI) ((NI64)(y - (NI64)(d * IL64(10))))))) + ((NI) 48))))));
			i += ((NI) 1);
			y = d;
			{
				if (!(y == IL64(0))) goto LA5_;
				goto LA1;
			}
			LA5_: ;
		}
	} LA1: ;
	{
		if (!(x < IL64(0))) goto LA9_;
		(*result)->data[(NI)(base + i)] = 45;
		i += ((NI) 1);
	}
	LA9_: ;
	(*result) = setLengthStr((*result), ((NI) ((NI)(base + i))));
	{
		NI j;
		NI colontmp_;
		NI res;
		j = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = (NI)((NI)(i / ((NI) 2)) - ((NI) 1));
		res = ((NI) 0);
		{
			while (1) {
				NIM_CHAR T14_;
				if (!(res <= colontmp_)) goto LA13;
				j = res;
				T14_ = (NIM_CHAR)0;
				T14_ = (*result)->data[(NI)(base + j)];
				(*result)->data[(NI)(base + j)] = (*result)->data[(NI)((NI)((NI)(base + i) - j) - ((NI) 1))];
				(*result)->data[(NI)((NI)((NI)(base + i) - j) - ((NI) 1))] = T14_;
				res += ((NI) 1);
			} LA13: ;
		}
	}
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = rawNewString(((NI) 32));
	addInt__mftMOxbyu0h4yByfs3sqjA((&result), ((NI64) (x)));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___qXwhltkA4r6d4Hcwmx9cN8A)(tySequence__uB9b75OUPRENsBAu4AnoePA* s) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = rawNewString(((NI) 2000));
	{
		NI i;
		NI colontmp_;
		NI T2_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		T2_ = (s ? s->Sup.len : 0);
		colontmp_ = (NI)(T2_ - ((NI) 1));
		res = ((NI) 0);
		{
			while (1) {
				if (!(res <= colontmp_)) goto LA4;
				i = res;
				{
					if (!(s->data[i].line == ((NI) -10))) goto LA7_;
					result = resizeString(result, 17);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_31));
				}
				goto LA5_;
				LA7_: ;
				{
					if (!(s->data[i].line == ((NI) -100))) goto LA10_;
					result = resizeString(result, 3);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_32));
				}
				goto LA5_;
				LA10_: ;
				{
					NI oldLenX60gensym64_;
					oldLenX60gensym64_ = (result ? result->Sup.len : 0);
					add__8FwY5enLGB0dFerO6Ny9caw((&result), s->data[i].filename);
					{
						NimStringDesc* T17_;
						if (!(((NI) 0) < s->data[i].line)) goto LA15_;
						result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_33));
						T17_ = (NimStringDesc*)0;
						T17_ = nimIntToStr(s->data[i].line);
						result = resizeString(result, (T17_ ? T17_->Sup.len : 0) + 0);
appendString(result, T17_);
						{
							if (!NIM_FALSE) goto LA20_;
							result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_34));
							result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_35));
						}
						LA20_: ;
						result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_36));
					}
					LA15_: ;
					{
						NI kX60gensym64_;
						NI colontmp__2;
						NI res_2;
						kX60gensym64_ = (NI)0;
						colontmp__2 = (NI)0;
						colontmp__2 = ((((NI) 1) >= (NI)(((NI) 25) - (NI)((result ? result->Sup.len : 0) - oldLenX60gensym64_))) ? ((NI) 1) : (NI)(((NI) 25) - (NI)((result ? result->Sup.len : 0) - oldLenX60gensym64_)));
						res_2 = ((NI) 1);
						{
							while (1) {
								if (!(res_2 <= colontmp__2)) goto LA24;
								kX60gensym64_ = res_2;
								result = addChar(result, 32);
								res_2 += ((NI) 1);
							} LA24: ;
						}
					}
					add__8FwY5enLGB0dFerO6Ny9caw((&result), s->data[i].procname);
					result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_37));
				}
				LA5_: ;
				res += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___dS1BF3Vxjg9aJMmmhVJKSpQ)(NimStringDesc** dest) {
}
static N_INLINE(void, popCurrentException)(void) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg = (*NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg).up;
}
N_LIB_PRIVATE N_NIMCALL(void, writeToStdErr__a2kDfqdSc1eYf0ZCWOGinQ)(NCSTRING msg) {
	rawWrite(stderr, msg);
}
N_LIB_PRIVATE N_NIMCALL(void, showErrorMessage__zsORN9crdKxsL9cHrQcdHSMw)(NCSTRING data) {
	NIM_BOOL toWrite;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	toWrite = NIM_TRUE;
	{
		NimStringDesc* T6_;
		if (!!((errorMessageWriter__ZXnv0JyrWe3HTd07wpSr7A == NIM_NIL))) goto LA3_;
		T6_ = (NimStringDesc*)0;
		T6_ = cstrToNimstr(data);
		errorMessageWriter__ZXnv0JyrWe3HTd07wpSr7A(T6_);
		toWrite = NIM_FALSE;
		if (NIM_UNLIKELY(*nimErr_)) {
			LA5_:;
			{
				*nimErr_ = NIM_FALSE;
				popCurrentException();
				LA8_:;
			}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA3_: ;
	{
		if (!toWrite) goto LA12_;
		writeToStdErr__a2kDfqdSc1eYf0ZCWOGinQ(data);
	}
	LA12_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3)(Exception* e) {
	tyArray__gpc2RrLEcWgv7ONpLYNHOw buf;
	NI L;
	nimZeroMem((void*)buf, sizeof(tyArray__gpc2RrLEcWgv7ONpLYNHOw));
	L = ((NI) 0);
	{
		NI T3_;
		NimStringDesc* trace;
		T3_ = ((*e).trace ? (*e).trace->Sup.len : 0);
		if (!!((T3_ == ((NI) 0)))) goto LA4_;
		trace = dollar___qXwhltkA4r6d4Hcwmx9cN8A((*e).trace);
		{
			void* T10_;
			if (!((NI)(L + (trace ? trace->Sup.len : 0)) < ((NI) 2000))) goto LA8_;
			T10_ = (void*)0;
			T10_ = ((void*) (nimToCStringConv(trace)));
			copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&buf[(L)- 0]))), T10_, ((NI) ((trace ? trace->Sup.len : 0))));
			L += (trace ? trace->Sup.len : 0);
		}
		LA8_: ;
		eqdestroy___dS1BF3Vxjg9aJMmmhVJKSpQ((&trace));
	}
	LA4_: ;
	{
		if (!((NI)(L + ((NI) 28)) < ((NI) 2000))) goto LA13_;
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&buf[(L)- 0]))), ((void*) ("Error: unhandled exception: ")), ((NI) 28));
		L += ((NI) 28);
	}
	LA13_: ;
	{
		void* T19_;
		if (!((NI)(L + ((*e).message ? (*e).message->Sup.len : 0)) < ((NI) 2000))) goto LA17_;
		T19_ = (void*)0;
		T19_ = ((void*) (nimToCStringConv((*e).message)));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&buf[(L)- 0]))), T19_, ((NI) (((*e).message ? (*e).message->Sup.len : 0))));
		L += ((*e).message ? (*e).message->Sup.len : 0);
	}
	LA17_: ;
	{
		if (!((NI)(L + ((NI) 2)) < ((NI) 2000))) goto LA22_;
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&buf[(L)- 0]))), ((void*) (" [")), ((NI) 2));
		L += ((NI) 2);
	}
	LA22_: ;
	{
		void* T28_;
		if (!((NI)(L + ((*e).name ? nimCStrLen((*e).name) : 0)) < ((NI) 2000))) goto LA26_;
		T28_ = (void*)0;
		T28_ = ((void*) ((*e).name));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&buf[(L)- 0]))), T28_, ((NI) (((*e).name ? nimCStrLen((*e).name) : 0))));
		L += ((*e).name ? nimCStrLen((*e).name) : 0);
	}
	LA26_: ;
	{
		if (!((NI)(L + ((NI) 2)) < ((NI) 2000))) goto LA31_;
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&buf[(L)- 0]))), ((void*) ("]\012")), ((NI) 2));
		L += ((NI) 2);
	}
	LA31_: ;
	{
		NimStringDesc* T37_;
		if (!!((onUnhandledException__bFrawQlTKZhLweDD36j9b8g == NIM_NIL))) goto LA35_;
		T37_ = (NimStringDesc*)0;
		T37_ = cstrToNimstr(((NCSTRING) (buf)));
		onUnhandledException__bFrawQlTKZhLweDD36j9b8g(T37_);
	}
	goto LA33_;
	LA35_: ;
	{
		showErrorMessage__zsORN9crdKxsL9cHrQcdHSMw(((NCSTRING) (buf)));
	}
	LA33_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2)(Exception* e) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		if (!!((unhandledExceptionHook__RJpSsXsRUH8ochbXTEhRIw == NIM_NIL))) goto LA3_;
		unhandledExceptionHook__RJpSsXsRUH8ochbXTEhRIw(e);
	}
	LA3_: ;
	reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3(e);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, threadTrouble__amVlU9ajqZ06ujoesRBHcDg_2)(void) {
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	{
		if (!!((NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg == NIM_NIL))) goto LA4_;
		reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2(NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	LA4_: ;
	if (NIM_UNLIKELY(*nimErr_)) {
		LA1_:;
		{
			*nimErr_ = NIM_FALSE;
			popCurrentException();
			LA7_:;
		}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	exit(((NI) 1));
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, threadProcWrapDispatch__4bfnMli3YetX01hUbaU1ig_2)(tyObject_Thread__aCkJjuuA9audHPimgL5uPkg* thrd) {
	tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw* x;
	tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw* T2_;
NIM_BOOL oldNimErrFin1_;
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	x = (tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw*)0;
	T2_ = (tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw*)0;
	T2_ = (*thrd).data;
	genericDeepCopy((void*)(&x), (void*)(&T2_), (&NTI__CyNApV6Mfiphj5eUnH5G1A_));
	(*thrd).dataFn(x);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	if (NIM_UNLIKELY(*nimErr_)) {
		LA1_:;
		{
			*nimErr_ = NIM_FALSE;
			threadTrouble__amVlU9ajqZ06ujoesRBHcDg_2();
			popCurrentException();
			LA4_:;
		}
	}
	{
		oldNimErrFin1_ = *nimErr_; *nimErr_ = NIM_FALSE;
		{
			NI iX60gensym53_;
			NI colontmp_;
			NI T8_;
			NI res;
			iX60gensym53_ = (NI)0;
			colontmp_ = (NI)0;
			T8_ = (NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw ? NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw->Sup.len : 0);
			colontmp_ = (NI)(T8_ - ((NI) 1));
			res = colontmp_;
			{
				while (1) {
					if (!(((NI) 0) <= res)) goto LA10;
					iX60gensym53_ = res;
					NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw->data[iX60gensym53_].ClE_0? NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw->data[iX60gensym53_].ClP_0(NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw->data[iX60gensym53_].ClE_0):((TM__Q5wkpxktOdTGvlSRo9bzt9aw_38)(NimTV_->threadDestructionHandlers__8OmU3x0fNdA0DLtOmU3kWw->data[iX60gensym53_].ClP_0))();
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res -= ((NI) 1);
				} LA10: ;
			}
		}
		*nimErr_ = oldNimErrFin1_;
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, llDeallocAll__9cjK1n7e8rk5QVWjYl2tSrw_2)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* it;
	it = (*a).llmem;
	{
		while (1) {
			tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* next;
			if (!!((it == NIM_NIL))) goto LA2;
			next = (*it).next;
			osDeallocPages__dRMEutPSAkbR9b9blNmTzvoQsystem(((void*) (it)), ((NI) 4096));
			it = next;
		} LA2: ;
	}
	(*a).llmem = NIM_NIL;
}
N_LIB_PRIVATE N_NIMCALL(void, deallocOsPages__9cjK1n7e8rk5QVWjYl2tSrw)(tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg* a) {
	tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* it;
	it = (&(*a).heapLinks);
	{
		while (1) {
			tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
			next = (*it).next;
			{
				NI i;
				NI colontmp_;
				NI res;
				i = (NI)0;
				colontmp_ = (NI)0;
				colontmp_ = (NI)((*it).len - ((NI) 1));
				res = ((NI) 0);
				{
					while (1) {
						tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* p;
						NI size;
						if (!(res <= colontmp_)) goto LA5;
						i = res;
						p = (*it).chunks[(i)- 0].Field0;
						size = (*it).chunks[(i)- 0].Field1;
						osDeallocPages__dRMEutPSAkbR9b9blNmTzvoQsystem(((void*) (p)), size);
						res += ((NI) 1);
					} LA5: ;
				}
			}
			it = next;
			{
				if (!(it == NIM_NIL)) goto LA8_;
				goto LA1;
			}
			LA8_: ;
		}
	} LA1: ;
	llDeallocAll__9cjK1n7e8rk5QVWjYl2tSrw_2(a);
}
N_LIB_PRIVATE N_NIMCALL(void, deallocOsPages__amVlU9ajqZ06ujoesRBHcDg_3)(void) {
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	deallocOsPages__9cjK1n7e8rk5QVWjYl2tSrw((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.region));
}
N_LIB_PRIVATE N_NIMCALL(void, threadProcWrapStackFrame__4bfnMli3YetX01hUbaU1ig)(tyObject_Thread__aCkJjuuA9audHPimgL5uPkg* thrd) {
	void* volatile p;
	p = (void*)0;
	nimGC_setStackBottom(((void*) ((&p))));
	initGC__amVlU9ajqZ06ujoesRBHcDg();
	threadProcWrapDispatch__4bfnMli3YetX01hUbaU1ig_2(thrd);
	deallocOsPages__amVlU9ajqZ06ujoesRBHcDg_3();
}
N_LIB_PRIVATE N_NOCONV(void, deallocSharedImpl__SAtZpVrJ3o5FJvSdLQe9auA_2)(void* p) {
	EnterCriticalSection((&heapLock__Cm9aJxbMhUuv7Cj8trffHQw));
	dealloc__Jg1OaY9ahkT3MBopLAXRSGw((&sharedHeap__R3bhvQCN0d6AYpkvxfT9aGw), p);
	LeaveCriticalSection((&heapLock__Cm9aJxbMhUuv7Cj8trffHQw));
}
N_LIB_PRIVATE N_NOCONV(void, deallocShared)(void* p) {
	deallocSharedImpl__SAtZpVrJ3o5FJvSdLQe9auA_2(p);
}
N_LIB_PRIVATE N_STDCALL(NI32, threadProcWrapper__LGq7Tl8RtbZVKMdJtqW9aHA)(void* closure) {
	NI32 result;
	tyObject_Thread__aCkJjuuA9audHPimgL5uPkg* thrdX60gensym54_;
	tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg* coreX60gensym54_;
	result = (NI32)0;
	thrdX60gensym54_ = ((tyObject_Thread__aCkJjuuA9audHPimgL5uPkg*) (closure));
	coreX60gensym54_ = (*thrdX60gensym54_).core;
	TlsSetValue(globalsSlot__ciXDZu9c27pHpCRMoz4RIgw, ((void*) ((*thrdX60gensym54_).core)));
	threadProcWrapStackFrame__4bfnMli3YetX01hUbaU1ig(thrdX60gensym54_);
	(*thrdX60gensym54_).core = NIM_NIL;
	(*thrdX60gensym54_).dataFn = NIM_NIL;
	deallocShared(((void*) (coreX60gensym54_)));
	return result;
}
static N_NIMCALL(void, Marker_tyRef__M8bPR1OE5OXPYGyQdVHfTg)(void* p, NI op) {
	tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw* a;
	a = (tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void, createThread__ZlRlGL9cCaGDCyoP82KIjPQ)(tyObject_Thread__aCkJjuuA9audHPimgL5uPkg* t, tyProc__nSqh6BBL9cSEu9bcR48Z72QA tp, tyObject_Worker__AqHEWWcw2VBFjoa2Hp8Akw* param) {
	void* T1_;
	NI32 dummyThreadId;
{	T1_ = (void*)0;
	T1_ = allocShared0Impl__KzdpcuLT9aef9bsiSHlIu9aFg_3(((NI) 16008));
	(*t).core = ((tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg*) (T1_));
	(*t).data = param;
	(*t).dataFn = tp;
	dummyThreadId = (NI32)0;
	(*t).sys = Dl_1325210_(NIM_NIL, ((NI32) 2093056), threadProcWrapper__LGq7Tl8RtbZVKMdJtqW9aHA, ((void*) (t)), ((NI32) 0), (&dummyThreadId));
	{
		tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw* T6_;
		if (!((*t).sys <= ((NI) 0))) goto LA4_;
		T6_ = (tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw*)0;
		T6_ = (tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw*) newObj((&NTI__M8bPR1OE5OXPYGyQdVHfTg_), sizeof(tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw));
		(*T6_).Sup.Sup.Sup.m_type = (&NTI__KFG1Y2EPzgtJWwuYhMD0Fw_);
		(*T6_).Sup.Sup.name = "ResourceExhaustedError";
		(*T6_).Sup.Sup.message = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_39));
		(*T6_).Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T6_, "ResourceExhaustedError", "createThread", "threads.nim", 273);
		goto BeforeRet_;
	}
	LA4_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc) {
	{
		if (!(globalMarkersLen <= ((NI) 3499))) goto LA3_;
		globalMarkers[(globalMarkersLen)- 0] = markerProc;
		globalMarkersLen += ((NI) 1);
	}
	goto LA1_;
	LA3_: ;
	{
		rawWrite(stderr, "[GC] cannot register global variable; too many global variables");
		exit(((NI) 1));
	}
	LA1_: ;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass) {
	NIM_BOOL result;
	TNimType* x;
{	result = (NIM_BOOL)0;
	x = obj;
	{
		if (!(x == subclass)) goto LA3_;
		result = NIM_TRUE;
		goto BeforeRet_;
	}
	LA3_: ;
	{
		while (1) {
			if (!!((x == subclass))) goto LA6;
			{
				if (!(x == NIM_NIL)) goto LA9_;
				result = NIM_FALSE;
				goto BeforeRet_;
			}
			LA9_: ;
			x = (*x).base;
		} LA6: ;
	}
	result = NIM_TRUE;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__Ie1m0dv1ZHg72IgPRr1cDw)(void* p, NI op) {
	tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* a;
	a = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void*, nimNewSeqOfCap)(TNimType* typ, NI cap) {
	void* result;
	NI s;
	NI T1_;
	NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_40;
	NI TM__Q5wkpxktOdTGvlSRo9bzt9aw_41;
{	result = (void*)0;
	T1_ = (NI)0;
	T1_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*typ).base).align);
	if (nimMulInt(cap, (*(*typ).base).size, &TM__Q5wkpxktOdTGvlSRo9bzt9aw_40)) { raiseOverflow(); goto BeforeRet_;
};
	if (nimAddInt(T1_, (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_40), &TM__Q5wkpxktOdTGvlSRo9bzt9aw_41)) { raiseOverflow(); goto BeforeRet_;
};
	s = (NI)(TM__Q5wkpxktOdTGvlSRo9bzt9aw_41);
	{
		if (!(((*(*typ).base).flags &(1U<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0)) goto LA4_;
		result = newObjNoInit(typ, s);
	}
	goto LA2_;
	LA4_: ;
	{
		result = newObj(typ, s);
	}
	LA2_: ;
	(*((TGenericSeq*) (result))).len = ((NI) 0);
	(*((TGenericSeq*) (result))).reserved = cap;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ)(void* dest, void* src, TNimNode* n, NIM_BOOL shallow) {
	NI d;
	NI s;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	s = ((NI) (ptrdiff_t) (src));
	switch ((*n).kind) {
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 1):
	{
		NI T2_;
		void* T3_;
		NI T4_;
		T2_ = (NI)0;
		T2_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		T3_ = (void*)0;
		T3_ = ((void*) (T2_));
		T4_ = (NI)0;
		T4_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(s, (*n).offset);
		genericAssignAux__U5DxFPRpHCCZDKWQzM9adaw(T3_, ((void*) (T4_)), (*n).typ, shallow);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 2):
	{
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((*n).len - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA8;
					i = res;
					genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ(dest, src, (*n).sons[(i)- 0], shallow);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res += ((NI) 1);
				} LA8: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 3):
	{
		TNimNode* dd;
		TNimNode* m;
		NI T16_;
		void* T17_;
		NI T18_;
		dd = selectBranch__2us2RQByTh81i9aW4EEgfmw(dest, n);
		m = selectBranch__2us2RQByTh81i9aW4EEgfmw(src, n);
		{
			NIM_BOOL T12_;
			T12_ = (NIM_BOOL)0;
			T12_ = !((m == dd));
			if (!(T12_)) goto LA13_;
			T12_ = !((dd == NIM_NIL));
			LA13_: ;
			if (!T12_) goto LA14_;
			genericResetAux__9bFXTAJ8caOL4Ioy2o3B3aw(dest, dd);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA14_: ;
		T16_ = (NI)0;
		T16_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, (*n).offset);
		T17_ = (void*)0;
		T17_ = ((void*) (T16_));
		T18_ = (NI)0;
		T18_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(s, (*n).offset);
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T17_, ((void*) (T18_)), ((NI) ((*(*n).typ).size)));
		{
			if (!!((m == NIM_NIL))) goto LA21_;
			genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ(dest, src, m, shallow);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA21_: ;
	}
	break;
	case ((tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ) 0):
	{
	}
	break;
	}
	}BeforeRet_: ;
}
static N_NIMCALL(void, Marker_tyRef__C0A9bPZSVeyr2BWpBf4Jxqw)(void* p, NI op) {
	tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g* a;
	a = (tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
static N_INLINE(void, sysFatal__LGIwiR9aqSM70ldGCThzJ3gsystem)(NimStringDesc* message) {
	tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g* T1_;
{	T1_ = (tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*)0;
	T1_ = (tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*) newObj((&NTI__C0A9bPZSVeyr2BWpBf4Jxqw_), sizeof(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g));
	(*T1_).Sup.Sup.Sup.m_type = (&NTI__6toVe0IizlEwN9bORXEdX3g_);
	(*T1_).Sup.Sup.name = "ObjectAssignmentDefect";
	(*T1_).Sup.Sup.message = copyString(message);
	raiseExceptionEx((Exception*)T1_, "ObjectAssignmentDefect", "sysFatal", "fatal.nim", 49);
	goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(void, chckObjAsgn)(TNimType* a, TNimType* b) {
	{
		if (!!((a == b))) goto LA3_;
		sysFatal__LGIwiR9aqSM70ldGCThzJ3gsystem(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_42));
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericAssignAux__U5DxFPRpHCCZDKWQzM9adaw)(void* dest, void* src, TNimType* mt, NIM_BOOL shallow) {
	NI d;
	NI s;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	d = ((NI) (ptrdiff_t) (dest));
	s = ((NI) (ptrdiff_t) (src));
	switch ((*mt).kind) {
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 28):
	{
		void** x;
		void* s2;
		x = ((void**) (dest));
		s2 = (*((void**) (s)));
		{
			NIM_BOOL T4_;
			NIM_BOOL T5_;
			T4_ = (NIM_BOOL)0;
			T5_ = (NIM_BOOL)0;
			T5_ = (s2 == NIM_NIL);
			if (T5_) goto LA6_;
			T5_ = shallow;
			LA6_: ;
			T4_ = T5_;
			if (T4_) goto LA7_;
			T4_ = !(((NI)((*((TGenericSeq*) (s2))).reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)));
			LA7_: ;
			if (!T4_) goto LA8_;
			unsureAsgnRef(x, s2);
		}
		goto LA2_;
		LA8_: ;
		{
			NimStringDesc* T11_;
			T11_ = (NimStringDesc*)0;
			T11_ = copyString(((NimStringDesc*) (s2)));
			unsureAsgnRef(x, ((void*) (T11_)));
		}
		LA2_: ;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 24):
	{
		void* s2_2;
		TGenericSeq* seq;
		void** x_2;
		s2_2 = (*((void**) (src)));
		seq = ((TGenericSeq*) (s2_2));
		x_2 = ((void**) (dest));
		{
			NIM_BOOL T15_;
			NIM_BOOL T16_;
			T15_ = (NIM_BOOL)0;
			T16_ = (NIM_BOOL)0;
			T16_ = (s2_2 == NIM_NIL);
			if (T16_) goto LA17_;
			T16_ = shallow;
			LA17_: ;
			T15_ = T16_;
			if (T15_) goto LA18_;
			T15_ = !(((NI)((*seq).reserved & ((NI) (IL64(-9223372036854775807) - IL64(1)))) == ((NI) 0)));
			LA18_: ;
			if (!T15_) goto LA19_;
			unsureAsgnRef(x_2, s2_2);
			goto BeforeRet_;
		}
		LA19_: ;
		{
			void* ss;
			NI dst;
			NI T25_;
			NI T26_;
			void* T27_;
			NI T28_;
			NI T29_;
			void* T30_;
			NI T31_;
			if (!(((*(*mt).base).flags &(1U<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 0))&7U)))!=0)) goto LA23_;
			ss = nimNewSeqOfCap(mt, (*seq).len);
			(*((TGenericSeq*) (ss))).len = (*seq).len;
			unsureAsgnRef(x_2, ss);
			dst = ((NI) (ptrdiff_t) ((*((void**) (dest)))));
			T25_ = (NI)0;
			T25_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*mt).base).align);
			T26_ = (NI)0;
			T26_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(dst, T25_);
			T27_ = (void*)0;
			T27_ = ((void*) (T26_));
			T28_ = (NI)0;
			T28_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*mt).base).align);
			T29_ = (NI)0;
			T29_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (s2_2)), T28_);
			T30_ = (void*)0;
			T30_ = ((void*) (T29_));
			T31_ = (NI)0;
			T31_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system((*seq).len, (*(*mt).base).size);
			copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T27_, T30_, ((NI) (T31_)));
		}
		goto LA21_;
		LA23_: ;
		{
			void* T33_;
			NI dst_2;
			T33_ = (void*)0;
			T33_ = newSeq(mt, (*seq).len);
			unsureAsgnRef(x_2, T33_);
			dst_2 = ((NI) (ptrdiff_t) ((*((void**) (dest)))));
			{
				NI i;
				NI colontmp_;
				NI res;
				i = (NI)0;
				colontmp_ = (NI)0;
				colontmp_ = (NI)((*seq).len - ((NI) 1));
				res = ((NI) 0);
				{
					while (1) {
						NI T37_;
						NI T38_;
						NI T39_;
						NI T40_;
						NI T41_;
						void* T42_;
						NI T43_;
						NI T44_;
						NI T45_;
						NI T46_;
						NI T47_;
						if (!(res <= colontmp_)) goto LA36;
						i = res;
						T37_ = (NI)0;
						T37_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*mt).base).align);
						T38_ = (NI)0;
						T38_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(dst_2, T37_);
						T39_ = (NI)0;
						T39_ = T38_;
						T40_ = (NI)0;
						T40_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*mt).base).size);
						T41_ = (NI)0;
						T41_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(T39_, T40_);
						T42_ = (void*)0;
						T42_ = ((void*) (T41_));
						T43_ = (NI)0;
						T43_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), (*(*mt).base).align);
						T44_ = (NI)0;
						T44_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (s2_2)), T43_);
						T45_ = (NI)0;
						T45_ = T44_;
						T46_ = (NI)0;
						T46_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i, (*(*mt).base).size);
						T47_ = (NI)0;
						T47_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(T45_, T46_);
						genericAssignAux__U5DxFPRpHCCZDKWQzM9adaw(T42_, ((void*) (T47_)), (*mt).base, shallow);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						res += ((NI) 1);
					} LA36: ;
				}
			}
		}
		LA21_: ;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 17):
	{
		TNimType* it;
		TNimType** pint;
		it = (*mt).base;
		{
			while (1) {
				if (!!((it == NIM_NIL))) goto LA50;
				genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ(dest, src, (*it).node, shallow);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				it = (*it).base;
			} LA50: ;
		}
		genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ(dest, src, (*mt).node, shallow);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		pint = ((TNimType**) (dest));
		chckObjAsgn((*((TNimType**) (src))), mt);
		(*pint) = mt;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 18):
	{
		genericAssignAux__69cRBG8C28ydeYlu49a9aOJCQ(dest, src, (*mt).node, shallow);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 16):
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 4):
	{
		{
			NI i_2;
			NI colontmp__2;
			NI res_2;
			i_2 = (NI)0;
			colontmp__2 = (NI)0;
			colontmp__2 = (NI)((NI)((*mt).size / (*(*mt).base).size) - ((NI) 1));
			res_2 = ((NI) 0);
			{
				while (1) {
					NI T56_;
					NI T57_;
					void* T58_;
					NI T59_;
					NI T60_;
					if (!(res_2 <= colontmp__2)) goto LA55;
					i_2 = res_2;
					T56_ = (NI)0;
					T56_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i_2, (*(*mt).base).size);
					T57_ = (NI)0;
					T57_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(d, T56_);
					T58_ = (void*)0;
					T58_ = ((void*) (T57_));
					T59_ = (NI)0;
					T59_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(i_2, (*(*mt).base).size);
					T60_ = (NI)0;
					T60_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(s, T59_);
					genericAssignAux__U5DxFPRpHCCZDKWQzM9adaw(T58_, ((void*) (T60_)), (*mt).base, shallow);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					res_2 += ((NI) 1);
				} LA55: ;
			}
		}
	}
	break;
	case ((tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A) 22):
	{
		unsureAsgnRef(((void**) (dest)), (*((void**) (s))));
	}
	break;
	default:
	{
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(dest, src, ((NI) ((*mt).size)));
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	genericAssignAux__U5DxFPRpHCCZDKWQzM9adaw(dest, src, mt, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt) {
	void* src_2;
	src_2 = src;
	genericAssign(dest, ((void*) ((&src_2))), mt);
}
N_LIB_PRIVATE N_NIMCALL(tySequence__4eQHGndY6XBYpFOH09apV8Q*, newSeq__vM79c4uR4a0HcxFVMjZke9cw)(NI len) {
	tySequence__4eQHGndY6XBYpFOH09apV8Q* result;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*)0;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*) newSeq((&NTI__4eQHGndY6XBYpFOH09apV8Q_), len);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI64, ze64__Ym9bDMq70VeyLEG9cy2hJAlw)(NI32 x) {
	NI64 result;
	result = (NI64)0;
	result = ((NI64) (((NU64) (((NU32) (x))))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimInt64ToStr)(NI64 x) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = rawNewString(((NI) 32));
	addInt__mftMOxbyu0h4yByfs3sqjA((&result), x);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___RkX9btpg5sQIaP8yYXB6tbA)(NU64 x) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		if (!(x == 0ULL)) goto LA3_;
		result = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_35));
	}
	goto LA1_;
	LA3_: ;
	{
		NI i;
		NU64 n;
		NI half;
		result = mnewString(((NI) 60));
		i = ((NI) 0);
		n = x;
		{
			while (1) {
				NU64 nn;
				if (!!((n == 0ULL))) goto LA7;
				nn = (NU64)((NU64)(n) / (NU64)(10ULL));
				result->data[i] = ((NIM_CHAR) ((NU64)((NU64)((NU64)((NU64)(n) - (NU64)((NU64)((NU64)(10ULL) * (NU64)(nn))))) + (NU64)(48ULL))));
				i += ((NI) 1);
				n = nn;
			} LA7: ;
		}
		result = setLengthStr(result, ((NI) (i)));
		half = (NI)(i / ((NI) 2));
		{
			NI t;
			NI colontmp_;
			NI res;
			t = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)(half - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					NIM_CHAR T11_;
					if (!(res <= colontmp_)) goto LA10;
					t = res;
					T11_ = (NIM_CHAR)0;
					T11_ = result->data[t];
					result->data[t] = result->data[(NI)((NI)(i - t) - ((NI) 1))];
					result->data[(NI)((NI)(i - t) - ((NI) 1))] = T11_;
					res += ((NI) 1);
				} LA10: ;
			}
		}
	}
	LA1_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__HMIVdYjdZYWskTmTQVo5BQ)(void* p, NI op) {
	tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw* a;
	a = (tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*)p;
	nimGCvisit((void*)(*a).Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ) {
	NimStringDesc* result;
	TNimNode* n;
	NimStringDesc* T19_;
	NimStringDesc* T20_;
{	result = (NimStringDesc*)0;
	n = (*typ).node;
	{
		NI o;
		if (!!((((*typ).flags &(1U<<((NU)(((tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ) 2))&7U)))!=0))) goto LA3_;
		o = (NI)(e - (*(*n).sons[(((NI) 0))- 0]).offset);
		{
			NIM_BOOL T7_;
			T7_ = (NIM_BOOL)0;
			T7_ = (((NI) 0) <= o);
			if (!(T7_)) goto LA8_;
			T7_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem(o, (*(*typ).node).len);
			LA8_: ;
			if (!T7_) goto LA9_;
			result = cstrToNimstr((*(*n).sons[(o)- 0]).name);
			goto BeforeRet_;
		}
		LA9_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		TNimNode** s;
		s = (*n).sons;
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (NI)((*n).len - ((NI) 1));
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA14;
					i = res;
					{
						if (!((*s[(i)- 0]).offset == e)) goto LA17_;
						result = cstrToNimstr((*s[(i)- 0]).name);
						goto BeforeRet_;
					}
					LA17_: ;
					res += ((NI) 1);
				} LA14: ;
			}
		}
	}
	LA1_: ;
	T19_ = (NimStringDesc*)0;
	T20_ = (NimStringDesc*)0;
	T20_ = nimIntToStr(e);
	T19_ = rawNewString((T20_ ? T20_->Sup.len : 0) + 16);
appendString(T19_, T20_);
appendString(T19_, ((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_43));
	result = T19_;
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tySequence__qwqHTkRvwhrRyENtudHQ7g)(void* p, NI op) {
	tySequence__qwqHTkRvwhrRyENtudHQ7g* a;
	NI T1_;
	a = (tySequence__qwqHTkRvwhrRyENtudHQ7g*)p;
	T1_ = (NI)0;
}
N_LIB_PRIVATE N_NIMCALL(void*, dataPointer__8Wn9cfOy9assdXGuxu0oUaVA)(TGenericSeq* a, NI elemAlign, NI elemSize, NI index) {
	void* result;
	NI T1_;
	NI T2_;
	NI T3_;
	NI T4_;
	result = (void*)0;
	T1_ = (NI)0;
	T1_ = align__vzThvqZajaR9ct9cQ7SOy1tQ(((NI) 16), elemAlign);
	T2_ = (NI)0;
	T2_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (a)), T1_);
	T3_ = (NI)0;
	T3_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(index, elemSize);
	T4_ = (NI)0;
	T4_ = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem(T2_, T3_);
	result = ((void*) (T4_));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen) {
	TGenericSeq* result;
	result = (TGenericSeq*)0;
	{
		void* T5_;
		if (!(s == NIM_NIL)) goto LA3_;
		T5_ = (void*)0;
		T5_ = newSeq(typ, newLen);
		result = ((TGenericSeq*) (T5_));
	}
	goto LA1_;
	LA3_: ;
	{
		NI elemSize;
		NI elemAlign;
		elemSize = (*(*typ).base).size;
		elemAlign = (*(*typ).base).align;
		{
			NI r;
			NI T11_;
			void* T12_;
			void* T13_;
			void* T14_;
			void* T15_;
			void* T16_;
			if (!((NI)((*s).reserved & ((NI) IL64(4611686018427387903))) < newLen)) goto LA9_;
			T11_ = (NI)0;
			T11_ = resize__cOCDWr16YD4j3dBrbbH3yQsystem((NI)((*s).reserved & ((NI) IL64(4611686018427387903))));
			r = ((T11_ >= newLen) ? T11_ : newLen);
			T12_ = (void*)0;
			T12_ = newSeq(typ, r);
			result = ((TGenericSeq*) (T12_));
			T13_ = (void*)0;
			T13_ = dataPointer__dMaT1dYJWy6HCDx9bdXp24A(result, elemAlign);
			T14_ = (void*)0;
			T14_ = T13_;
			T15_ = (void*)0;
			T15_ = dataPointer__dMaT1dYJWy6HCDx9bdXp24A(s, elemAlign);
			T16_ = (void*)0;
			T16_ = T15_;
			copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T14_, T16_, ((NI) ((NI)((*s).len * elemSize))));
			(*s).len = ((NI) 0);
		}
		goto LA7_;
		LA9_: ;
		{
			void* T20_;
			void* T21_;
			NI T22_;
			NI T23_;
			if (!(newLen < (*s).len)) goto LA18_;
			result = s;
			T20_ = (void*)0;
			T20_ = dataPointer__8Wn9cfOy9assdXGuxu0oUaVA(result, elemAlign, elemSize, newLen);
			T21_ = (void*)0;
			T21_ = T20_;
			T22_ = (NI)0;
			T22_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*result).len, newLen);
			T23_ = (NI)0;
			T23_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(T22_, elemSize);
			zeroMem__FsvhfMqbswETmyMWtamDewsystem(T21_, ((NI) (T23_)));
		}
		goto LA7_;
		LA18_: ;
		{
			void* T25_;
			void* T26_;
			NI T27_;
			NI T28_;
			result = s;
			T25_ = (void*)0;
			T25_ = dataPointer__8Wn9cfOy9assdXGuxu0oUaVA(result, elemAlign, elemSize, (*result).len);
			T26_ = (void*)0;
			T26_ = T25_;
			T27_ = (NI)0;
			T27_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(newLen, (*result).len);
			T28_ = (NI)0;
			T28_ = starpercent___dgYAo7RfdUVVpvkfKDym8w_3system(T27_, elemSize);
			zeroMem__FsvhfMqbswETmyMWtamDewsystem(T26_, ((NI) (T28_)));
		}
		LA7_: ;
		(*result).len = newLen;
	}
	LA1_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__8SzoIAgLw9ci2v0yafHj9b6Q)(void* p, NI op) {
	tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag* a;
	a = (tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*)p;
	nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(NI, clamp__hyQgGui0RxAott4YXwjJHQ)(NI x, NI a, NI b) {
	NI result;
{	result = (NI)0;
	{
		if (!(x < a)) goto LA3_;
		result = a;
		goto BeforeRet_;
	}
	LA3_: ;
	{
		if (!(b < x)) goto LA7_;
		result = b;
		goto BeforeRet_;
	}
	LA7_: ;
	result = x;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ*, new__5koBfXFt4Ec5TaAoLmPrsw)(void) {
	tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ* result;
	tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ* r;
{	result = (tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ*)0;
	r = (tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ*)0;
	r = (tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ*) newObj((&NTI__t2PQ49cw9cyPD5BKolxzFbTw_), sizeof(tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ));
	(*r).Sup.m_type = (&NTI__22zILeNTc8ClX7DrPZ3XOQ_);
	result = r;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__P5u9ba17SgzBbsfFlNRoXpg)(NimStringDesc** s, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* x) {
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	T1_ = (NimStringDesc*)0;
	T1_ = dollar___xqL1qTIQGkhdyM4F59c1P9aw(x);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*s) = resizeString((*s), (T1_ ? T1_->Sup.len : 0) + 0);
appendString((*s), T1_);
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__4eQHGndY6XBYpFOH09apV8Q*, newSeq__aNAzke7xLA1lvAqdwdmLAw)(NI len) {
	tySequence__4eQHGndY6XBYpFOH09apV8Q* result;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*)0;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*) newSeq((&NTI__4eQHGndY6XBYpFOH09apV8Q_), len);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimBoolToStr)(NIM_BOOL x) {
	NimStringDesc* result;
{	result = (NimStringDesc*)0;
	{
		if (!x) goto LA3_;
		result = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_44));
	}
	goto LA1_;
	LA3_: ;
	{
		result = copyString(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_45));
	}
	LA1_: ;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__4eQHGndY6XBYpFOH09apV8Q*, newSeq__F7cOytKF8dCnFDv273qpMg)(NI len) {
	tySequence__4eQHGndY6XBYpFOH09apV8Q* result;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*)0;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*) newSeq((&NTI__4eQHGndY6XBYpFOH09apV8Q_), len);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, hashString)(NimStringDesc* s) {
	NI result;
	NU h;
	result = (NI)0;
	h = ((NU) 0);
	{
		NI i;
		NI colontmp_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
		res = ((NI) 0);
		{
			while (1) {
				if (!(res <= colontmp_)) goto LA3;
				i = res;
				h = (NU)((NU64)(h) + (NU64)(((NU) (((NU8)(s->data[i]))))));
				h = (NU)((NU64)(h) + (NU64)((NU)((NU64)(h) << (NU64)(((NI) 10)))));
				h = (NU)(h ^ (NU)((NU64)(h) >> (NU64)(((NI) 6))));
				res += ((NI) 1);
			} LA3: ;
		}
	}
	h = (NU)((NU64)(h) + (NU64)((NU)((NU64)(h) << (NU64)(((NI) 3)))));
	h = (NU)(h ^ (NU)((NU64)(h) >> (NU64)(((NI) 11))));
	h = (NU)((NU64)(h) + (NU64)((NU)((NU64)(h) << (NU64)(((NI) 15)))));
	result = ((NI) (h));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addCstringN__DuMbk0Tea09bkpFWJtZlU6A)(NimStringDesc** result, NCSTRING buf, NI buflen) {
	NI oldLen;
	NI newLen;
	oldLen = ((*result) ? (*result)->Sup.len : 0);
	newLen = (NI)(oldLen + buflen);
	(*result) = setLengthStr((*result), ((NI) (newLen)));
	copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*result)->data[oldLen]))), ((void*) (buf)), ((NI) (buflen)));
}
N_LIB_PRIVATE N_NIMCALL(void, addFloat__R7rBahgTSmBayFrvvbK9bKQ)(NimStringDesc** result, NF x) {
	tyArray__eVNFTutn6un5gcq48fQLdg buffer;
	NI n;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	n = writeFloatToBuffer__UrA9aquvUwHFUFx78eUQk3A(buffer, x);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	addCstringN__DuMbk0Tea09bkpFWJtZlU6A(result, ((NCSTRING) ((&buffer[(((NI) 0))- 0]))), n);
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, genericSeqDeepCopy)(void* dest, void* src, TNimType* mt) {
	void* src_2;
	src_2 = src;
	genericDeepCopy(dest, ((void*) ((&src_2))), mt);
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, cas__JJYX9aDJanv6Du380geRC5w)(NIM_BOOL* p, NIM_BOOL oldValue, NIM_BOOL newValue) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = __atomic_compare_exchange_n (p, (&oldValue), newValue, NIM_FALSE, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nimGCref)(void* p) {
	NimThreadVars* NimTV_;
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
	T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
	add__W9aRfhn7HvnQTPAb8ajo1uwsystem((&NimTV_->gch__IcYaEuuWivYAS86vFMTS3Q.additionalRoots), T1_);
}
N_LIB_PRIVATE N_NIMCALL(NI, nimParseBiggestFloat)(NimStringDesc* s, NF* number, NI start) {
	NI result;
	NI i;
	NF sign;
	NI kdigits;
	NI fdigits;
	NI exponent;
	NU64 integer;
	NI fracExponent;
	NI expSign;
	NI firstDigit;
	NIM_BOOL hasSign;
	NI realExponent;
	NIM_BOOL expNegative;
	NI absExponent;
	NI digits;
	tyArray__PGLh8drTnaWr3s1qUUSq2Q t;
	NI ti;
	NI maxlen;
{	result = (NI)0;
	i = start;
	sign = 1.0000000000000000e+000;
	kdigits = ((NI) 0);
	fdigits = ((NI) 0);
	exponent = ((NI) 0);
	integer = 0ULL;
	fracExponent = ((NI) 0);
	expSign = ((NI) 1);
	firstDigit = ((NI) -1);
	hasSign = NIM_FALSE;
	{
		NIM_BOOL T3_;
		NIM_BOOL T5_;
		T3_ = (NIM_BOOL)0;
		T3_ = (i < (s ? s->Sup.len : 0));
		if (!(T3_)) goto LA4_;
		T5_ = (NIM_BOOL)0;
		T5_ = ((NU8)(s->data[i]) == (NU8)(43));
		if (T5_) goto LA6_;
		T5_ = ((NU8)(s->data[i]) == (NU8)(45));
		LA6_: ;
		T3_ = T5_;
		LA4_: ;
		if (!T3_) goto LA7_;
		hasSign = NIM_TRUE;
		{
			if (!((NU8)(s->data[i]) == (NU8)(45))) goto LA11_;
			sign = -1.0000000000000000e+000;
		}
		LA11_: ;
		i += ((NI) 1);
	}
	LA7_: ;
	{
		NIM_BOOL T15_;
		NIM_BOOL T17_;
		T15_ = (NIM_BOOL)0;
		T15_ = ((NI)(i + ((NI) 2)) < (s ? s->Sup.len : 0));
		if (!(T15_)) goto LA16_;
		T17_ = (NIM_BOOL)0;
		T17_ = ((NU8)(s->data[i]) == (NU8)(78));
		if (T17_) goto LA18_;
		T17_ = ((NU8)(s->data[i]) == (NU8)(110));
		LA18_: ;
		T15_ = T17_;
		LA16_: ;
		if (!T15_) goto LA19_;
		{
			NIM_BOOL T23_;
			T23_ = (NIM_BOOL)0;
			T23_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(65));
			if (T23_) goto LA24_;
			T23_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(97));
			LA24_: ;
			if (!T23_) goto LA25_;
			{
				NIM_BOOL T29_;
				T29_ = (NIM_BOOL)0;
				T29_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(78));
				if (T29_) goto LA30_;
				T29_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(110));
				LA30_: ;
				if (!T29_) goto LA31_;
				{
					NIM_BOOL T35_;
					T35_ = (NIM_BOOL)0;
					T35_ = ((s ? s->Sup.len : 0) <= (NI)(i + ((NI) 3)));
					if (T35_) goto LA36_;
					T35_ = !((((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(97)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(122)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(65)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(90)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(48)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(57)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) == ((NU8)(95))));
					LA36_: ;
					if (!T35_) goto LA37_;
					(*number) = NAN;
					result = (NI)((NI)(i + ((NI) 3)) - start);
					goto BeforeRet_;
				}
				LA37_: ;
			}
			LA31_: ;
		}
		LA25_: ;
		result = ((NI) 0);
		goto BeforeRet_;
	}
	LA19_: ;
	{
		NIM_BOOL T41_;
		NIM_BOOL T43_;
		T41_ = (NIM_BOOL)0;
		T41_ = ((NI)(i + ((NI) 2)) < (s ? s->Sup.len : 0));
		if (!(T41_)) goto LA42_;
		T43_ = (NIM_BOOL)0;
		T43_ = ((NU8)(s->data[i]) == (NU8)(73));
		if (T43_) goto LA44_;
		T43_ = ((NU8)(s->data[i]) == (NU8)(105));
		LA44_: ;
		T41_ = T43_;
		LA42_: ;
		if (!T41_) goto LA45_;
		{
			NIM_BOOL T49_;
			T49_ = (NIM_BOOL)0;
			T49_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(78));
			if (T49_) goto LA50_;
			T49_ = ((NU8)(s->data[(NI)(i + ((NI) 1))]) == (NU8)(110));
			LA50_: ;
			if (!T49_) goto LA51_;
			{
				NIM_BOOL T55_;
				T55_ = (NIM_BOOL)0;
				T55_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(70));
				if (T55_) goto LA56_;
				T55_ = ((NU8)(s->data[(NI)(i + ((NI) 2))]) == (NU8)(102));
				LA56_: ;
				if (!T55_) goto LA57_;
				{
					NIM_BOOL T61_;
					T61_ = (NIM_BOOL)0;
					T61_ = ((s ? s->Sup.len : 0) <= (NI)(i + ((NI) 3)));
					if (T61_) goto LA62_;
					T61_ = !((((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(97)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(122)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(65)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(90)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) >= ((NU8)(48)) && ((NU8)(s->data[(NI)(i + ((NI) 3))])) <= ((NU8)(57)) || ((NU8)(s->data[(NI)(i + ((NI) 3))])) == ((NU8)(95))));
					LA62_: ;
					if (!T61_) goto LA63_;
					(*number) = ((NF)(INF) * (NF)(sign));
					result = (NI)((NI)(i + ((NI) 3)) - start);
					goto BeforeRet_;
				}
				LA63_: ;
			}
			LA57_: ;
		}
		LA51_: ;
		result = ((NI) 0);
		goto BeforeRet_;
	}
	LA45_: ;
	{
		NIM_BOOL T67_;
		T67_ = (NIM_BOOL)0;
		T67_ = (i < (s ? s->Sup.len : 0));
		if (!(T67_)) goto LA68_;
		T67_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
		LA68_: ;
		if (!T67_) goto LA69_;
		firstDigit = (NI)(((NU8)(s->data[i])) - ((NI) 48));
	}
	LA69_: ;
	{
		while (1) {
			NIM_BOOL T73_;
			T73_ = (NIM_BOOL)0;
			T73_ = (i < (s ? s->Sup.len : 0));
			if (!(T73_)) goto LA74_;
			T73_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
			LA74_: ;
			if (!T73_) goto LA72;
			kdigits += ((NI) 1);
			integer = (NU64)((NU64)((NU64)((NU64)(integer) * (NU64)(10ULL))) + (NU64)(((NU64) ((NI)(((NU8)(s->data[i])) - ((NI) 48))))));
			i += ((NI) 1);
			{
				while (1) {
					NIM_BOOL T77_;
					T77_ = (NIM_BOOL)0;
					T77_ = (i < (s ? s->Sup.len : 0));
					if (!(T77_)) goto LA78_;
					T77_ = ((NU8)(s->data[i]) == (NU8)(95));
					LA78_: ;
					if (!T77_) goto LA76;
					i += ((NI) 1);
				} LA76: ;
			}
		} LA72: ;
	}
	{
		NIM_BOOL T81_;
		T81_ = (NIM_BOOL)0;
		T81_ = (i < (s ? s->Sup.len : 0));
		if (!(T81_)) goto LA82_;
		T81_ = ((NU8)(s->data[i]) == (NU8)(46));
		LA82_: ;
		if (!T81_) goto LA83_;
		i += ((NI) 1);
		{
			if (!(kdigits <= ((NI) 0))) goto LA87_;
			{
				while (1) {
					NIM_BOOL T91_;
					T91_ = (NIM_BOOL)0;
					T91_ = (i < (s ? s->Sup.len : 0));
					if (!(T91_)) goto LA92_;
					T91_ = ((NU8)(s->data[i]) == (NU8)(48));
					LA92_: ;
					if (!T91_) goto LA90;
					fracExponent += ((NI) 1);
					i += ((NI) 1);
					{
						while (1) {
							NIM_BOOL T95_;
							T95_ = (NIM_BOOL)0;
							T95_ = (i < (s ? s->Sup.len : 0));
							if (!(T95_)) goto LA96_;
							T95_ = ((NU8)(s->data[i]) == (NU8)(95));
							LA96_: ;
							if (!T95_) goto LA94;
							i += ((NI) 1);
						} LA94: ;
					}
				} LA90: ;
			}
		}
		LA87_: ;
		{
			NIM_BOOL T99_;
			NIM_BOOL T100_;
			T99_ = (NIM_BOOL)0;
			T100_ = (NIM_BOOL)0;
			T100_ = (firstDigit == ((NI) -1));
			if (!(T100_)) goto LA101_;
			T100_ = (i < (s ? s->Sup.len : 0));
			LA101_: ;
			T99_ = T100_;
			if (!(T99_)) goto LA102_;
			T99_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
			LA102_: ;
			if (!T99_) goto LA103_;
			firstDigit = (NI)(((NU8)(s->data[i])) - ((NI) 48));
		}
		LA103_: ;
		{
			while (1) {
				NIM_BOOL T107_;
				T107_ = (NIM_BOOL)0;
				T107_ = (i < (s ? s->Sup.len : 0));
				if (!(T107_)) goto LA108_;
				T107_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
				LA108_: ;
				if (!T107_) goto LA106;
				fdigits += ((NI) 1);
				fracExponent += ((NI) 1);
				integer = (NU64)((NU64)((NU64)((NU64)(integer) * (NU64)(10ULL))) + (NU64)(((NU64) ((NI)(((NU8)(s->data[i])) - ((NI) 48))))));
				i += ((NI) 1);
				{
					while (1) {
						NIM_BOOL T111_;
						T111_ = (NIM_BOOL)0;
						T111_ = (i < (s ? s->Sup.len : 0));
						if (!(T111_)) goto LA112_;
						T111_ = ((NU8)(s->data[i]) == (NU8)(95));
						LA112_: ;
						if (!T111_) goto LA110;
						i += ((NI) 1);
					} LA110: ;
				}
			} LA106: ;
		}
	}
	LA83_: ;
	{
		NIM_BOOL T115_;
		NIM_BOOL T117_;
		NIM_BOOL T119_;
		T115_ = (NIM_BOOL)0;
		T115_ = ((NI)(kdigits + fdigits) <= ((NI) 0));
		if (!(T115_)) goto LA116_;
		T117_ = (NIM_BOOL)0;
		T117_ = (i == start);
		if (T117_) goto LA118_;
		T119_ = (NIM_BOOL)0;
		T119_ = (i == (NI)(start + ((NI) 1)));
		if (!(T119_)) goto LA120_;
		T119_ = hasSign;
		LA120_: ;
		T117_ = T119_;
		LA118_: ;
		T115_ = T117_;
		LA116_: ;
		if (!T115_) goto LA121_;
		result = ((NI) 0);
		goto BeforeRet_;
	}
	LA121_: ;
	{
		NIM_BOOL T125_;
		T125_ = (NIM_BOOL)0;
		T125_ = ((NI)(i + ((NI) 1)) < (s ? s->Sup.len : 0));
		if (!(T125_)) goto LA126_;
		T125_ = (((NU8)(s->data[i])) == ((NU8)(101)) || ((NU8)(s->data[i])) == ((NU8)(69)));
		LA126_: ;
		if (!T125_) goto LA127_;
		i += ((NI) 1);
		{
			NIM_BOOL T131_;
			T131_ = (NIM_BOOL)0;
			T131_ = ((NU8)(s->data[i]) == (NU8)(43));
			if (T131_) goto LA132_;
			T131_ = ((NU8)(s->data[i]) == (NU8)(45));
			LA132_: ;
			if (!T131_) goto LA133_;
			{
				if (!((NU8)(s->data[i]) == (NU8)(45))) goto LA137_;
				expSign = ((NI) -1);
			}
			LA137_: ;
			i += ((NI) 1);
		}
		LA133_: ;
		{
			if (!!((((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57))))) goto LA141_;
			result = ((NI) 0);
			goto BeforeRet_;
		}
		LA141_: ;
		{
			while (1) {
				NIM_BOOL T145_;
				T145_ = (NIM_BOOL)0;
				T145_ = (i < (s ? s->Sup.len : 0));
				if (!(T145_)) goto LA146_;
				T145_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)));
				LA146_: ;
				if (!T145_) goto LA144;
				exponent = (NI)((NI)(exponent * ((NI) 10)) + (NI)(((NU8)(s->data[i])) - ((NI) 48)));
				i += ((NI) 1);
				{
					while (1) {
						NIM_BOOL T149_;
						T149_ = (NIM_BOOL)0;
						T149_ = (i < (s ? s->Sup.len : 0));
						if (!(T149_)) goto LA150_;
						T149_ = ((NU8)(s->data[i]) == (NU8)(95));
						LA150_: ;
						if (!T149_) goto LA148;
						i += ((NI) 1);
					} LA148: ;
				}
			} LA144: ;
		}
	}
	LA127_: ;
	realExponent = (NI)((NI)(expSign * exponent) - fracExponent);
	expNegative = (realExponent < ((NI) 0));
	absExponent = (realExponent > 0? (realExponent) : -(realExponent));
	{
		if (!(((NI) 999) < absExponent)) goto LA153_;
		{
			if (!expNegative) goto LA157_;
			(*number) = ((NF)(0.0) * (NF)(sign));
		}
		goto LA155_;
		LA157_: ;
		{
			(*number) = ((NF)(INF) * (NF)(sign));
		}
		LA155_: ;
		result = (NI)(i - start);
		goto BeforeRet_;
	}
	LA153_: ;
	digits = (NI)(kdigits + fdigits);
	{
		NIM_BOOL T162_;
		NIM_BOOL T164_;
		NI slop;
		T162_ = (NIM_BOOL)0;
		T162_ = (digits <= ((NI) 15));
		if (T162_) goto LA163_;
		T164_ = (NIM_BOOL)0;
		T164_ = (digits <= ((NI) 16));
		if (!(T164_)) goto LA165_;
		T164_ = (firstDigit <= ((NI) 8));
		LA165_: ;
		T162_ = T164_;
		LA163_: ;
		if (!T162_) goto LA166_;
		{
			if (!(absExponent <= ((NI) 22))) goto LA170_;
			{
				if (!expNegative) goto LA174_;
				(*number) = ((NF)(((NF)(sign) * (NF)(((NF) (integer))))) / (NF)(powtens__l8b44pimyaWe7sztIOF1Tw[(absExponent)- 0]));
			}
			goto LA172_;
			LA174_: ;
			{
				(*number) = ((NF)(((NF)(sign) * (NF)(((NF) (integer))))) * (NF)(powtens__l8b44pimyaWe7sztIOF1Tw[(absExponent)- 0]));
			}
			LA172_: ;
			result = (NI)(i - start);
			goto BeforeRet_;
		}
		LA170_: ;
		slop = (NI)((NI)(((NI) 15) - kdigits) - fdigits);
		{
			NIM_BOOL T179_;
			T179_ = (NIM_BOOL)0;
			T179_ = (absExponent <= (NI)(((NI) 22) + slop));
			if (!(T179_)) goto LA180_;
			T179_ = !(expNegative);
			LA180_: ;
			if (!T179_) goto LA181_;
			(*number) = ((NF)(((NF)(((NF)(sign) * (NF)(((NF) (integer))))) * (NF)(powtens__l8b44pimyaWe7sztIOF1Tw[(slop)- 0]))) * (NF)(powtens__l8b44pimyaWe7sztIOF1Tw[((NI)(absExponent - slop))- 0]));
			result = (NI)(i - start);
			goto BeforeRet_;
		}
		LA181_: ;
	}
	LA166_: ;
	nimZeroMem((void*)t, sizeof(tyArray__PGLh8drTnaWr3s1qUUSq2Q));
	ti = ((NI) 0);
	maxlen = ((NI) 494);
	result = (NI)(i - start);
	i = start;
	{
		NIM_BOOL T185_;
		T185_ = (NIM_BOOL)0;
		T185_ = (i < (s ? s->Sup.len : 0));
		if (!(T185_)) goto LA186_;
		T185_ = ((NU8)(s->data[i]) == (NU8)(46));
		LA186_: ;
		if (!T185_) goto LA187_;
		i += ((NI) 1);
	}
	LA187_: ;
	{
		while (1) {
			NIM_BOOL T191_;
			T191_ = (NIM_BOOL)0;
			T191_ = (i < (s ? s->Sup.len : 0));
			if (!(T191_)) goto LA192_;
			T191_ = (((NU8)(s->data[i])) >= ((NU8)(48)) && ((NU8)(s->data[i])) <= ((NU8)(57)) || ((NU8)(s->data[i])) == ((NU8)(43)) || ((NU8)(s->data[i])) == ((NU8)(45)));
			LA192_: ;
			if (!T191_) goto LA190;
			{
				if (!(ti < maxlen)) goto LA195_;
				t[(ti)- 0] = s->data[i];
				ti += ((NI) 1);
			}
			LA195_: ;
			i += ((NI) 1);
			{
				while (1) {
					NIM_BOOL T199_;
					T199_ = (NIM_BOOL)0;
					T199_ = (i < (s ? s->Sup.len : 0));
					if (!(T199_)) goto LA200_;
					T199_ = (((NU8)(s->data[i])) == ((NU8)(46)) || ((NU8)(s->data[i])) == ((NU8)(95)));
					LA200_: ;
					if (!T199_) goto LA198;
					i += ((NI) 1);
				} LA198: ;
			}
		} LA190: ;
	}
	t[(ti)- 0] = 69;
	ti += ((NI) 1);
	{
		if (!expNegative) goto LA203_;
		t[(ti)- 0] = 45;
	}
	goto LA201_;
	LA203_: ;
	{
		t[(ti)- 0] = 43;
	}
	LA201_: ;
	ti += ((NI) 4);
	t[((NI)(ti - ((NI) 1)))- 0] = ((NIM_CHAR) ((NI)(((NI) 48) + (NI)(absExponent % ((NI) 10)))));
	absExponent = (NI)(absExponent / ((NI) 10));
	t[((NI)(ti - ((NI) 2)))- 0] = ((NIM_CHAR) ((NI)(((NI) 48) + (NI)(absExponent % ((NI) 10)))));
	absExponent = (NI)(absExponent / ((NI) 10));
	t[((NI)(ti - ((NI) 3)))- 0] = ((NIM_CHAR) ((NI)(((NI) 48) + (NI)(absExponent % ((NI) 10)))));
	(*number) = strtod(((NCSTRING) (t)), NIM_NIL);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__4eQHGndY6XBYpFOH09apV8Q*, newSeq__HC8tGwamevuQ9bMJqp0DH3w)(NI len) {
	tySequence__4eQHGndY6XBYpFOH09apV8Q* result;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*)0;
	result = (tySequence__4eQHGndY6XBYpFOH09apV8Q*) newSeq((&NTI__4eQHGndY6XBYpFOH09apV8Q_), len);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, at___9au1Hh5AAg9cMC8zv7hfdWBg)(NimStringDesc** a, NI aLen_0) {
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeq((&NTI__sM4lkSb7zS6F7OVMvW9cffQ_), ((NI) (aLen_0)));
	{
		NI i;
		NI colontmp_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = (NI)(aLen_0 - ((NI) 1));
		res = ((NI) 0);
		{
			while (1) {
				if (!(res <= colontmp_)) goto LA3;
				i = res;
				result->data[i] = copyString(a[i]);
				res += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
	int result;
	result = (int)0;
	result = memcmp(a, b, ((size_t) (size)));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, cmp__NAicU5bAGXmkx2NJujGi7g)(NimStringDesc* x, NimStringDesc* y) {
	NI result;
	NI minlen;
	int T1_;
	result = (NI)0;
	minlen = (((x ? x->Sup.len : 0) <= (y ? y->Sup.len : 0)) ? (x ? x->Sup.len : 0) : (y ? y->Sup.len : 0));
	T1_ = (int)0;
	T1_ = nimCmpMem(((void*) (nimToCStringConv(x))), ((void*) (nimToCStringConv(y))), ((NI) (((size_t) (minlen)))));
	result = ((NI) (T1_));
	{
		if (!(result == ((NI) 0))) goto LA4_;
		result = (NI)((x ? x->Sup.len : 0) - (y ? y->Sup.len : 0));
	}
	LA4_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, addQuoted__YHOgcRSdUuxfn1ho43k9a5g)(NimStringDesc** s, tyObject_XmlNodeObj__X79bE2j9a1V7tizbx9blALudQ* x) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	add__L5ivS03sIqPjaqmOum9c7Vw(s, x, ((NI) 0), ((NI) 2), NIM_TRUE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_NIMCALL(void, Marker_tySequence__9adZzcOGzsbgOQfLQZInF8Q)(void* p, NI op) {
	tySequence__9adZzcOGzsbgOQfLQZInF8Q* a;
	NI T1_;
	a = (tySequence__9adZzcOGzsbgOQfLQZInF8Q*)p;
	T1_ = (NI)0;
	for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
	nimGCvisit((void*)a->data[T1_], op);
	}
}
N_LIB_PRIVATE N_NIMCALL(tySequence__9adZzcOGzsbgOQfLQZInF8Q*, newSeq__5LJ0rJ4pNGKUWOLJuKyIMQ)(NI len) {
	tySequence__9adZzcOGzsbgOQfLQZInF8Q* result;
	result = (tySequence__9adZzcOGzsbgOQfLQZInF8Q*)0;
	result = (tySequence__9adZzcOGzsbgOQfLQZInF8Q*) newSeq((&NTI__9adZzcOGzsbgOQfLQZInF8Q_), len);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, eqdestroy___UoZMgU7ixJjo1vwgorfV9bw)(tySequence__AjV3cEUgs0Y9c7dCt9aItdIA** dest) {
}
static N_NIMCALL(void, Marker_tySequence__phjbYJtsbOIAYa9be34hhZg)(void* p, NI op) {
	tySequence__phjbYJtsbOIAYa9be34hhZg* a;
	NI T1_;
	a = (tySequence__phjbYJtsbOIAYa9be34hhZg*)p;
	T1_ = (NI)0;
	for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
	nimGCvisit((void*)a->data[T1_], op);
	}
}
N_LIB_PRIVATE N_NIMCALL(tySequence__phjbYJtsbOIAYa9be34hhZg*, newSeq__l49arw9cE1Cv9cl9baGz8vEqQQ)(NI len) {
	tySequence__phjbYJtsbOIAYa9be34hhZg* result;
	result = (tySequence__phjbYJtsbOIAYa9be34hhZg*)0;
	result = (tySequence__phjbYJtsbOIAYa9be34hhZg*) newSeq((&NTI__phjbYJtsbOIAYa9be34hhZg_), len);
	return result;
}
static N_NIMCALL(void, Marker_tySequence__Oy5XceZ6t0fE9a50ltafOpg)(void* p, NI op) {
	tySequence__Oy5XceZ6t0fE9a50ltafOpg* a;
	NI T1_;
	a = (tySequence__Oy5XceZ6t0fE9a50ltafOpg*)p;
	T1_ = (NI)0;
	for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
	nimGCvisit((void*)a->data[T1_].Field0, op);
	nimGCvisit((void*)a->data[T1_].Field1, op);
	nimGCvisit((void*)a->data[T1_].Field3, op);
	}
}
N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void) {
	NimThreadVars* NimTV_;
NIM_BOOL* nimErr_;
{	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = NimTV_->nimInErrorMode__759bT87luu8XGcbkw13FUjA;
		if (!(T3_)) goto LA4_;
		T3_ = !((NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg == NIM_NIL));
		LA4_: ;
		if (!T3_) goto LA5_;
		reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2(NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		NimTV_->currException__9bVPeDJlYTi9bQApZpfH8wjg = NIM_NIL;
		exit(((NI) 1));
	}
	LA5_: ;
	}BeforeRet_: ;
}
static N_INLINE(void, initThreadVarsEmulation)(void) {
	globalsSlot__ciXDZu9c27pHpCRMoz4RIgw = TlsAlloc();
	TlsSetValue(globalsSlot__ciXDZu9c27pHpCRMoz4RIgw, ((void*) ((&mainThread__6r3APOnKvB9aL9atazGvT52A))));
}
static N_INLINE(void, initStackBottomWith)(void* locals) {
	nimGC_setStackBottom(locals);
}
N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void) {
{
	TFrame FR_; FR_.len = 0;
	NimThreadVars* NimTV_;
	NimTV_ = (NimThreadVars*) GetThreadLocalVars();
}
{

	nimRegisterThreadLocalMarker(TM__Q5wkpxktOdTGvlSRo9bzt9aw_3);


	nimRegisterThreadLocalMarker(TM__Q5wkpxktOdTGvlSRo9bzt9aw_6);

	{
		NI T3_;
		int T6_;
		T3_ = (NI)0;
		T3_ = NimThreadVarsSize();
		if (!(((NI) 16008) < T3_)) goto LA4_;
		T6_ = (int)0;
		T6_ = fprintf(stderr, "too large thread local storage size requested,\012use -d:\\\"nimTlsS"
"ize=X\\\" to setup even more or stop using unittest.nim");
		exit(((NI) 1));
	}
	LA4_: ;
	initGC__amVlU9ajqZ06ujoesRBHcDg();
	InitializeCriticalSection((&heapLock__Cm9aJxbMhUuv7Cj8trffHQw));
}
}

N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void) {

/* section: NIM_merge_TYPE_INIT1 */
static TNimNode* TM__Q5wkpxktOdTGvlSRo9bzt9aw_2_2[2];
static TNimNode* TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[5];
static TNimNode* TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[3];
static TNimNode TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[27];

/* section: NIM_merge_TYPE_INIT3 */
NTI__HzVCwACFYM9cx9aV62PdjtuA_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTI__HzVCwACFYM9cx9aV62PdjtuA_.align = NIM_ALIGNOF(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTI__HzVCwACFYM9cx9aV62PdjtuA_.kind = 18;
NTI__HzVCwACFYM9cx9aV62PdjtuA_.base = 0;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_2_2[0] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1];
NTI__vr5DoT1jILTGdRlYv1OYpw_.size = sizeof(void*);
NTI__vr5DoT1jILTGdRlYv1OYpw_.align = NIM_ALIGNOF(void*);
NTI__vr5DoT1jILTGdRlYv1OYpw_.kind = 26;
NTI__vr5DoT1jILTGdRlYv1OYpw_.base = 0;
NTI__vr5DoT1jILTGdRlYv1OYpw_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[1].name = "Field0";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_2_2[1] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2];
NTI__ytyiCJqK439aF9cIibuRVpAg_.size = sizeof(RootObj);
NTI__ytyiCJqK439aF9cIibuRVpAg_.align = NIM_ALIGNOF(RootObj);
NTI__ytyiCJqK439aF9cIibuRVpAg_.kind = 17;
NTI__ytyiCJqK439aF9cIibuRVpAg_.base = 0;
NTI__ytyiCJqK439aF9cIibuRVpAg_.flags = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3].kind = 2;
NTI__ytyiCJqK439aF9cIibuRVpAg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[3];
NTI__diB2NTuAIWY0FO9c5IUJRGg_.size = sizeof(tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg);
NTI__diB2NTuAIWY0FO9c5IUJRGg_.align = NIM_ALIGNOF(tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg);
NTI__diB2NTuAIWY0FO9c5IUJRGg_.kind = 17;
NTI__diB2NTuAIWY0FO9c5IUJRGg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
NTI__diB2NTuAIWY0FO9c5IUJRGg_.flags = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4].kind = 2;
NTI__diB2NTuAIWY0FO9c5IUJRGg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[4];
NTI__HsJiUUcO9cHBdUCi0HwkSTA_.size = sizeof(tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg*);
NTI__HsJiUUcO9cHBdUCi0HwkSTA_.align = NIM_ALIGNOF(tyObject_Env_systemdotnim___diB2NTuAIWY0FO9c5IUJRGg*);
NTI__HsJiUUcO9cHBdUCi0HwkSTA_.kind = 22;
NTI__HsJiUUcO9cHBdUCi0HwkSTA_.base = (&NTI__diB2NTuAIWY0FO9c5IUJRGg_);
NTI__HsJiUUcO9cHBdUCi0HwkSTA_.marker = Marker_tyRef__HsJiUUcO9cHBdUCi0HwkSTA;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[2].name = "Field1";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0].len = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0].kind = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0].sons = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_2_2[0];
NTI__HzVCwACFYM9cx9aV62PdjtuA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[0];
NTI__aNpJjaoUowCQc7fBn3wtDQ_.size = sizeof(tySequence__aNpJjaoUowCQc7fBn3wtDQ*);
NTI__aNpJjaoUowCQc7fBn3wtDQ_.align = NIM_ALIGNOF(tySequence__aNpJjaoUowCQc7fBn3wtDQ*);
NTI__aNpJjaoUowCQc7fBn3wtDQ_.kind = 24;
NTI__aNpJjaoUowCQc7fBn3wtDQ_.base = (&NTI__HzVCwACFYM9cx9aV62PdjtuA_);
NTI__aNpJjaoUowCQc7fBn3wtDQ_.marker = Marker_tySequence__aNpJjaoUowCQc7fBn3wtDQ;
NTI__XEycrCsme5C8CVWAYEcdBQ_.size = sizeof(Exception);
NTI__XEycrCsme5C8CVWAYEcdBQ_.align = NIM_ALIGNOF(Exception);
NTI__XEycrCsme5C8CVWAYEcdBQ_.kind = 17;
NTI__XEycrCsme5C8CVWAYEcdBQ_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[0] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].offset = offsetof(Exception, parent);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].typ = (&NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[6].name = "parent";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[1] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7];
NTI__S9agCYBinaYZnGWcjTdxclg_.size = sizeof(NCSTRING);
NTI__S9agCYBinaYZnGWcjTdxclg_.align = NIM_ALIGNOF(NCSTRING);
NTI__S9agCYBinaYZnGWcjTdxclg_.kind = 29;
NTI__S9agCYBinaYZnGWcjTdxclg_.base = 0;
NTI__S9agCYBinaYZnGWcjTdxclg_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].offset = offsetof(Exception, name);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].typ = (&NTI__S9agCYBinaYZnGWcjTdxclg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[7].name = "name";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[2] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8];
NTI__77mFvmsOLKik79ci2hXkHEg_.size = sizeof(NimStringDesc*);
NTI__77mFvmsOLKik79ci2hXkHEg_.align = NIM_ALIGNOF(NimStringDesc*);
NTI__77mFvmsOLKik79ci2hXkHEg_.kind = 28;
NTI__77mFvmsOLKik79ci2hXkHEg_.base = 0;
NTI__77mFvmsOLKik79ci2hXkHEg_.flags = 2;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].offset = offsetof(Exception, message);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[8].name = "msg";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[3] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9];
NTI__oLyohQ7O2XOvGnflOss8EA_.size = sizeof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA);
NTI__oLyohQ7O2XOvGnflOss8EA_.align = NIM_ALIGNOF(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA);
NTI__oLyohQ7O2XOvGnflOss8EA_.kind = 18;
NTI__oLyohQ7O2XOvGnflOss8EA_.base = 0;
NTI__oLyohQ7O2XOvGnflOss8EA_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[0] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11].offset = offsetof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA, procname);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11].typ = (&NTI__S9agCYBinaYZnGWcjTdxclg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[11].name = "procname";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[1] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12];
NTI__rR5Bzr1D5krxoo1NcNyeMA_.size = sizeof(NI);
NTI__rR5Bzr1D5krxoo1NcNyeMA_.align = NIM_ALIGNOF(NI);
NTI__rR5Bzr1D5krxoo1NcNyeMA_.kind = 31;
NTI__rR5Bzr1D5krxoo1NcNyeMA_.base = 0;
NTI__rR5Bzr1D5krxoo1NcNyeMA_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12].offset = offsetof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA, line);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[12].name = "line";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[2] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13].offset = offsetof(tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA, filename);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13].typ = (&NTI__S9agCYBinaYZnGWcjTdxclg_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[13].name = "filename";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].len = 3; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].kind = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10].sons = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_5_3[0];
NTI__oLyohQ7O2XOvGnflOss8EA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[10];
NTI__uB9b75OUPRENsBAu4AnoePA_.size = sizeof(tySequence__uB9b75OUPRENsBAu4AnoePA*);
NTI__uB9b75OUPRENsBAu4AnoePA_.align = NIM_ALIGNOF(tySequence__uB9b75OUPRENsBAu4AnoePA*);
NTI__uB9b75OUPRENsBAu4AnoePA_.kind = 24;
NTI__uB9b75OUPRENsBAu4AnoePA_.base = (&NTI__oLyohQ7O2XOvGnflOss8EA_);
NTI__uB9b75OUPRENsBAu4AnoePA_.flags = 2;
NTI__uB9b75OUPRENsBAu4AnoePA_.marker = Marker_tySequence__uB9b75OUPRENsBAu4AnoePA;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].offset = offsetof(Exception, trace);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].typ = (&NTI__uB9b75OUPRENsBAu4AnoePA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[9].name = "trace";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[4] = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14];
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14].offset = offsetof(Exception, up);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14].typ = (&NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[14].name = "up";
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].len = 5; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].kind = 2; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5].sons = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_4_5[0];
NTI__XEycrCsme5C8CVWAYEcdBQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[5];
NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_.size = sizeof(Exception*);
NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_.align = NIM_ALIGNOF(Exception*);
NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_.kind = 22;
NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_.base = (&NTI__XEycrCsme5C8CVWAYEcdBQ_);
NTI__vU9aO9cTqOMn6CBzhV8rX7Sw_.marker = Marker_tyRef__vU9aO9cTqOMn6CBzhV8rX7Sw;
NTI__qrLSDoe2oBoAqNtJ9badtnA_.size = sizeof(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA);
NTI__qrLSDoe2oBoAqNtJ9badtnA_.align = NIM_ALIGNOF(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA);
NTI__qrLSDoe2oBoAqNtJ9badtnA_.kind = 17;
NTI__qrLSDoe2oBoAqNtJ9badtnA_.base = (&NTI__XEycrCsme5C8CVWAYEcdBQ_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[15].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[15].kind = 2;
NTI__qrLSDoe2oBoAqNtJ9badtnA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[15];
NTI__BeJgrOdDsczOwEWOZbRfKA_.size = sizeof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA);
NTI__BeJgrOdDsczOwEWOZbRfKA_.align = NIM_ALIGNOF(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA);
NTI__BeJgrOdDsczOwEWOZbRfKA_.kind = 17;
NTI__BeJgrOdDsczOwEWOZbRfKA_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
NTI__sVg18TP9cLifHyygRe9cro9aA_.size = sizeof(NI32);
NTI__sVg18TP9cLifHyygRe9cro9aA_.align = NIM_ALIGNOF(NI32);
NTI__sVg18TP9cLifHyygRe9cro9aA_.kind = 34;
NTI__sVg18TP9cLifHyygRe9cro9aA_.base = 0;
NTI__sVg18TP9cLifHyygRe9cro9aA_.flags = 3;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16].kind = 1;
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16].offset = offsetof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA, errorCode);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16].typ = (&NTI__sVg18TP9cLifHyygRe9cro9aA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16].name = "errorCode";
NTI__BeJgrOdDsczOwEWOZbRfKA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[16];
NTI__9clYsYwyjCqe2PFTuCI3Ubg_.size = sizeof(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*);
NTI__9clYsYwyjCqe2PFTuCI3Ubg_.align = NIM_ALIGNOF(tyObject_OSError__BeJgrOdDsczOwEWOZbRfKA*);
NTI__9clYsYwyjCqe2PFTuCI3Ubg_.kind = 22;
NTI__9clYsYwyjCqe2PFTuCI3Ubg_.base = (&NTI__BeJgrOdDsczOwEWOZbRfKA_);
NTI__9clYsYwyjCqe2PFTuCI3Ubg_.marker = Marker_tyRef__9clYsYwyjCqe2PFTuCI3Ubg;
NTI__LbeSGvgPzGzXnW9caIkJqMA_.size = sizeof(tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA);
NTI__LbeSGvgPzGzXnW9caIkJqMA_.align = NIM_ALIGNOF(tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA);
NTI__LbeSGvgPzGzXnW9caIkJqMA_.kind = 17;
NTI__LbeSGvgPzGzXnW9caIkJqMA_.base = (&NTI__XEycrCsme5C8CVWAYEcdBQ_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17].kind = 2;
NTI__LbeSGvgPzGzXnW9caIkJqMA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[17];
NTI__cT9c9bHlHSpA1QTnKbHjnIkA_.size = sizeof(tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA);
NTI__cT9c9bHlHSpA1QTnKbHjnIkA_.align = NIM_ALIGNOF(tyObject_ArithmeticDefect__cT9c9bHlHSpA1QTnKbHjnIkA);
NTI__cT9c9bHlHSpA1QTnKbHjnIkA_.kind = 17;
NTI__cT9c9bHlHSpA1QTnKbHjnIkA_.base = (&NTI__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18].kind = 2;
NTI__cT9c9bHlHSpA1QTnKbHjnIkA_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[18];
NTI__9cxMi1BPLc3UKt9br86bGfGQ_.size = sizeof(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ);
NTI__9cxMi1BPLc3UKt9br86bGfGQ_.align = NIM_ALIGNOF(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ);
NTI__9cxMi1BPLc3UKt9br86bGfGQ_.kind = 17;
NTI__9cxMi1BPLc3UKt9br86bGfGQ_.base = (&NTI__cT9c9bHlHSpA1QTnKbHjnIkA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19].kind = 2;
NTI__9cxMi1BPLc3UKt9br86bGfGQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[19];
NTI__r8GBEWywN07B3Rat3azS4Q_.size = sizeof(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*);
NTI__r8GBEWywN07B3Rat3azS4Q_.align = NIM_ALIGNOF(tyObject_OverflowDefect__9cxMi1BPLc3UKt9br86bGfGQ*);
NTI__r8GBEWywN07B3Rat3azS4Q_.kind = 22;
NTI__r8GBEWywN07B3Rat3azS4Q_.base = (&NTI__9cxMi1BPLc3UKt9br86bGfGQ_);
NTI__r8GBEWywN07B3Rat3azS4Q_.marker = Marker_tyRef__r8GBEWywN07B3Rat3azS4Q;
NTI__x1muge9crz9aAVqWWUrEL9aXg_.size = sizeof(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg);
NTI__x1muge9crz9aAVqWWUrEL9aXg_.align = NIM_ALIGNOF(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg);
NTI__x1muge9crz9aAVqWWUrEL9aXg_.kind = 17;
NTI__x1muge9crz9aAVqWWUrEL9aXg_.base = (&NTI__BeJgrOdDsczOwEWOZbRfKA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[20].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[20].kind = 2;
NTI__x1muge9crz9aAVqWWUrEL9aXg_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[20];
NTI__HV2B9a6TW6WPpQna2mQFeQQ_.size = sizeof(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg*);
NTI__HV2B9a6TW6WPpQna2mQFeQQ_.align = NIM_ALIGNOF(tyObject_LibraryError__x1muge9crz9aAVqWWUrEL9aXg*);
NTI__HV2B9a6TW6WPpQna2mQFeQQ_.kind = 22;
NTI__HV2B9a6TW6WPpQna2mQFeQQ_.base = (&NTI__x1muge9crz9aAVqWWUrEL9aXg_);
NTI__HV2B9a6TW6WPpQna2mQFeQQ_.marker = Marker_tyRef__HV2B9a6TW6WPpQna2mQFeQQ;
NTI__PtYxPmY5X0dorfvxAFbJpQ_.size = sizeof(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ);
NTI__PtYxPmY5X0dorfvxAFbJpQ_.align = NIM_ALIGNOF(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ);
NTI__PtYxPmY5X0dorfvxAFbJpQ_.kind = 17;
NTI__PtYxPmY5X0dorfvxAFbJpQ_.base = (&NTI__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[21].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[21].kind = 2;
NTI__PtYxPmY5X0dorfvxAFbJpQ_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[21];
NTI__S8DV6hfcgC9c0IiUsAoR29cQ_.size = sizeof(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*);
NTI__S8DV6hfcgC9c0IiUsAoR29cQ_.align = NIM_ALIGNOF(tyObject_AssertionDefect__PtYxPmY5X0dorfvxAFbJpQ*);
NTI__S8DV6hfcgC9c0IiUsAoR29cQ_.kind = 22;
NTI__S8DV6hfcgC9c0IiUsAoR29cQ_.base = (&NTI__PtYxPmY5X0dorfvxAFbJpQ_);
NTI__S8DV6hfcgC9c0IiUsAoR29cQ_.marker = Marker_tyRef__S8DV6hfcgC9c0IiUsAoR29cQ;
NTI__Aav8dQoMlCFnZRxA0IhTHQ_.size = sizeof(NI64);
NTI__Aav8dQoMlCFnZRxA0IhTHQ_.align = NIM_ALIGNOF(NI64);
NTI__Aav8dQoMlCFnZRxA0IhTHQ_.kind = 35;
NTI__Aav8dQoMlCFnZRxA0IhTHQ_.base = 0;
NTI__Aav8dQoMlCFnZRxA0IhTHQ_.flags = 3;
NTI__VaVACK0bpYmqIQ0mKcHfQQ_.size = sizeof(NIM_BOOL);
NTI__VaVACK0bpYmqIQ0mKcHfQQ_.align = NIM_ALIGNOF(NIM_BOOL);
NTI__VaVACK0bpYmqIQ0mKcHfQQ_.kind = 1;
NTI__VaVACK0bpYmqIQ0mKcHfQQ_.base = 0;
NTI__VaVACK0bpYmqIQ0mKcHfQQ_.flags = 3;
NTI__KFG1Y2EPzgtJWwuYhMD0Fw_.size = sizeof(tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw);
NTI__KFG1Y2EPzgtJWwuYhMD0Fw_.align = NIM_ALIGNOF(tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw);
NTI__KFG1Y2EPzgtJWwuYhMD0Fw_.kind = 17;
NTI__KFG1Y2EPzgtJWwuYhMD0Fw_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[22].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[22].kind = 2;
NTI__KFG1Y2EPzgtJWwuYhMD0Fw_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[22];
NTI__M8bPR1OE5OXPYGyQdVHfTg_.size = sizeof(tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw*);
NTI__M8bPR1OE5OXPYGyQdVHfTg_.align = NIM_ALIGNOF(tyObject_ResourceExhaustedError__KFG1Y2EPzgtJWwuYhMD0Fw*);
NTI__M8bPR1OE5OXPYGyQdVHfTg_.kind = 22;
NTI__M8bPR1OE5OXPYGyQdVHfTg_.base = (&NTI__KFG1Y2EPzgtJWwuYhMD0Fw_);
NTI__M8bPR1OE5OXPYGyQdVHfTg_.marker = Marker_tyRef__M8bPR1OE5OXPYGyQdVHfTg;
NTI__nlCscttRCss70IBTyuBqnA_.size = sizeof(int);
NTI__nlCscttRCss70IBTyuBqnA_.align = NIM_ALIGNOF(int);
NTI__nlCscttRCss70IBTyuBqnA_.kind = 34;
NTI__nlCscttRCss70IBTyuBqnA_.base = 0;
NTI__nlCscttRCss70IBTyuBqnA_.flags = 3;
NTI__yoNlBGx0D2tRizIdhQuENw_.size = sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw);
NTI__yoNlBGx0D2tRizIdhQuENw_.align = NIM_ALIGNOF(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw);
NTI__yoNlBGx0D2tRizIdhQuENw_.kind = 17;
NTI__yoNlBGx0D2tRizIdhQuENw_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[23].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[23].kind = 2;
NTI__yoNlBGx0D2tRizIdhQuENw_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[23];
NTI__Ie1m0dv1ZHg72IgPRr1cDw_.size = sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*);
NTI__Ie1m0dv1ZHg72IgPRr1cDw_.align = NIM_ALIGNOF(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*);
NTI__Ie1m0dv1ZHg72IgPRr1cDw_.kind = 22;
NTI__Ie1m0dv1ZHg72IgPRr1cDw_.base = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
NTI__Ie1m0dv1ZHg72IgPRr1cDw_.marker = Marker_tyRef__Ie1m0dv1ZHg72IgPRr1cDw;
NTI__6toVe0IizlEwN9bORXEdX3g_.size = sizeof(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g);
NTI__6toVe0IizlEwN9bORXEdX3g_.align = NIM_ALIGNOF(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g);
NTI__6toVe0IizlEwN9bORXEdX3g_.kind = 17;
NTI__6toVe0IizlEwN9bORXEdX3g_.base = (&NTI__LbeSGvgPzGzXnW9caIkJqMA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[24].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[24].kind = 2;
NTI__6toVe0IizlEwN9bORXEdX3g_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[24];
NTI__C0A9bPZSVeyr2BWpBf4Jxqw_.size = sizeof(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*);
NTI__C0A9bPZSVeyr2BWpBf4Jxqw_.align = NIM_ALIGNOF(tyObject_ObjectAssignmentDefect__6toVe0IizlEwN9bORXEdX3g*);
NTI__C0A9bPZSVeyr2BWpBf4Jxqw_.kind = 22;
NTI__C0A9bPZSVeyr2BWpBf4Jxqw_.base = (&NTI__6toVe0IizlEwN9bORXEdX3g_);
NTI__C0A9bPZSVeyr2BWpBf4Jxqw_.marker = Marker_tyRef__C0A9bPZSVeyr2BWpBf4Jxqw;
NTI__kDPg4wXyR8DDyA0MeEjIsw_.size = sizeof(NI16);
NTI__kDPg4wXyR8DDyA0MeEjIsw_.align = NIM_ALIGNOF(NI16);
NTI__kDPg4wXyR8DDyA0MeEjIsw_.kind = 33;
NTI__kDPg4wXyR8DDyA0MeEjIsw_.base = 0;
NTI__kDPg4wXyR8DDyA0MeEjIsw_.flags = 3;
NTI__iLZrPn9anoh9ad1MmO0RczFw_.size = sizeof(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw);
NTI__iLZrPn9anoh9ad1MmO0RczFw_.align = NIM_ALIGNOF(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw);
NTI__iLZrPn9anoh9ad1MmO0RczFw_.kind = 17;
NTI__iLZrPn9anoh9ad1MmO0RczFw_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[25].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[25].kind = 2;
NTI__iLZrPn9anoh9ad1MmO0RczFw_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[25];
NTI__nmiMWKVIe46vacnhAFrQvw_.size = sizeof(NIM_CHAR);
NTI__nmiMWKVIe46vacnhAFrQvw_.align = NIM_ALIGNOF(NIM_CHAR);
NTI__nmiMWKVIe46vacnhAFrQvw_.kind = 2;
NTI__nmiMWKVIe46vacnhAFrQvw_.base = 0;
NTI__nmiMWKVIe46vacnhAFrQvw_.flags = 3;
NTI__HMIVdYjdZYWskTmTQVo5BQ_.size = sizeof(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*);
NTI__HMIVdYjdZYWskTmTQVo5BQ_.align = NIM_ALIGNOF(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*);
NTI__HMIVdYjdZYWskTmTQVo5BQ_.kind = 22;
NTI__HMIVdYjdZYWskTmTQVo5BQ_.base = (&NTI__iLZrPn9anoh9ad1MmO0RczFw_);
NTI__HMIVdYjdZYWskTmTQVo5BQ_.marker = Marker_tyRef__HMIVdYjdZYWskTmTQVo5BQ;
NTI__qwqHTkRvwhrRyENtudHQ7g_.size = sizeof(tySequence__qwqHTkRvwhrRyENtudHQ7g*);
NTI__qwqHTkRvwhrRyENtudHQ7g_.align = NIM_ALIGNOF(tySequence__qwqHTkRvwhrRyENtudHQ7g*);
NTI__qwqHTkRvwhrRyENtudHQ7g_.kind = 24;
NTI__qwqHTkRvwhrRyENtudHQ7g_.base = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
NTI__qwqHTkRvwhrRyENtudHQ7g_.flags = 2;
NTI__qwqHTkRvwhrRyENtudHQ7g_.marker = Marker_tySequence__qwqHTkRvwhrRyENtudHQ7g;
NTI__t7nhKLvXTQS9cS8ByJU9bIag_.size = sizeof(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag);
NTI__t7nhKLvXTQS9cS8ByJU9bIag_.align = NIM_ALIGNOF(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag);
NTI__t7nhKLvXTQS9cS8ByJU9bIag_.kind = 17;
NTI__t7nhKLvXTQS9cS8ByJU9bIag_.base = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[26].len = 0; TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[26].kind = 2;
NTI__t7nhKLvXTQS9cS8ByJU9bIag_.node = &TM__Q5wkpxktOdTGvlSRo9bzt9aw_0[26];
NTI__8SzoIAgLw9ci2v0yafHj9b6Q_.size = sizeof(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*);
NTI__8SzoIAgLw9ci2v0yafHj9b6Q_.align = NIM_ALIGNOF(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*);
NTI__8SzoIAgLw9ci2v0yafHj9b6Q_.kind = 22;
NTI__8SzoIAgLw9ci2v0yafHj9b6Q_.base = (&NTI__t7nhKLvXTQS9cS8ByJU9bIag_);
NTI__8SzoIAgLw9ci2v0yafHj9b6Q_.marker = Marker_tyRef__8SzoIAgLw9ci2v0yafHj9b6Q;
NTI__hLlQjbV9bLNq5PFxYcqacsA_.size = sizeof(NI);
NTI__hLlQjbV9bLNq5PFxYcqacsA_.align = NIM_ALIGNOF(NI);
NTI__hLlQjbV9bLNq5PFxYcqacsA_.kind = 31;
NTI__hLlQjbV9bLNq5PFxYcqacsA_.base = 0;
NTI__hLlQjbV9bLNq5PFxYcqacsA_.flags = 3;
NTI__Zko9ahsslsvncfBXJMjCANg_.size = sizeof(long);
NTI__Zko9ahsslsvncfBXJMjCANg_.align = NIM_ALIGNOF(long);
NTI__Zko9ahsslsvncfBXJMjCANg_.kind = 34;
NTI__Zko9ahsslsvncfBXJMjCANg_.base = 0;
NTI__Zko9ahsslsvncfBXJMjCANg_.flags = 3;
NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_.size = sizeof(NF);
NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_.align = NIM_ALIGNOF(NF);
NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_.kind = 36;
NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_.base = 0;
NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_.flags = 3;
NTI__9adZzcOGzsbgOQfLQZInF8Q_.size = sizeof(tySequence__9adZzcOGzsbgOQfLQZInF8Q*);
NTI__9adZzcOGzsbgOQfLQZInF8Q_.align = NIM_ALIGNOF(tySequence__9adZzcOGzsbgOQfLQZInF8Q*);
NTI__9adZzcOGzsbgOQfLQZInF8Q_.kind = 24;
NTI__9adZzcOGzsbgOQfLQZInF8Q_.base = (&NTI__AjV3cEUgs0Y9c7dCt9aItdIA_);
NTI__9adZzcOGzsbgOQfLQZInF8Q_.flags = 2;
NTI__9adZzcOGzsbgOQfLQZInF8Q_.marker = Marker_tySequence__9adZzcOGzsbgOQfLQZInF8Q;
NTI__phjbYJtsbOIAYa9be34hhZg_.size = sizeof(tySequence__phjbYJtsbOIAYa9be34hhZg*);
NTI__phjbYJtsbOIAYa9be34hhZg_.align = NIM_ALIGNOF(tySequence__phjbYJtsbOIAYa9be34hhZg*);
NTI__phjbYJtsbOIAYa9be34hhZg_.kind = 24;
NTI__phjbYJtsbOIAYa9be34hhZg_.base = (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_);
NTI__phjbYJtsbOIAYa9be34hhZg_.flags = 2;
NTI__phjbYJtsbOIAYa9be34hhZg_.marker = Marker_tySequence__phjbYJtsbOIAYa9be34hhZg;
NTI__a9bIsIkdQvQMv0xYGrfgSag_.size = sizeof(NI);
NTI__a9bIsIkdQvQMv0xYGrfgSag_.align = NIM_ALIGNOF(NI);
NTI__a9bIsIkdQvQMv0xYGrfgSag_.kind = 31;
NTI__a9bIsIkdQvQMv0xYGrfgSag_.base = 0;
NTI__a9bIsIkdQvQMv0xYGrfgSag_.flags = 3;
NTI__Oy5XceZ6t0fE9a50ltafOpg_.size = sizeof(tySequence__Oy5XceZ6t0fE9a50ltafOpg*);
NTI__Oy5XceZ6t0fE9a50ltafOpg_.align = NIM_ALIGNOF(tySequence__Oy5XceZ6t0fE9a50ltafOpg*);
NTI__Oy5XceZ6t0fE9a50ltafOpg_.kind = 24;
NTI__Oy5XceZ6t0fE9a50ltafOpg_.base = (&NTI__oX5InXzfMaDJhIOZ39aPhDg_);
NTI__Oy5XceZ6t0fE9a50ltafOpg_.flags = 2;
NTI__Oy5XceZ6t0fE9a50ltafOpg_.marker = Marker_tySequence__Oy5XceZ6t0fE9a50ltafOpg;

/* section: NIM_merge_DYNLIB_INIT */
if (!((TM__Q5wkpxktOdTGvlSRo9bzt9aw_24 = nimLoadLibrary(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_26)))
)) nimLoadLibraryError(((NimStringDesc*) &TM__Q5wkpxktOdTGvlSRo9bzt9aw_27));
	Dl_1325210_ = (tyProc__jc40GBUDal8eAxynRASEHA) nimGetProcAddr(TM__Q5wkpxktOdTGvlSRo9bzt9aw_24, "CreateThread");
}

