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

#include "nimbase.h"
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tinfocpu174483 Tinfocpu174483;
typedef struct Tinfoos174049 Tinfoos174049;
typedef struct Cell49146 Cell49146;
typedef struct TNimType TNimType;
typedef struct Cellseq49162 Cellseq49162;
typedef struct Gcheap51218 Gcheap51218;
typedef struct Gcstack51216 Gcstack51216;
typedef struct Cellset49158 Cellset49158;
typedef struct Pagedesc49154 Pagedesc49154;
typedef struct Memregion31091 Memregion31091;
typedef struct Smallchunk31043 Smallchunk31043;
typedef struct Llchunk31085 Llchunk31085;
typedef struct Bigchunk31045 Bigchunk31045;
typedef struct Intset31017 Intset31017;
typedef struct Trunk31013 Trunk31013;
typedef struct Avlnode31089 Avlnode31089;
typedef struct Gcstat51214 Gcstat51214;
typedef struct TNimNode TNimNode;
typedef struct Basechunk31041 Basechunk31041;
typedef struct Freecell31033 Freecell31033;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct Tinfocpu174483 {
NimStringDesc* Field0;
NI Field1;
NU8 Field2;
NI Field3;
NI Field4;
};
typedef Tinfocpu174483 TY174514[18];
struct Tinfoos174049 {
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 Tinfoos174049 TY174084[24];
struct  Cell49146  {
NI refcount;
TNimType* typ;
};
struct  Cellseq49162  {
NI len;
NI cap;
Cell49146** d;
};
struct  Cellset49158  {
NI counter;
NI max;
Pagedesc49154* head;
Pagedesc49154** data;
};
typedef Smallchunk31043* TY31106[512];
typedef Trunk31013* Trunkbuckets31015[256];
struct  Intset31017  {
Trunkbuckets31015 data;
};
struct  Memregion31091  {
NI minlargeobj;
NI maxlargeobj;
TY31106 freesmallchunks;
Llchunk31085* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk31045* freechunkslist;
Intset31017 chunkstarts;
Avlnode31089* root;
Avlnode31089* deleted;
Avlnode31089* last;
Avlnode31089* freeavlnodes;
};
struct  Gcstat51214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51218  {
Gcstack51216* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq49162 zct;
Cellseq49162 decstack;
Cellset49158 cycleroots;
Cellseq49162 tempstack;
NI recgclock;
Memregion31091 region;
Gcstat51214 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  Gcstack51216  {
Gcstack51216* prev;
Gcstack51216* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY31022[8];
struct  Pagedesc49154  {
Pagedesc49154* next;
NI key;
TY31022 bits;
};
struct  Basechunk31041  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk31043  {
  Basechunk31041 Sup;
Smallchunk31043* next;
Smallchunk31043* prev;
Freecell31033* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk31085  {
NI size;
NI acc;
Llchunk31085* next;
};
struct  Bigchunk31045  {
  Basechunk31041 Sup;
Bigchunk31045* next;
Bigchunk31045* prev;
NI align;
NF data;
};
struct  Trunk31013  {
Trunk31013* next;
NI key;
TY31022 bits;
};
typedef Avlnode31089* TY31096[2];
struct  Avlnode31089  {
TY31096 link;
NI key;
NI upperbound;
NI level;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Freecell31033  {
Freecell31033* next;
NI zerofield;
};
N_NIMCALL(NU8, nametocpu_174645)(NimStringDesc* name);
N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NU8, nametoos_174639)(NimStringDesc* name);
N_NIMCALL(void, settarget_174662)(NU8 o, NU8 c);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell49146*, usrtocell_52846)(void* usr);
static N_INLINE(void, rtladdzct_54404)(Cell49146* c);
N_NOINLINE(void, addzct_52817)(Cellseq49162* s, Cell49146* 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 TY174514 Cpu_174500 = {{((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 TY174084 Os_174070 = {{((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, "macosx", 6);
NU8 targetcpu_174628;
NU8 hostcpu_174629;
NU8 targetos_174630;
NU8 hostos_174631;
NI intsize_174651;
NI floatsize_174652;
NI ptrsize_174653;
NimStringDesc* tnl_174654;
extern Gcheap51218 gch_51259;

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

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

static N_INLINE(Cell49146*, usrtocell_52846)(void* usr) {
	Cell49146* result;
	result = 0;
	result = ((Cell49146*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell49146))))));
	return result;
}

static N_INLINE(void, rtladdzct_54404)(Cell49146* c) {
	addzct_52817((&gch_51259.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell49146* c;
	c = usrtocell_52846(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_54404(c);
	}
	LA3: ;
}

N_NIMCALL(void, settarget_174662)(NU8 o, NU8 c) {
	NimStringDesc* LOC1;
	targetcpu_174628 = c;
	targetos_174630 = o;
	intsize_174651 = (NI)(Cpu_174500[(c)- 1].Field1 / ((NI) 8));
	floatsize_174652 = (NI)(Cpu_174500[(c)- 1].Field3 / ((NI) 8));
	ptrsize_174653 = (NI)(Cpu_174500[(c)- 1].Field4 / ((NI) 8));
	LOC1 = 0;
	LOC1 = tnl_174654; tnl_174654 = copyStringRC1(Os_174070[(o)- 1].Field5);
	if (LOC1) nimGCunrefNoCycle(LOC1);
}
NIM_EXTERNC N_NOINLINE(void, compiler_platformInit000)(void) {
	hostcpu_174629 = nametocpu_174645(((NimStringDesc*) &TMP65));
	hostos_174631 = nametoos_174639(((NimStringDesc*) &TMP129));
	settarget_174662(hostos_174631, hostcpu_174629);
}

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

