/* 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 Tinfocpu172483 Tinfocpu172483;
typedef struct Tinfoos172049 Tinfoos172049;
typedef struct Cell48947 Cell48947;
typedef struct TNimType TNimType;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
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 Tinfocpu172483 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef Tinfocpu172483 TY172514[18];
struct Tinfoos172049 {
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 Tinfoos172049 TY172084[24];
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** 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;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 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  Pagedesc48955  {
Pagedesc48955* 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_172645)(NimStringDesc* name);
N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NU8, nametoos_172639)(NimStringDesc* name);
N_NIMCALL(void, settarget_172662)(NU8 o, NU8 c);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
STRING_LITERAL(TMP61, "i386", 4);
STRING_LITERAL(TMP62, "m68k", 4);
STRING_LITERAL(TMP63, "alpha", 5);
STRING_LITERAL(TMP64, "powerpc", 7);
STRING_LITERAL(TMP65, "powerpc64", 9);
STRING_LITERAL(TMP66, "powerpc64el", 11);
STRING_LITERAL(TMP67, "sparc", 5);
STRING_LITERAL(TMP68, "vm", 2);
STRING_LITERAL(TMP69, "ia64", 4);
STRING_LITERAL(TMP70, "amd64", 5);
STRING_LITERAL(TMP71, "mips", 4);
STRING_LITERAL(TMP72, "mipsel", 6);
STRING_LITERAL(TMP73, "arm", 3);
STRING_LITERAL(TMP74, "arm64", 5);
STRING_LITERAL(TMP75, "js", 2);
STRING_LITERAL(TMP76, "nimrodvm", 8);
STRING_LITERAL(TMP77, "avr", 3);
STRING_LITERAL(TMP78, "msp430", 6);
NIM_CONST TY172514 Cpu_172500 = {{((NimStringDesc*) &TMP61),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP62),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP63),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP64),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP65),
((NI) 64),
((NU8) 1),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP66),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP67),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP68),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP69),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP70),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP71),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP72),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP73),
((NI) 32),
((NU8) 0),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP74),
((NI) 64),
((NU8) 0),
((NI) 64),
((NI) 64)}
,
{((NimStringDesc*) &TMP75),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP76),
((NI) 32),
((NU8) 1),
((NI) 64),
((NI) 32)}
,
{((NimStringDesc*) &TMP77),
((NI) 16),
((NU8) 0),
((NI) 32),
((NI) 16)}
,
{((NimStringDesc*) &TMP78),
((NI) 16),
((NU8) 0),
((NI) 32),
((NI) 16)}
}
;
STRING_LITERAL(TMP79, "DOS", 3);
STRING_LITERAL(TMP80, "..", 2);
STRING_LITERAL(TMP81, "$1.dll", 6);
STRING_LITERAL(TMP82, "/", 1);
STRING_LITERAL(TMP83, ".obj", 4);
STRING_LITERAL(TMP84, "\015\012", 2);
STRING_LITERAL(TMP85, ";", 1);
STRING_LITERAL(TMP86, "\\", 1);
STRING_LITERAL(TMP87, ".bat", 4);
STRING_LITERAL(TMP88, ".", 1);
STRING_LITERAL(TMP89, ".exe", 4);
STRING_LITERAL(TMP90, "Windows", 7);
STRING_LITERAL(TMP91, "OS2", 3);
STRING_LITERAL(TMP92, "Linux", 5);
STRING_LITERAL(TMP93, "lib$1.so", 8);
STRING_LITERAL(TMP94, ".o", 2);
STRING_LITERAL(TMP95, "\012", 1);
STRING_LITERAL(TMP96, ":", 1);
STRING_LITERAL(TMP97, ".sh", 3);
STRING_LITERAL(TMP98, "", 0);
STRING_LITERAL(TMP99, "MorphOS", 7);
STRING_LITERAL(TMP100, "SkyOS", 5);
STRING_LITERAL(TMP101, "Solaris", 7);
STRING_LITERAL(TMP102, "Irix", 4);
STRING_LITERAL(TMP103, "NetBSD", 6);
STRING_LITERAL(TMP104, "FreeBSD", 7);
STRING_LITERAL(TMP105, "OpenBSD", 7);
STRING_LITERAL(TMP106, "AIX", 3);
STRING_LITERAL(TMP107, "PalmOS", 6);
STRING_LITERAL(TMP108, "QNX", 3);
STRING_LITERAL(TMP109, "Amiga", 5);
STRING_LITERAL(TMP110, "$1.library", 10);
STRING_LITERAL(TMP111, "Atari", 5);
STRING_LITERAL(TMP112, ".tpp", 4);
STRING_LITERAL(TMP113, "Netware", 7);
STRING_LITERAL(TMP114, "$1.nlm", 6);
STRING_LITERAL(TMP115, ".nlm", 4);
STRING_LITERAL(TMP116, "MacOS", 5);
STRING_LITERAL(TMP117, "::", 2);
STRING_LITERAL(TMP118, "$1Lib", 5);
STRING_LITERAL(TMP119, "\015", 1);
STRING_LITERAL(TMP120, ",", 1);
STRING_LITERAL(TMP121, "MacOSX", 6);
STRING_LITERAL(TMP122, "lib$1.dylib", 11);
STRING_LITERAL(TMP123, "Haiku", 5);
STRING_LITERAL(TMP124, "VxWorks", 7);
STRING_LITERAL(TMP125, ".vxe", 4);
STRING_LITERAL(TMP126, "JS", 2);
STRING_LITERAL(TMP127, "NimrodVM", 8);
STRING_LITERAL(TMP128, "Standalone", 10);
NIM_CONST TY172084 Os_172070 = {{((NimStringDesc*) &TMP79),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP81),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP89),
((NimStringDesc*) &TMP88),
2}
,
{((NimStringDesc*) &TMP90),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP81),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP89),
((NimStringDesc*) &TMP88),
2}
,
{((NimStringDesc*) &TMP91),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP81),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP83),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP87),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP89),
((NimStringDesc*) &TMP88),
2}
,
{((NimStringDesc*) &TMP92),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP99),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP100),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP101),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP102),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP103),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP104),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP105),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP106),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP107),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
1}
,
{((NimStringDesc*) &TMP108),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
5}
,
{((NimStringDesc*) &TMP109),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP110),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
1}
,
{((NimStringDesc*) &TMP111),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP81),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP112),
((NimStringDesc*) &TMP88),
1}
,
{((NimStringDesc*) &TMP113),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP114),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP84),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP115),
((NimStringDesc*) &TMP88),
2}
,
{((NimStringDesc*) &TMP116),
((NimStringDesc*) &TMP117),
((NimStringDesc*) &TMP118),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP119),
((NimStringDesc*) &TMP120),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
2}
,
{((NimStringDesc*) &TMP121),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP122),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
13}
,
{((NimStringDesc*) &TMP123),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
13}
,
{((NimStringDesc*) &TMP124),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP85),
((NimStringDesc*) &TMP86),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP125),
((NimStringDesc*) &TMP88),
13}
,
{((NimStringDesc*) &TMP126),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
0}
,
{((NimStringDesc*) &TMP127),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
0}
,
{((NimStringDesc*) &TMP128),
((NimStringDesc*) &TMP80),
((NimStringDesc*) &TMP93),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP94),
((NimStringDesc*) &TMP95),
((NimStringDesc*) &TMP96),
((NimStringDesc*) &TMP82),
((NimStringDesc*) &TMP97),
((NimStringDesc*) &TMP88),
((NimStringDesc*) &TMP98),
((NimStringDesc*) &TMP88),
0}
}
;
STRING_LITERAL(TMP129, "openbsd", 7);
NU8 targetcpu_172628;
NU8 hostcpu_172629;
NU8 targetos_172630;
NU8 hostos_172631;
NI intsize_172651;
NI floatsize_172652;
NI ptrsize_172653;
NimStringDesc* tnl_172654;
extern Gcheap51018 gch_51059;

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

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

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

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48947* 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_172662)(NU8 o, NU8 c) {
	NimStringDesc* LOC1;
	targetcpu_172628 = c;
	targetos_172630 = o;
	intsize_172651 = (NI)(Cpu_172500[(c)- 1].Field1 / ((NI) 8));
	floatsize_172652 = (NI)(Cpu_172500[(c)- 1].Field3 / ((NI) 8));
	ptrsize_172653 = (NI)(Cpu_172500[(c)- 1].Field4 / ((NI) 8));
	LOC1 = 0;
	LOC1 = tnl_172654; tnl_172654 = copyStringRC1(Os_172070[(o)- 1].Field5);
	if (LOC1) nimGCunrefNoCycle(LOC1);
}
NIM_EXTERNC N_NOINLINE(void, compiler_platformInit000)(void) {
	hostcpu_172629 = nametocpu_172645(((NimStringDesc*) &TMP61));
	hostos_172631 = nametoos_172639(((NimStringDesc*) &TMP129));
	settarget_172662(hostos_172631, hostcpu_172629);
}

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

