/* Generated by Nim Compiler v0.12.0 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32

#include "nimbase.h"
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tinfocpu176483 Tinfocpu176483;
typedef struct Tinfoos176049 Tinfoos176049;
typedef struct Cell48946 Cell48946;
typedef struct TNimType TNimType;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct TNimNode TNimNode;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct Tinfocpu176483 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef Tinfocpu176483 TY176514[18];
struct Tinfoos176049 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
NimStringDesc* Field3;
NimStringDesc* Field4;
NimStringDesc* Field5;
NimStringDesc* Field6;
NimStringDesc* Field7;
NimStringDesc* Field8;
NimStringDesc* Field9;
NimStringDesc* Field10;
NimStringDesc* Field11;
NU8 Field12;
};
typedef Tinfoos176049 TY176084[24];
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
N_NIMCALL(NU8, nametocpu_176645)(NimStringDesc* name);
N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NU8, nametoos_176639)(NimStringDesc* name);
N_NIMCALL(void, settarget_176662)(NU8 o, NU8 c);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
STRING_LITERAL(TMP63, "i386", 4);
STRING_LITERAL(TMP64, "m68k", 4);
STRING_LITERAL(TMP65, "alpha", 5);
STRING_LITERAL(TMP66, "powerpc", 7);
STRING_LITERAL(TMP67, "powerpc64", 9);
STRING_LITERAL(TMP68, "powerpc64el", 11);
STRING_LITERAL(TMP69, "sparc", 5);
STRING_LITERAL(TMP70, "vm", 2);
STRING_LITERAL(TMP71, "ia64", 4);
STRING_LITERAL(TMP72, "amd64", 5);
STRING_LITERAL(TMP73, "mips", 4);
STRING_LITERAL(TMP74, "mipsel", 6);
STRING_LITERAL(TMP75, "arm", 3);
STRING_LITERAL(TMP76, "arm64", 5);
STRING_LITERAL(TMP77, "js", 2);
STRING_LITERAL(TMP78, "nimrodvm", 8);
STRING_LITERAL(TMP79, "avr", 3);
STRING_LITERAL(TMP80, "msp430", 6);
NIM_CONST TY176514 Cpu_176500 = {{((NimStringDesc*) &TMP63),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP64),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP65),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP66),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP67),
((NI) 64),
((NU8) 1),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP68),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP69),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP70),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP71),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP72),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP73),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP74),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP75),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP76),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP77),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP78),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP79),
((NI) 16),
((NU8) 0),
((NI) 32),
((NI) 16)}
,
{((NimStringDesc*) &TMP80),
((NI) 16),
((NU8) 0),
((NI) 32),
((NI) 16)}
}
;
STRING_LITERAL(TMP81, "DOS", 3);
STRING_LITERAL(TMP82, "..", 2);
STRING_LITERAL(TMP83, "$1.dll", 6);
STRING_LITERAL(TMP84, "/", 1);
STRING_LITERAL(TMP85, ".obj", 4);
STRING_LITERAL(TMP86, "\015\012", 2);
STRING_LITERAL(TMP87, ";", 1);
STRING_LITERAL(TMP88, "\\", 1);
STRING_LITERAL(TMP89, ".bat", 4);
STRING_LITERAL(TMP90, ".", 1);
STRING_LITERAL(TMP91, ".exe", 4);
STRING_LITERAL(TMP92, "Windows", 7);
STRING_LITERAL(TMP93, "OS2", 3);
STRING_LITERAL(TMP94, "Linux", 5);
STRING_LITERAL(TMP95, "lib$1.so", 8);
STRING_LITERAL(TMP96, ".o", 2);
STRING_LITERAL(TMP97, "\012", 1);
STRING_LITERAL(TMP98, ":", 1);
STRING_LITERAL(TMP99, ".sh", 3);
STRING_LITERAL(TMP100, "", 0);
STRING_LITERAL(TMP101, "MorphOS", 7);
STRING_LITERAL(TMP102, "SkyOS", 5);
STRING_LITERAL(TMP103, "Solaris", 7);
STRING_LITERAL(TMP104, "Irix", 4);
STRING_LITERAL(TMP105, "NetBSD", 6);
STRING_LITERAL(TMP106, "FreeBSD", 7);
STRING_LITERAL(TMP107, "OpenBSD", 7);
STRING_LITERAL(TMP108, "AIX", 3);
STRING_LITERAL(TMP109, "PalmOS", 6);
STRING_LITERAL(TMP110, "QNX", 3);
STRING_LITERAL(TMP111, "Amiga", 5);
STRING_LITERAL(TMP112, "$1.library", 10);
STRING_LITERAL(TMP113, "Atari", 5);
STRING_LITERAL(TMP114, ".tpp", 4);
STRING_LITERAL(TMP115, "Netware", 7);
STRING_LITERAL(TMP116, "$1.nlm", 6);
STRING_LITERAL(TMP117, ".nlm", 4);
STRING_LITERAL(TMP118, "MacOS", 5);
STRING_LITERAL(TMP119, "::", 2);
STRING_LITERAL(TMP120, "$1Lib", 5);
STRING_LITERAL(TMP121, "\015", 1);
STRING_LITERAL(TMP122, ",", 1);
STRING_LITERAL(TMP123, "MacOSX", 6);
STRING_LITERAL(TMP124, "lib$1.dylib", 11);
STRING_LITERAL(TMP125, "Haiku", 5);
STRING_LITERAL(TMP126, "VxWorks", 7);
STRING_LITERAL(TMP127, ".vxe", 4);
STRING_LITERAL(TMP128, "JS", 2);
STRING_LITERAL(TMP129, "NimrodVM", 8);
STRING_LITERAL(TMP130, "Standalone", 10);
NIM_CONST TY176084 Os_176070 = {{((NimStringDesc*) &TMP81),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP89),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP91),
((NimStringDesc*) &TMP90),
2}
,
{((NimStringDesc*) &TMP92),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP89),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP91),
((NimStringDesc*) &TMP90),
2}
,
{((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP89),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP91),
((NimStringDesc*) &TMP90),
2}
,
{((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP101),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP102),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP103),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP104),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP105),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP106),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP107),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP108),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP109),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
1}
,
{((NimStringDesc*) &TMP110),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
5}
,
{((NimStringDesc*) &TMP111),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP112),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
1}
,
{((NimStringDesc*) &TMP113),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP114),
((NimStringDesc*) &TMP90),
1}
,
{((NimStringDesc*) &TMP115),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP116),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP117),
((NimStringDesc*) &TMP90),
2}
,
{((NimStringDesc*) &TMP118),
((NimStringDesc*) &TMP119),
((NimStringDesc*) &TMP120),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP121),
((NimStringDesc*) &TMP122),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
2}
,
{((NimStringDesc*) &TMP123),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP124),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
13}
,
{((NimStringDesc*) &TMP125),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
13}
,
{((NimStringDesc*) &TMP126),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP127),
((NimStringDesc*) &TMP90),
13}
,
{((NimStringDesc*) &TMP128),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
0}
,
{((NimStringDesc*) &TMP129),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
0}
,
{((NimStringDesc*) &TMP130),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP90),
0}
}
;
STRING_LITERAL(TMP131, "windows", 7);
NU8 targetcpu_176628;
NU8 hostcpu_176629;
NU8 targetos_176630;
NU8 hostos_176631;
NI intsize_176651;
NI floatsize_176652;
NI ptrsize_176653;
NimStringDesc* tnl_176654;
extern Gcheap51018 gch_51059;

N_NIMCALL(NU8, nametocpu_176645)(NimStringDesc* name) {
	NU8 result;
{	result = 0;
	{
		NU8 i_177423;
		NI res_177428;
		i_177423 = 0;
		res_177428 = ((NI) 1);
		{
			while (1) {
				if (!(res_177428 <= ((NI) 18))) goto LA3;
				i_177423 = ((NU8) (res_177428));
				{
					NI LOC6;
					LOC6 = 0;
					LOC6 = nsuCmpIgnoreStyle(name, Cpu_176500[(i_177423)- 1].Field0);
					if (!(LOC6 == ((NI) 0))) goto LA7;
					result = i_177423;
					goto BeforeRet;
				}
				LA7: ;
				res_177428 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NU8) 0);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NU8, nametoos_176639)(NimStringDesc* name) {
	NU8 result;
{	result = 0;
	{
		NU8 i_177223;
		NI res_177228;
		i_177223 = 0;
		res_177228 = ((NI) 1);
		{
			while (1) {
				if (!(res_177228 <= ((NI) 24))) goto LA3;
				i_177223 = ((NU8) (res_177228));
				{
					NI LOC6;
					LOC6 = 0;
					LOC6 = nsuCmpIgnoreStyle(name, Os_176070[(i_177223)- 1].Field0);
					if (!(LOC6 == ((NI) 0))) goto LA7;
					result = i_177223;
					goto BeforeRet;
				}
				LA7: ;
				res_177228 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NU8) 0);
	}BeforeRet: ;
	return result;
}

static N_INLINE(Cell48946*, usrtocell_52646)(void* usr) {
	Cell48946* result;
	result = 0;
	result = ((Cell48946*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell48946))))));
	return result;
}

static N_INLINE(void, rtladdzct_54204)(Cell48946* c) {
	addzct_52617((&gch_51059.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48946* c;
	c = usrtocell_52646(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	LA3: ;
}

N_NIMCALL(void, settarget_176662)(NU8 o, NU8 c) {
	NimStringDesc* LOC1;
	targetcpu_176628 = c;
	targetos_176630 = o;
	intsize_176651 = (NI)(Cpu_176500[(c)- 1].Field1 / ((NI) 8));
	floatsize_176652 = (NI)(Cpu_176500[(c)- 1].Field3 / ((NI) 8));
	ptrsize_176653 = (NI)(Cpu_176500[(c)- 1].Field4 / ((NI) 8));
	LOC1 = 0;
	LOC1 = tnl_176654; tnl_176654 = copyStringRC1(Os_176070[(o)- 1].Field5);
	if (LOC1) nimGCunrefNoCycle(LOC1);
}
NIM_EXTERNC N_NOINLINE(void, compiler_platformInit000)(void) {
	hostcpu_176629 = nametocpu_176645(((NimStringDesc*) &TMP63));
	hostos_176631 = nametoos_176639(((NimStringDesc*) &TMP131));
	settarget_176662(hostos_176631, hostcpu_176629);
}

NIM_EXTERNC N_NOINLINE(void, compiler_platformDatInit000)(void) {
}

