/* Generated by Nim Compiler v2.2.10 */
/* Compiled for: MacOSX, arm64, clang */
/* Command for C compiler:
   clang -c  -w -ferror-limit=3 -fno-strict-aliasing -pthread -isysroot /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -target arm64-apple-darwin24.2.0 -O3   -I/Users/runner/work/nightlies/nightlies/nim-2.2.10/lib -I/Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/src -o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@pnativesockets.nim.c.o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@pnativesockets.nim.c */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks

#include "nimbase.h"
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
#include <string.h>
#include <netinet/in.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
typedef struct NimStrPayload NimStrPayload;
typedef struct NimStringV2 NimStringV2;
typedef struct tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg;
typedef NU8 tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q;
typedef NU8 tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA;
struct NimStrPayload {
	NI cap;
	NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
	NI len;
	NimStrPayload* p;
};
typedef NU8 tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA;
struct tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg {
	tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA val;
	NIM_BOOL has;
};
typedef NIM_CHAR tyArray__bErjiHmvISNmC2iIqkq21Q[256];
static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1);
static N_INLINE(void, nimSetMem__system_u2188)(void* a_p0, int v_p1, NI size_p2);
N_LIB_PRIVATE N_NIMCALL(int, toInt__pureZnativesockets_u60)(tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA domain_p0);
N_LIB_PRIVATE N_NIMCALL(int, toInt__pureZnativesockets_u62)(tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q typ_p0);
N_LIB_PRIVATE N_NIMCALL(int, toInt__pureZnativesockets_u64)(tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA p_p0);
N_LIB_PRIVATE N_NIMCALL(struct addrinfo*, getAddrInfo__pureZnativesockets_u250)(NimStringV2 address_p0, NU16 port_p1, struct addrinfo hints_p2);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, dollar___systemZdollars_u49)(NU16 xX60gensym7__p0);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringV2 s_p0);
N_LIB_PRIVATE N_NOINLINE(void, raiseOSError__stdZoserrors_u119)(NI32 errorCode_p0, NimStringV2 additionalInfo_p1);
N_LIB_PRIVATE N_NIMCALL(NI32, osLastError__stdZoserrors_u122)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringV2, cstrToNimstr)(NCSTRING str_p0);
N_LIB_PRIVATE N_NOCONV(void, deallocShared)(void* p_p0);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
static N_INLINE(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg, some__pureZnativesockets_u77)(tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA val_p0);
static N_INLINE(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg, none__pureZnativesockets_u131)(void);
N_LIB_PRIVATE N_NIMCALL(int, createNativeSocket__pureZnativesockets_u228)(int domain_p0, int sockType_p1, int protocol_p2, NIM_BOOL inheritable_p3);
static N_INLINE(NIM_BOOL, setInheritable__pureZnativesockets_u206)(int s_p0, NIM_BOOL inheritable_p1);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, setInheritable__stdZsyncio_u286)(int f_p0, NIM_BOOL inheritable_p1);
N_LIB_PRIVATE N_NIMCALL(void, close__pureZnativesockets_u201)(int socket_p0);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i_p0, NI64 a_p1, NI64 b_p2);
N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void);
static const struct {
  NI cap; NIM_CHAR data[0+1];
} TM__f9bP3LqjpgpB9cXL8Nnak7tQ_2 = { 0 | NIM_STRLIT_FLAG, "" };
static const NimStringV2 TM__f9bP3LqjpgpB9cXL8Nnak7tQ_3 = {0, (NimStrPayload*)&TM__f9bP3LqjpgpB9cXL8Nnak7tQ_2};
static const NimStringV2 TM__f9bP3LqjpgpB9cXL8Nnak7tQ_4 = {0, (NimStrPayload*)&TM__f9bP3LqjpgpB9cXL8Nnak7tQ_2};
N_LIB_PRIVATE NIM_CONST int osInvalidSocket__pureZnativesockets_u48 = ((int)-1);
N_LIB_PRIVATE int nativeAfInet__pureZnativesockets_u49;
N_LIB_PRIVATE int nativeAfInet6__pureZnativesockets_u50;
N_LIB_PRIVATE int nativeAfUnix__pureZnativesockets_u51;
extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4198;
N_LIB_PRIVATE N_NIMCALL(void, close__pureZnativesockets_u201)(int socket_p0) {
	int T1_;
	T1_ = (int)0;
	T1_ = close(socket_p0);
	(void)(T1_);
}
N_LIB_PRIVATE N_NIMCALL(tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q, toSockType__pureZnativesockets_u147)(tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA protocol_p0) {
	tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q result;
	tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q T1_;
	T1_ = (tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)0;
	switch (protocol_p0) {
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)6):
	{
		result = ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)1);
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)17):
	{
		result = ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)2);
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)18):
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)19):
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)20):
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)21):
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)22):
	{
		result = ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)3);
	}
	break;
	default: __builtin_unreachable();
	}
	return result;
}
static N_INLINE(void, nimSetMem__system_u2188)(void* a_p0, int v_p1, NI size_p2) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a_p0, v_p1, ((size_t) (size_p2)));
}
static N_INLINE(void, nimZeroMem)(void* p_p0, NI size_p1) {
	nimSetMem__system_u2188(p_p0, ((int)0), size_p1);
}
N_LIB_PRIVATE N_NIMCALL(int, toInt__pureZnativesockets_u60)(tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA domain_p0) {
	int result;
	switch (domain_p0) {
	case ((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)0):
	{
		result = AF_UNSPEC;
	}
	break;
	case ((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)1):
	{
		result = AF_UNIX;
	}
	break;
	case ((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)2):
	{
		result = AF_INET;
	}
	break;
	case ((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)30):
	{
		result = AF_INET6;
	}
	break;
	default: __builtin_unreachable();
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(int, toInt__pureZnativesockets_u62)(tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q typ_p0) {
	int result;
	switch (typ_p0) {
	case ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)1):
	{
		result = SOCK_STREAM;
	}
	break;
	case ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)2):
	{
		result = SOCK_DGRAM;
	}
	break;
	case ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)5):
	{
		result = SOCK_SEQPACKET;
	}
	break;
	case ((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)3):
	{
		result = SOCK_RAW;
	}
	break;
	default: __builtin_unreachable();
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(int, toInt__pureZnativesockets_u64)(tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA p_p0) {
	int result;
	switch (p_p0) {
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)6):
	{
		result = IPPROTO_TCP;
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)17):
	{
		result = IPPROTO_UDP;
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)18):
	{
		result = IPPROTO_IP;
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)19):
	{
		result = IPPROTO_IPV6;
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)20):
	{
		result = IPPROTO_RAW;
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)21):
	{
		result = IPPROTO_ICMP;
	}
	break;
	case ((tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA)22):
	{
		result = IPPROTO_ICMPV6;
	}
	break;
	default: __builtin_unreachable();
	}
	return result;
}
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringV2 s_p0) {
	NCSTRING result;
	{
		if (!(s_p0.len == ((NI)0))) goto LA3_;
		result = "";
	}
	goto LA1_;
LA3_: ;
	{
		result = ((NCSTRING) ((*s_p0.p).data));
	}
LA1_: ;
	return result;
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (&nimInErrorMode__system_u4198);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(struct addrinfo*, getAddrInfo__pureZnativesockets_u250)(NimStringV2 address_p0, NU16 port_p1, struct addrinfo hints_p2) {
	struct addrinfo* result;
	NimStringV2 socketPort_1;
	NimStringV2 T2_;
	int gaiResult_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (struct addrinfo*)0;
	socketPort_1.len = 0; socketPort_1.p = NIM_NIL;
	result = ((struct addrinfo*) NIM_NIL);
	T2_.len = 0; T2_.p = NIM_NIL;
	{
		int T5_;
		T5_ = (int)0;
		T5_ = toInt__pureZnativesockets_u62(((tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q)3));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (!(hints_p2.ai_socktype == T5_)) goto LA6_;
		socketPort_1 = TM__f9bP3LqjpgpB9cXL8Nnak7tQ_3;
	}
	goto LA3_;
LA6_: ;
	{
		socketPort_1 = dollar___systemZdollars_u49(port_p1);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA3_: ;
	gaiResult_1 = getaddrinfo(nimToCStringConv(address_p0), nimToCStringConv(socketPort_1), (&hints_p2), &result);
	{
		NimStringV2 colontmpD_;
		NI32 T14_;
		NCSTRING T15_;
		if (!!((gaiResult_1 == ((NI32)0)))) goto LA11_;
		colontmpD_.len = 0; colontmpD_.p = NIM_NIL;
		T14_ = (NI32)0;
		T14_ = osLastError__stdZoserrors_u122();
		if (NIM_UNLIKELY(*nimErr_)) goto LA13_;
		T15_ = (NCSTRING)0;
		T15_ = (char *)gai_strerror(gaiResult_1);
		colontmpD_ = cstrToNimstr(T15_);
		raiseOSError__stdZoserrors_u119(T14_, colontmpD_);
		if (NIM_UNLIKELY(*nimErr_)) goto LA13_;
		{
			LA13_:;
		}
		{
			if (colontmpD_.p && !(colontmpD_.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(colontmpD_.p);
}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
LA11_: ;
	{
		LA1_:;
	}
	{
		if (socketPort_1.p && !(socketPort_1.p->cap & NIM_STRLIT_FLAG)) {
 deallocShared(socketPort_1.p);
}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(struct addrinfo*, getAddrInfo__pureZnativesockets_u276)(NimStringV2 address_p0, NU16 port_p1, tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA domain_p2, tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q sockType_p3, tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA protocol_p4) {
	struct addrinfo* result;
	struct addrinfo hints_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (struct addrinfo*)0;
	nimZeroMem((void*)(&hints_1), sizeof(struct addrinfo));
	hints_1.ai_family = toInt__pureZnativesockets_u60(domain_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	hints_1.ai_socktype = toInt__pureZnativesockets_u62(sockType_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	hints_1.ai_protocol = toInt__pureZnativesockets_u64(protocol_p4);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		if (!(domain_p2 == ((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)30))) goto LA3_;
		hints_1.ai_flags = AI_V4MAPPED;
	}
LA3_: ;
	result = getAddrInfo__pureZnativesockets_u250(address_p0, port_p1, hints_1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg, some__pureZnativesockets_u77)(tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA val_p0) {
	tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg result;
	nimZeroMem((void*)(&result), sizeof(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg));
	result.has = NIM_TRUE;
	result.val = val_p0;
	return result;
}
static N_INLINE(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg, none__pureZnativesockets_u131)(void) {
	tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg result;
	nimZeroMem((void*)(&result), sizeof(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg, toKnownDomain__pureZnativesockets_u69)(int family_p0) {
	tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg result;
	tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimZeroMem((void*)(&result), sizeof(tyObject_Option__lf3iZ9bSOr0IZPtb2xh5Ylg));
	{
		if (!(family_p0 == AF_UNSPEC)) goto LA4_;
		result = some__pureZnativesockets_u77(((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)0));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA2_;
LA4_: ;
	{
		if (!(family_p0 == AF_UNIX)) goto LA7_;
		result = some__pureZnativesockets_u77(((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)1));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA2_;
LA7_: ;
	{
		if (!(family_p0 == AF_INET)) goto LA10_;
		result = some__pureZnativesockets_u77(((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)2));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA2_;
LA10_: ;
	{
		if (!(family_p0 == AF_INET6)) goto LA13_;
		result = some__pureZnativesockets_u77(((tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA)30));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA2_;
LA13_: ;
	{
		result = none__pureZnativesockets_u131();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
LA2_: ;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, setInheritable__pureZnativesockets_u206)(int s_p0, NIM_BOOL inheritable_p1) {
	NIM_BOOL result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	result = setInheritable__stdZsyncio_u286(((int) (s_p0)), inheritable_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(int, createNativeSocket__pureZnativesockets_u228)(int domain_p0, int sockType_p1, int protocol_p2, NIM_BOOL inheritable_p3) {
	int result;
	int sockType_2;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	sockType_2 = sockType_p1;
	result = socket(domain_p0, sockType_2, protocol_p2);
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = setInheritable__pureZnativesockets_u206(result, inheritable_p3);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!!(T3_)) goto LA4_;
		close__pureZnativesockets_u201(result);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		result = osInvalidSocket__pureZnativesockets_u48;
		goto BeforeRet_;
	}
LA4_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(int, createNativeSocket__pureZnativesockets_u235)(tyEnum_Domain__MfMl870GtGGt9bzO9cicdWqA domain_p0, tyEnum_SockType__wyAiWULDFVysRokh4hHr7Q sockType_p1, tyEnum_Protocol__x11L2EqCXuQVMDp2SGyCyA protocol_p2, NIM_BOOL inheritable_p3) {
	int result;
	int T1_;
	int T2_;
	int T3_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (int)0;
	T1_ = (int)0;
	T1_ = toInt__pureZnativesockets_u60(domain_p0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T2_ = (int)0;
	T2_ = toInt__pureZnativesockets_u62(sockType_p1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T3_ = (int)0;
	T3_ = toInt__pureZnativesockets_u64(protocol_p2);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = createNativeSocket__pureZnativesockets_u228(T1_, T2_, T3_, inheritable_p3);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, setSockOptInt__pureZnativesockets_u991)(int socket_p0, NI level_p1, NI optname_p2, NI optval_p3) {
	int value_1;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	if ((optval_p3) < ((int)(-2147483647 -1)) || (optval_p3) > ((int)2147483647)){ raiseRangeErrorI(optval_p3, ((int)(-2147483647 -1)), ((int)2147483647)); goto BeforeRet_;
	}
	value_1 = ((int) (optval_p3));
	{
		int T3_;
		NI32 T6_;
		if ((level_p1) < ((int)(-2147483647 -1)) || (level_p1) > ((int)2147483647)){ raiseRangeErrorI(level_p1, ((int)(-2147483647 -1)), ((int)2147483647)); goto BeforeRet_;
		}
		if ((optname_p2) < ((int)(-2147483647 -1)) || (optname_p2) > ((int)2147483647)){ raiseRangeErrorI(optname_p2, ((int)(-2147483647 -1)), ((int)2147483647)); goto BeforeRet_;
		}
		T3_ = (int)0;
		T3_ = setsockopt(socket_p0, ((int) (level_p1)), ((int) (optname_p2)), ((void*) ((&value_1))), ((socklen_t)4));
		if (!(T3_ < ((NI32)0))) goto LA4_;
		T6_ = (NI32)0;
		T6_ = osLastError__stdZoserrors_u122();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		raiseOSError__stdZoserrors_u119(T6_, TM__f9bP3LqjpgpB9cXL8Nnak7tQ_4);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
LA4_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, atpnativesocketsdotnim_Init000)(void) {
{
	nativeAfInet__pureZnativesockets_u49 = AF_INET;
	nativeAfInet6__pureZnativesockets_u50 = AF_INET6;
	nativeAfUnix__pureZnativesockets_u51 = AF_UNIX;
	nimTestErrorFlag();
}
}

