nwaku/nimcache/release/example/@m..@s..@svendor@snim-eth@seth@snet@snat.nim.c

2452 lines
155 KiB
C

/* Generated by Nim Compiler v1.2.6 */
/* (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/examples/v1 -o nimcache/release/example/@m..@s..@svendor@snim-eth@seth@snet@snat.nim.c.o nimcache/release/example/@m..@s..@svendor@snim-eth@seth@snet@snat.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/types.h>
#include <sys/types.h>
#include <pthread.h>
#include <string.h>
#include "miniupnpc.h"
#include "igd_desc_parse.h"
#include <setjmp.h>
#include "natpmp.h"
#include <sys/select.h>
#include <time.h>
#include <stdlib.h>
#define _GNU_SOURCE
#include <pthread.h>
#include "upnpdev.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
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A;
typedef struct tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A;
typedef struct tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg;
typedef struct tyTuple__64ip2rfhe9bHtD2C6bAh9ckA tyTuple__64ip2rfhe9bHtD2C6bAh9ckA;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ;
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_Option__rZSB3RRJAwsx6nOzk6ceBQ tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ;
typedef struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
typedef struct tyObject_Result__pZorf3I302ZEhkhn6lPgmg tyObject_Result__pZorf3I302ZEhkhn6lPgmg;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct TSafePoint TSafePoint;
typedef struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA;
typedef struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg;
typedef struct tyTuple__yobv8JsmBBRNC1NIieLJzQ tyTuple__yobv8JsmBBRNC1NIieLJzQ;
typedef struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct tyObject_Result__2tk2I019cjBvNsi9aKg47acQ tyObject_Result__2tk2I019cjBvNsi9aKg47acQ;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ;
typedef struct tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ;
typedef struct tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg;
typedef struct tyTuple__LGcBAKu039a0TOc2fpMiDpA tyTuple__LGcBAKu039a0TOc2fpMiDpA;
typedef struct tyTuple__rREUjJeDld8KgydF0v3PXg tyTuple__rREUjJeDld8KgydF0v3PXg;
typedef struct tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ;
typedef struct tyObject_PortMappingRes__HAKwlWP34w7w9bH9bs3Ehk1A tyObject_PortMappingRes__HAKwlWP34w7w9bH9bs3Ehk1A;
typedef struct tyTuple__r7XhtVpw9bi7Y89bqPdX2rqQ tyTuple__r7XhtVpw9bi7Y89bqPdX2rqQ;
typedef struct tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ;
typedef struct tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw;
typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA;
typedef struct tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw;
typedef struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw;
typedef struct tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw;
typedef struct tyTuple__LTIP7S8Q2Kg7omggcjH5Rg tyTuple__LTIP7S8Q2Kg7omggcjH5Rg;
typedef struct tyTuple__9a87m9c4moLPEXat9adQQF54Q tyTuple__9a87m9c4moLPEXat9adQQF54Q;
typedef struct tyTuple__0sAnLDGT1TI9aW0lCrVr9chg tyTuple__0sAnLDGT1TI9aW0lCrVr9chg;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
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;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
NCSTRING name;
TNimType* nextType;
NI instances;
NI sizes;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
typedef NU8 tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA;
typedef N_NIMCALL_PTR(void, tyProc__YTjnFPTE2mfk1TJkVICmmw) (tyTuple__64ip2rfhe9bHtD2C6bAh9ckA m);
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
struct tyTuple__64ip2rfhe9bHtD2C6bAh9ckA {
NU16 Field0;
NU16 Field1;
NimStringDesc* Field2;
};
struct tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A {tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg* core;
unsigned long sys;
tyProc__YTjnFPTE2mfk1TJkVICmmw dataFn;
tyTuple__64ip2rfhe9bHtD2C6bAh9ckA data;
};
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
typedef long long tyArray__xLtLuIT9aUkeKRzzMNC75Vw[6];
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
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__SiRwrEKZdLgxqz9a9aoVBglg 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;
NI allocCounter;
NI deallocCounter;
};
struct tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ {NI rd;
NI wr;
NI count;
NI mask;
NI maxItems;
NU8* data;
pthread_mutex_t lock;
pthread_cond_t cond;
TNimType* elemType;
NIM_BOOL ready;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
};
typedef NU8 tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA;
typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16];
typedef NU8 tyArray__H8qf9bpC2ziYA2earmO8m7w[4];
struct tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA {tyEnum_IpAddressFamily__iqqacz9cr9bcNjYY74E10wPA family;
union{
struct {tyArray__qtqsWM5aXmcpMIVmvq3kAA address_v6;
} _family_1;
struct {tyArray__H8qf9bpC2ziYA2earmO8m7w address_v4;
} _family_2;
};
};
struct tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ {tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA val;
NIM_BOOL has;
};
typedef NIM_CHAR tyArray__Zi76kwLs40ycIpfYa0tP7Q[128];
struct tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw {struct UPNPDev* devList;
struct UPNPUrls urls;
struct IGDdatas data;
int discoverDelay;
NimStringDesc* multicastIF;
NimStringDesc* miniSsdpdSocket;
int localPort;
int ipv6;
unsigned char ttl;
int error;
NimStringDesc* lanAddr;
};
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
pthread_mutex_t lock;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
NI gcThreadId;
};
struct tyObject_Result__pZorf3I302ZEhkhn6lPgmg {NIM_BOOL o;
union{
struct {NCSTRING e;
} _o_1;
struct {NI v;
} _o_2;
};
};
struct RootObj {TNimType* m_type;};
struct Exception { RootObj Sup;Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25];
struct TSafePoint {TSafePoint* prev;
NI status;
jmp_buf context;
};
struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA {char dummy;
};
struct tyTuple__yobv8JsmBBRNC1NIieLJzQ {
tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA Field0;
};
struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg {tyTuple__yobv8JsmBBRNC1NIieLJzQ finalOutputs;
NimStringDesc* buffer;
};
typedef NU8 tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA;
struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA {tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg output;
tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA level;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
typedef NU8 tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw;
struct tyObject_Result__2tk2I019cjBvNsi9aKg47acQ {NIM_BOOL o;
union{
struct {NCSTRING e;
} _o_1;
struct {NimStringDesc* v;
} _o_2;
};
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
typedef unsigned char tyArray__q9adO6katJkFXevPyBMqH9aA[12];
struct tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A {natpmp_t cstruct;
};
struct tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ {NIM_BOOL o;
union{
struct {NCSTRING e;
} _o_1;
struct {NIM_BOOL v;
} _o_2;
};
};
struct tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ {NIM_BOOL o;
union{
struct {NimStringDesc* e;
} _o_1;
struct {NCSTRING v;
} _o_2;
};
};
struct tyTuple__LGcBAKu039a0TOc2fpMiDpA {
NU16 Field0;
NU16 Field1;
};
struct tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg {tyTuple__LGcBAKu039a0TOc2fpMiDpA val;
NIM_BOOL has;
};
typedef NU8 tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw;
struct tyTuple__rREUjJeDld8KgydF0v3PXg {
NU16 Field0;
tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw Field1;
};
typedef tyTuple__rREUjJeDld8KgydF0v3PXg tyArray__Gy5sY9c0XDWhUvxbSPmYuDg[2];
struct tyObject_PortMappingRes__HAKwlWP34w7w9bH9bs3Ehk1A {NimStringDesc* externalPort;
NimStringDesc* internalClient;
NimStringDesc* internalPort;
tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw protocol;
NimStringDesc* description;
NIM_BOOL enabled;
NimStringDesc* remoteHost;
NU64 leaseDuration;
};
struct tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ {NIM_BOOL o;
union{
struct {NCSTRING e;
} _o_1;
struct {tyObject_PortMappingRes__HAKwlWP34w7w9bH9bs3Ehk1A v;
} _o_2;
};
};
typedef NU8 tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A;
struct tyTuple__r7XhtVpw9bi7Y89bqPdX2rqQ {
NU16 Field0;
tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A Field1;
};
typedef tyTuple__r7XhtVpw9bi7Y89bqPdX2rqQ tyArray__u1b8zziSzaPfI6vxS34dEg[2];
struct tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ {NIM_BOOL o;
union{
struct {NimStringDesc* e;
} _o_1;
struct {unsigned short v;
} _o_2;
};
};
struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA { Exception Sup;};
struct tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw { tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;};
struct tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw {NI64 seconds;
NI nanosecond;
};
typedef NU8 tyEnum_Month__JS0JuFvCBbC2GL3xXBnPQw;
typedef NU8 tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg;
struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw { RootObj Sup;NI nanosecond;
NI second;
NI minute;
NI hour;
NI monthday;
tyEnum_Month__JS0JuFvCBbC2GL3xXBnPQw month;
NI year;
tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg weekday;
NI yearday;
NIM_BOOL isDst;
tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw* timezone;
NI utcOffset;
};
struct tyTuple__LTIP7S8Q2Kg7omggcjH5Rg {
NIM_BOOL Field0;
NIM_BOOL Field1;
};
struct tyTuple__9a87m9c4moLPEXat9adQQF54Q {
NU16 Field0;
NU16 Field1;
tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw Field2;
};
typedef tyTuple__9a87m9c4moLPEXat9adQQF54Q tyArray__iUn0JuyS4o9a9a2KfMivPwmQ[2];
struct tyTuple__0sAnLDGT1TI9aW0lCrVr9chg {
NU16 Field0;
NU16 Field1;
tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A Field2;
};
typedef tyTuple__0sAnLDGT1TI9aW0lCrVr9chg tyArray__Imqi40oqXPIAeDQF9b81a1w[2];
typedef NIM_CHAR tyArray__KzYsGdAcGnUxHpbjbCVtbQ[3];
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, TM__KZyeRJvkqN4K9bGdF33t3dw_2)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
static N_NIMCALL(void, TM__KZyeRJvkqN4K9bGdF33t3dw_3)(void);
static N_NIMCALL(void, TM__KZyeRJvkqN4K9bGdF33t3dw_5)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw*, newMiniupnp__ANEb8jK9bX9a0bLJkvSCIc9bQ)(void);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__pZorf3I302ZEhkhn6lPgmg, discover__q5OIsUzEm9aNs73Z4nlTu9aQ)(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* self);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA lvl, NimStringDesc* topics, NimStringDesc* name_0);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__czv7v33Y9bwyVAHI9b2eiKDw)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NI val_0);
N_LIB_PRIVATE N_NIMCALL(NI, getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw)(void);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__3WN9aIz7lNtTrcIDj9bpKQkw)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NCSTRING val_0);
N_LIB_PRIVATE N_NIMCALL(NCSTRING, error__sw9aY0VeA9cBB2Qq0I9aSmqUg)(tyObject_Result__pZorf3I302ZEhkhn6lPgmg self);
N_LIB_PRIVATE N_NIMCALL(void, logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
N_LIB_PRIVATE N_NIMCALL(void, flushRecord__2TFyTWhDxeU5kGr2yqnA6w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
static N_INLINE(void, popSafePoint)(void);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
static N_INLINE(Exception*, getCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg)(NCSTRING msg, Exception* ex);
static N_INLINE(void, popCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void);
N_LIB_PRIVATE N_NIMCALL(tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw, selectIGD__9ceZ2eNfGqpolu2muX5ZGFA)(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* self);
N_LIB_PRIVATE N_NIMCALL(void, externalIPAddress__tm3COvFEKLwn5s7hNUeAiQ)(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* self, tyObject_Result__2tk2I019cjBvNsi9aKg47acQ* Result);
N_LIB_PRIVATE N_NIMCALL(NCSTRING, error__L3AB2ceMdclcraKKssjhOg)(tyObject_Result__2tk2I019cjBvNsi9aKg47acQ self);
N_LIB_PRIVATE N_NIMCALL(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA, parseIpAddress__1ivqWNphfe1wCfgNmXXOCA)(NimStringDesc* addressStr);
static N_INLINE(NimStringDesc*, get__OXIA4IOeVltVK9bkXvh4A9aAresults)(tyObject_Result__2tk2I019cjBvNsi9aKg47acQ self);
N_LIB_PRIVATE N_NOINLINE(void, raiseResultDefect__owuWoGCIMYubXziJ5dK27w)(NimStringDesc* m, NCSTRING v) __attribute__((noreturn));
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ, some__pjmtg26k5cCJBG48abef9cQoptions)(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA val_0);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__U2vmGWVLHFSD9cvjHnmuu2A)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NimStringDesc* val_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A*, newNatPmp__J4rbQ4KB4Nh0GxYcEL0r6w)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ, init__ru5ecGwN9ao0Sr85F1zxhEA)(tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A* self);
N_LIB_PRIVATE N_NIMCALL(NCSTRING, error__sH4BP8FMrv1ZXvcPE8yiPg)(tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ self);
N_LIB_PRIVATE N_NIMCALL(void, externalIPAddress__U1YOwBlZ8wFyYXvrlrLdfg)(tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A* self, tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ* Result);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, error__NndQoBZH0xG1T9cYuvykaLg)(tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ self);
static N_INLINE(NCSTRING, get__MAxZV8YXF6a4gIEXfgd9aRQresults)(tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ self);
N_LIB_PRIVATE N_NOINLINE(void, raiseResultDefect__LDPs6i4WoesAlTQQkVEXSA)(NimStringDesc* m, NimStringDesc* v) __attribute__((noreturn));
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg, doPortMapping__zzwux9ckxHQ68Mrb1zLiNjg_2)(NU16 tcpPort, NU16 udpPort, NimStringDesc* description_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ, addPortMapping__zFlNC9cpw7a1Ru4SVofxGvA)(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* self, NimStringDesc* externalPort_0, tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw protocol_0, NimStringDesc* internalHost, NimStringDesc* internalPort_0, NimStringDesc* desc_0, NI leaseDuration, NimStringDesc* externalIP);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___RkX9btpg5sQIaP8yYXB6tbA)(NU64 x_0);
N_LIB_PRIVATE N_NIMCALL(void, getSpecificPortMapping__QXaIFvOGyyO74C5o05CCfQ)(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* self, NimStringDesc* externalPort_0, tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw protocol_0, NimStringDesc* remoteHost_0, tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ* Result);
N_LIB_PRIVATE N_NIMCALL(NCSTRING, error__uH0vUhUzxd49a6deTdFkcGQ)(tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ* self);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__JCFADoFL9cl2dlI3Jxynvfg)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NU16 val_0);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__2kYGmz103VPLntCPunrSiA)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw val_0);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(void, addPortMapping__23mUfIicvJd6alZrC9bhKdw)(tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A* self, unsigned short eport, unsigned short iport, tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A protocol_0, unsigned long lifetime_0, tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ* Result);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, error__h9aEaUi2MqbSt4uJXHzS9cVw)(tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ self);
static N_INLINE(unsigned short, get__Q59bo9auE8ohlhxAq9a3q1xOAresults)(tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ self);
N_LIB_PRIVATE N_NIMCALL(void, setProperty__O39cJ9cwJawZDXPEh81bmKJg)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A val_0);
static N_INLINE(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg, some__O5gzqrqTe5VoR6KXD06bEAoptions)(tyTuple__LGcBAKu039a0TOc2fpMiDpA val_0);
static N_INLINE(NIM_BOOL, isSome__q4RUyPKfMFQ4x0z2XsVD2Aoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self);
static N_INLINE(tyTuple__LGcBAKu039a0TOc2fpMiDpA*, get__qmlUujQJZqadhXy7ek5ELAoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg* self);
static N_INLINE(NIM_BOOL, isNone__q4RUyPKfMFQ4x0z2XsVD2A_2options)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(void, open__dsR75sy8cZ4BrmTxSxy3WA_2)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, NI maxItems);
N_LIB_PRIVATE N_NIMCALL(void, createThread__cfap4qpARHVZeCNp0uPdDA)(tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A* t, tyProc__YTjnFPTE2mfk1TJkVICmmw tp, tyTuple__64ip2rfhe9bHtD2C6bAh9ckA param);
N_LIB_PRIVATE N_NIMCALL(void, repeatPortMapping__VeL9bEuN9aRVzn1BVsJj9bOQA)(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA args);
N_LIB_PRIVATE N_NIMCALL(void, ignoreSignalsInThread__pdyHbOZXF9bjmJf9c513qOkA)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw, initDuration__wcR3zetvspAUsyuvWZ07Xg)(NI64 nanoseconds, NI64 microseconds, NI64 milliseconds, NI64 seconds_0, NI64 minutes, NI64 hours, NI64 days_0, NI64 weeks);
N_LIB_PRIVATE N_NIMCALL(void, now__YmAcAi9bz5G8OQqVFWHN2uA)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* Result);
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ, getExternalIP__pu6I5UbUI6YcOLqE5JS9aFg)(tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA natStrategy, NIM_BOOL quiet);
static N_INLINE(NIM_BOOL, isSome__Ko7CQanwNHnwf7WYxGSR2woptions)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self);
N_LIB_PRIVATE N_NIMCALL(tyTuple__LTIP7S8Q2Kg7omggcjH5Rg, tryRecv__9cUHl9cc6utSyeDOp9bgCg9aFg)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lteq___Jne39clJ1ilcNO88UZey79cw)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* a, tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* b);
N_LIB_PRIVATE N_NIMCALL(void, plus___TPzrjPwCvRO4dwW7j39bjrw)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* dt, tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw dur, tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* Result);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest_0, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, nossleep)(NI milsecs);
N_LIB_PRIVATE N_NOCONV(void, stopNatThread__MbizJe5uH9aBP9ao9czq1pMVQ)(void);
static N_INLINE(void, send__z4kjU8lFDiTCcwpcL9byaIAsystem)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, NIM_BOOL msg);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, sendImpl__wSGPBHwFnSdhsolDckAk3Q)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* q_0, TNimType* typ, void* msg, NIM_BOOL noBlock);
static N_INLINE(void, joinThread__KLYFR9aW42sinzYZrQyQX9awsystem)(tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A* t);
N_LIB_PRIVATE N_NIMCALL(void, close__ONtGLHHA9bQ15JQ20TWgZzw)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ, deletePortMapping__V0VrzQWk5TFfdMYrUuoREA)(tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* self, NimStringDesc* externalPort_0, tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw protocol_0, NimStringDesc* remoteHost_0);
N_LIB_PRIVATE N_NIMCALL(void, deletePortMapping__tTP4MvH38Uctfis3ovOlow)(tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A* self, unsigned short eport, unsigned short iport, tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A protocol_0, tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ* Result);
extern TNimType NTI__9aELMDPtAVkfnKCx8AU54Kg_;
extern TNimType NTI__qbCtlC8JkMfh4n5uobqojg_;
N_LIB_PRIVATE TNimType NTI__64ip2rfhe9bHtD2C6bAh9ckA_;
extern TNimType NTI__M4na42GvebBMnI5wV9cYMxg_;
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
extern TNimType NTI__9aT6NqcOkw9c3yfUpUf3OU5A_;
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_7, "nat", 3);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_8, "UPnP", 4);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_9, "tid", 3);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_10, "msg", 3);
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_14, "Trying to access value with err Result", 38);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_15, "\'e\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_16, "\'v\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_18, "parseIpAddress() exception", 26);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_19, "err", 3);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_21, "NAT-PMP", 7);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_26, "UPnP port mapping", 17);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_28, "UPnP port mapping check failed. Assuming the check itself is br"
"oken and the port mapping was done.", 98);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_30, "UPnP: added port mapping", 24);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_31, "externalPort", 12);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_32, "internalPort", 12);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_33, "protocol", 8);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_36, "NAT-PMP port mapping", 20);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_38, "NAT-PMP: added port mapping", 27);
extern TNimType NTI__GntyqsSCwg00S5X6lKEPuQ_;
extern TNimType NTI__VAWWBGXQQxBx5kHPK2xRMw_;
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_40, "Can\'t obtain a value from a `none`", 34);
extern TNimType NTI__d9cK9cyKZPJJxFXUmx8dSpPw_;
extern TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_42, "UPnP port mapping deletion", 26);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_44, "UPnP: deleted port mapping", 26);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_47, "NAT-PMP port mapping deletion", 29);
STRING_LITERAL(TM__KZyeRJvkqN4K9bGdF33t3dw_49, "NAT-PMP: deleted port mapping", 29);
N_LIB_PRIVATE NIM_THREADVAR tyObject_MiniupnpcolonObjectType___ZfgtTEK0E380MDBW1PU9cXw* upnp__vRpzj5Er9bdS8rkiOFcX9bCw;
N_LIB_PRIVATE NIM_THREADVAR tyObject_NatPmpcolonObjectType___4iGDGTllLmktszOIvur11A* npmp__2s4EMr8muJ9a49cQtg6pOWVQ;
N_LIB_PRIVATE tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA strategy__2Fvau0xHTl12yrbFPRKOhw = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 3);
N_LIB_PRIVATE NU16 internalTcpPort__GUtcLDyYXw6fl1VGM7GEig;
N_LIB_PRIVATE NU16 externalTcpPort__nibm1LdoPDG7O0ncKFh33A;
N_LIB_PRIVATE NU16 internalUdpPort__rJiyzE4WVLu1buK9a6mbUDw;
N_LIB_PRIVATE NU16 externalUdpPort__X6HzNZF9a18s9cy3m51K7ApQ;
N_LIB_PRIVATE tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A natThread__5Jw9cAe9aRnnOAOVu9bZ7tIQw;
extern TNimType* nimTypeRoot;
N_LIB_PRIVATE tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ natCloseChan__3pc4bU1c3v5tythiqh2ehQ;
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
static N_NIMCALL(void, TM__KZyeRJvkqN4K9bGdF33t3dw_2)(void) {
nimGCvisit((void*)upnp__vRpzj5Er9bdS8rkiOFcX9bCw, 0);}
static N_NIMCALL(void, TM__KZyeRJvkqN4K9bGdF33t3dw_3)(void) {
nimGCvisit((void*)npmp__2s4EMr8muJ9a49cQtg6pOWVQ, 0);}
static N_NIMCALL(void, TM__KZyeRJvkqN4K9bGdF33t3dw_5)(void) {
nimGCvisit((void*)natThread__5Jw9cAe9aRnnOAOVu9bZ7tIQw.data.Field2, 0);}
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
}
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ NIM_BOOL T3_;
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
}
LA4_: ;
}
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, asgnRef)(void** dest, void* src) {
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
}
LA3_: ;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
if (!!(((*dest) == NIM_NIL))) goto LA8_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
}
LA8_: ;
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*dest) = src;}
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
(*s).prev = excHandler__rqLlY5bs9atDw2OXYqJEn5g;
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
excHandler__rqLlY5bs9atDw2OXYqJEn5g = s;}
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
static N_INLINE(void, popSafePoint)(void) {
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
excHandler__rqLlY5bs9atDw2OXYqJEn5g = (*excHandler__rqLlY5bs9atDw2OXYqJEn5g).prev;}
#line 2292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(Exception*, nimBorrowCurrentException)(void) { Exception* result; result = (Exception*)0;
#line 2295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
#line 2288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(Exception*, getCurrentException)(void) { Exception* result; result = (Exception*)0;
#line 2290 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
static N_INLINE(void, popCurrentException)(void) {
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
asgnRef((void**) (&currException__9bVPeDJlYTi9bQApZpfH8wjg), (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up);}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(NimStringDesc*, get__OXIA4IOeVltVK9bkXvh4A9aAresults)(tyObject_Result__2tk2I019cjBvNsi9aKg47acQ self) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(self.o)) goto LA3_;
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_15)); }
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
raiseResultDefect__owuWoGCIMYubXziJ5dK27w(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_14), self._o_1.e);
}
LA3_: ;
if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_16)); } result = copyString(self._o_2.v); return result;}
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ, some__pjmtg26k5cCJBG48abef9cQoptions)(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA val_0) { tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ result; nimZeroMem((void*)(&result), sizeof(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ));
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result.has = NIM_TRUE;
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result.val = val_0; return result;}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(NCSTRING, get__MAxZV8YXF6a4gIEXfgd9aRQresults)(tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ self) { NCSTRING result; result = (NCSTRING)0;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(self.o)) goto LA3_;
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_15)); }
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
raiseResultDefect__LDPs6i4WoesAlTQQkVEXSA(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_14), self._o_1.e);
}
LA3_: ;
if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_16)); } result = self._o_2.v; return result;}
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ, getExternalIP__pu6I5UbUI6YcOLqE5JS9aFg)(tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA natStrategy, NIM_BOOL quiet) { tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ volatile result; tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA volatile externalIP;{ nimZeroMem((void*)(&result), sizeof(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ)); nimZeroMem((void*)(&externalIP), sizeof(tyObject_IpAddress__t0yd6ha54oWXm7nwZ4QqfA));
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ NIM_BOOL T3_; tyObject_Result__pZorf3I302ZEhkhn6lPgmg dres;
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T3_ = (NIM_BOOL)0;
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T3_ = (natStrategy == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 0)); if (T3_) goto LA4_;
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T3_ = (natStrategy == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 1)); LA4_: ;
if (!T3_) goto LA5_;
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!(upnp__vRpzj5Er9bdS8rkiOFcX9bCw == NIM_NIL)) goto LA9_;
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
asgnRef((void**) (&upnp__vRpzj5Er9bdS8rkiOFcX9bCw), newMiniupnp__ANEb8jK9bX9a0bLJkvSCIc9bQ()); }
LA9_: ;
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
(*upnp__vRpzj5Er9bdS8rkiOFcX9bCw).discoverDelay = ((int) 200);
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
dres = discover__q5OIsUzEm9aNs73Z4nlTu9aQ(upnp__vRpzj5Er9bdS8rkiOFcX9bCw);
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_6;
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(dres.o)) goto LA13_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_6); TM__KZyeRJvkqN4K9bGdF33t3dw_6.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_6.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_6.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T17_; NCSTRING T18_; nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_8));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T17_ = (NI)0; T17_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T17_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T18_ = (NCSTRING)0; T18_ = error__sw9aY0VeA9cBB2Qq0I9aSmqUg(dres);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T18_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97420019_; Exception* T21_; Exception* T22_; TM__KZyeRJvkqN4K9bGdF33t3dw_6.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T21_ = (Exception*)0; T21_ = getCurrentException(); errX60gensym97420019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T21_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T22_ = (Exception*)0; T22_ = &errX60gensym97420019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP", T22_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_6.status != 0) reraiseException(); }
goto LA11_;
LA13_: ;
{ NCSTRING msg; NIM_BOOL canContinue; tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw T24_; msg = (NCSTRING)0;
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
canContinue = NIM_TRUE;
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T24_ = (tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw)0; T24_ = selectIGD__9ceZ2eNfGqpolu2muX5ZGFA(upnp__vRpzj5Er9bdS8rkiOFcX9bCw); switch (T24_) {
case ((tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw) 0):
{
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
msg = "Internet Gateway Device not found. Giving up.";
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
canContinue = NIM_FALSE; }
break;
case ((tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw) 1):
{
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
msg = "Internet Gateway Device found."; }
break;
case ((tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw) 2):
{
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
msg = "Internet Gateway Device found but it\'s not connected. Trying an"
"yway."; }
break;
case ((tyEnum_SelectIGDResult__a0pEH6gyEmfVM45vvbAaQw) 3):
{
#line 65 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
msg = "Some device found, but it\'s not recognised as an Internet Gatew"
"ay Device. Trying anyway."; }
break;
}
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_11;
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(quiet)) goto LA31_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_11); TM__KZyeRJvkqN4K9bGdF33t3dw_11.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_11.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_11.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_2; NI T35_; nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_2)); nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_2), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_8));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T35_ = (NI)0; T35_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T35_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), msg);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_2));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_2));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97485019_; Exception* T38_; Exception* T39_; TM__KZyeRJvkqN4K9bGdF33t3dw_11.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T38_ = (Exception*)0; T38_ = getCurrentException(); errX60gensym97485019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T38_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T39_ = (Exception*)0; T39_ = &errX60gensym97485019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP", T39_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_11.status != 0) reraiseException(); }
LA31_: ;
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ tyObject_Result__2tk2I019cjBvNsi9aKg47acQ ires; if (!canContinue) goto LA42_;
nimZeroMem((void*)(&ires), sizeof(tyObject_Result__2tk2I019cjBvNsi9aKg47acQ));
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
externalIPAddress__tm3COvFEKLwn5s7hNUeAiQ(upnp__vRpzj5Er9bdS8rkiOFcX9bCw, (&ires));
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_12;
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(ires.o)) goto LA46_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_12); TM__KZyeRJvkqN4K9bGdF33t3dw_12.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_12.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_12.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_3; NI T50_; NCSTRING T51_; nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_3)); nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_3), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_8));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T50_ = (NI)0; T50_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T50_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T51_ = (NCSTRING)0; T51_ = error__L3AB2ceMdclcraKKssjhOg(ires);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T51_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_3));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_3));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97555019_; Exception* T54_; Exception* T55_; TM__KZyeRJvkqN4K9bGdF33t3dw_12.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T54_ = (Exception*)0; T54_ = getCurrentException(); errX60gensym97555019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T54_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T55_ = (Exception*)0; T55_ = &errX60gensym97555019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP", T55_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_12.status != 0) reraiseException(); }
goto LA44_;
LA46_: ;
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_13;
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_13); TM__KZyeRJvkqN4K9bGdF33t3dw_13.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_13.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_13.status == 0) { NimStringDesc* T58_;
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
T58_ = (NimStringDesc*)0; T58_ = get__OXIA4IOeVltVK9bkXvh4A9aAresults(ires);
#line 75 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
externalIP = parseIpAddress__1ivqWNphfe1wCfgNmXXOCA(T58_);
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
strategy__2Fvau0xHTl12yrbFPRKOhw = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 1);
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
result = some__pjmtg26k5cCJBG48abef9cQoptions(externalIP); popSafePoint(); goto BeforeRet_;
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__yoNlBGx0D2tRizIdhQuENw_))) { tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* e_1; Exception* T61_; TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_17; TM__KZyeRJvkqN4K9bGdF33t3dw_13.status = 0;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T61_ = (Exception*)0; T61_ = getCurrentException(); e_1 = ((tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) (T61_));
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_17); TM__KZyeRJvkqN4K9bGdF33t3dw_17.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_17.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_17.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_4; NI T64_; nimZeroMem((void*)(&record_4), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_4)); nimZeroMem((void*)(&record_4), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_4), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_18));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T64_ = (NI)0; T64_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T64_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_19), (*e_1).Sup.Sup.message);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_4));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_4));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97635019_; Exception* T67_; Exception* T68_; TM__KZyeRJvkqN4K9bGdF33t3dw_17.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T67_ = (Exception*)0; T67_ = getCurrentException(); errX60gensym97635019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T67_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T68_ = (Exception*)0; T68_ = &errX60gensym97635019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("parseIpAddress() exception", T68_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_17.status != 0) reraiseException();
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
popCurrentException(); goto BeforeRet_;
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_13.status != 0) reraiseException(); }
LA44_: ;
}
LA42_: ;
}
LA11_: ;
}
LA5_: ;
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ NIM_BOOL T71_; tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ nres;
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T71_ = (NIM_BOOL)0;
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T71_ = (natStrategy == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 0)); if (T71_) goto LA72_;
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T71_ = (natStrategy == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 2)); LA72_: ;
if (!T71_) goto LA73_;
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!(npmp__2s4EMr8muJ9a49cQtg6pOWVQ == NIM_NIL)) goto LA77_;
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
asgnRef((void**) (&npmp__2s4EMr8muJ9a49cQtg6pOWVQ), newNatPmp__J4rbQ4KB4Nh0GxYcEL0r6w()); }
LA77_: ;
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
nres = init__ru5ecGwN9ao0Sr85F1zxhEA(npmp__2s4EMr8muJ9a49cQtg6pOWVQ);
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_20;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(nres.o)) goto LA81_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_20); TM__KZyeRJvkqN4K9bGdF33t3dw_20.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_20.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_20.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_5; NI T85_; NCSTRING T86_; nimZeroMem((void*)(&record_5), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_5)); nimZeroMem((void*)(&record_5), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_5), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_21));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T85_ = (NI)0; T85_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T85_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T86_ = (NCSTRING)0; T86_ = error__sH4BP8FMrv1ZXvcPE8yiPg(nres);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record_5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T86_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_5));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_5));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97705019_; Exception* T89_; Exception* T90_; TM__KZyeRJvkqN4K9bGdF33t3dw_20.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T89_ = (Exception*)0; T89_ = getCurrentException(); errX60gensym97705019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T89_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T90_ = (Exception*)0; T90_ = &errX60gensym97705019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("NAT-PMP", T90_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_20.status != 0) reraiseException(); }
goto LA79_;
LA81_: ;
{ tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ nires; nimZeroMem((void*)(&nires), sizeof(tyObject_Result__HNnt9ck0SSM6g9ctpv9bOfKNQ));
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
externalIPAddress__U1YOwBlZ8wFyYXvrlrLdfg(npmp__2s4EMr8muJ9a49cQtg6pOWVQ, (&nires));
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_22;
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(nires.o)) goto LA94_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_22); TM__KZyeRJvkqN4K9bGdF33t3dw_22.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_22.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_22.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_6; NI T98_; NimStringDesc* T99_; nimZeroMem((void*)(&record_6), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_6)); nimZeroMem((void*)(&record_6), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_6), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_21));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T98_ = (NI)0; T98_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T98_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T99_ = (NimStringDesc*)0; T99_ = error__NndQoBZH0xG1T9cYuvykaLg(nires);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T99_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_6));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_6));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97775019_; Exception* T102_; Exception* T103_; TM__KZyeRJvkqN4K9bGdF33t3dw_22.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T102_ = (Exception*)0; T102_ = getCurrentException(); errX60gensym97775019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T102_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T103_ = (Exception*)0; T103_ = &errX60gensym97775019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("NAT-PMP", T103_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_22.status != 0) reraiseException(); }
goto LA92_;
LA94_: ;
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_23;
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_23); TM__KZyeRJvkqN4K9bGdF33t3dw_23.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_23.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_23.status == 0) { NCSTRING T106_; NimStringDesc* T107_;
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
T106_ = (NCSTRING)0; T106_ = get__MAxZV8YXF6a4gIEXfgd9aRQresults(nires); T107_ = (NimStringDesc*)0; T107_ = cstrToNimstr(T106_);
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
externalIP = parseIpAddress__1ivqWNphfe1wCfgNmXXOCA(T107_);
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
strategy__2Fvau0xHTl12yrbFPRKOhw = ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 2);
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
result = some__pjmtg26k5cCJBG48abef9cQoptions(externalIP); popSafePoint(); goto BeforeRet_;
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__yoNlBGx0D2tRizIdhQuENw_))) { tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* e_2; Exception* T110_; TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_24; TM__KZyeRJvkqN4K9bGdF33t3dw_23.status = 0;
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T110_ = (Exception*)0; T110_ = getCurrentException(); e_2 = ((tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) (T110_));
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_24); TM__KZyeRJvkqN4K9bGdF33t3dw_24.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_24.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_24.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_7; NI T113_; nimZeroMem((void*)(&record_7), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_7)); nimZeroMem((void*)(&record_7), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_7), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_18));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T113_ = (NI)0; T113_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T113_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_19), (*e_2).Sup.Sup.message);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_7));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_7));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97855019_; Exception* T116_; Exception* T117_; TM__KZyeRJvkqN4K9bGdF33t3dw_24.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T116_ = (Exception*)0; T116_ = getCurrentException(); errX60gensym97855019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T116_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T117_ = (Exception*)0; T117_ = &errX60gensym97855019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("parseIpAddress() exception", T117_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_24.status != 0) reraiseException();
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
popCurrentException(); goto BeforeRet_;
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_23.status != 0) reraiseException(); }
LA92_: ;
}
LA79_: ;
}
LA73_: ;
}BeforeRet_: ;
return result;}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(unsigned short, get__Q59bo9auE8ohlhxAq9a3q1xOAresults)(tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ self) { unsigned short result; result = (unsigned short)0;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(self.o)) goto LA3_;
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_15)); }
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
raiseResultDefect__LDPs6i4WoesAlTQQkVEXSA(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_14), self._o_1.e);
}
LA3_: ;
if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_16)); } result = self._o_2.v; return result;}
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg, some__O5gzqrqTe5VoR6KXD06bEAoptions)(tyTuple__LGcBAKu039a0TOc2fpMiDpA val_0) { tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg result; nimZeroMem((void*)(&result), sizeof(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg));
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result.has = NIM_TRUE;
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result.val = val_0; return result;}
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg, doPortMapping__zzwux9ckxHQ68Mrb1zLiNjg_2)(NU16 tcpPort, NU16 udpPort, NimStringDesc* description_0) { tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg result; NU16 extTcpPort; NU16 extUdpPort; tyTuple__LGcBAKu039a0TOc2fpMiDpA T89_;{ nimZeroMem((void*)(&result), sizeof(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg)); extTcpPort = (NU16)0; extUdpPort = (NU16)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!(strategy__2Fvau0xHTl12yrbFPRKOhw == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 1))) goto LA3_;
{ tyTuple__rREUjJeDld8KgydF0v3PXg t; tyArray__Gy5sY9c0XDWhUvxbSPmYuDg colontmp_; NI i; nimZeroMem((void*)(&t), sizeof(tyTuple__rREUjJeDld8KgydF0v3PXg)); nimZeroMem((void*)colontmp_, sizeof(tyArray__Gy5sY9c0XDWhUvxbSPmYuDg));
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
colontmp_[0].Field0 = tcpPort; colontmp_[0].Field1 = ((tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw) 0); colontmp_[1].Field0 = udpPort; colontmp_[1].Field1 = ((tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw) 1);
#line 17 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0);
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) (i)) <= ((NI) 1))) goto LA8_;
{
#line 19 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NU16 port; tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw protocol_1; tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ pmres; NimStringDesc* T12_; NimStringDesc* T13_; NI TM__KZyeRJvkqN4K9bGdF33t3dw_34;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
t = colontmp_[(i)- 0];
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
port = t.Field0; protocol_1 = t.Field1;
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T12_ = (NimStringDesc*)0; T12_ = dollar___RkX9btpg5sQIaP8yYXB6tbA(port);
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T13_ = (NimStringDesc*)0; T13_ = dollar___RkX9btpg5sQIaP8yYXB6tbA(port);
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
pmres = addPortMapping__zFlNC9cpw7a1Ru4SVofxGvA(upnp__vRpzj5Er9bdS8rkiOFcX9bCw, T12_, protocol_1, (*upnp__vRpzj5Er9bdS8rkiOFcX9bCw).lanAddr, T13_, description_0, ((NI) 0), ((NimStringDesc*) NIM_NIL));
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_25;
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(pmres.o)) goto LA16_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_25); TM__KZyeRJvkqN4K9bGdF33t3dw_25.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_25.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_25.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T20_; NCSTRING T21_; nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_26));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T20_ = (NI)0; T20_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T20_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T21_ = (NCSTRING)0; T21_ = error__sH4BP8FMrv1ZXvcPE8yiPg(pmres);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T21_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97925019_; Exception* T24_; Exception* T25_; TM__KZyeRJvkqN4K9bGdF33t3dw_25.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T24_ = (Exception*)0; T24_ = getCurrentException(); errX60gensym97925019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T24_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T25_ = (Exception*)0; T25_ = &errX60gensym97925019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP port mapping", T25_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_25.status != 0) reraiseException();
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
goto BeforeRet_;
}
goto LA14_;
LA16_: ;
{ tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ cres; NimStringDesc* T27_; TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_29; nimZeroMem((void*)(&cres), sizeof(tyObject_Result__9bn3q9cf2t0jbXRYPFofJMAQ));
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T27_ = (NimStringDesc*)0; T27_ = dollar___RkX9btpg5sQIaP8yYXB6tbA(port);
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
getSpecificPortMapping__QXaIFvOGyyO74C5o05CCfQ(upnp__vRpzj5Er9bdS8rkiOFcX9bCw, T27_, protocol_1, ((NimStringDesc*) NIM_NIL), (&cres));
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_27;
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(cres.o)) goto LA30_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_27); TM__KZyeRJvkqN4K9bGdF33t3dw_27.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_27.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_27.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_2; NI T34_; NCSTRING T35_; nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_2)); nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_2), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_28));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T34_ = (NI)0; T34_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T34_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T35_ = (NCSTRING)0; T35_ = error__uH0vUhUzxd49a6deTdFkcGQ((&cres));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T35_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_2));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_2));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym97995019_; Exception* T38_; Exception* T39_; TM__KZyeRJvkqN4K9bGdF33t3dw_27.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T38_ = (Exception*)0; T38_ = getCurrentException(); errX60gensym97995019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T38_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T39_ = (Exception*)0; T39_ = &errX60gensym97995019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP port mapping check failed. Assuming the check itself is br"
"oken and the port mapping was done.", T39_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_27.status != 0) reraiseException(); }
LA30_: ;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_29); TM__KZyeRJvkqN4K9bGdF33t3dw_29.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_29.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_29.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_3; NI T42_; nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_3)); nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_3), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_30));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T42_ = (NI)0; T42_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T42_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_31), port);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_32), port);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__2kYGmz103VPLntCPunrSiA((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_33), protocol_1);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_3));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_3));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98070019_; Exception* T45_; Exception* T46_; TM__KZyeRJvkqN4K9bGdF33t3dw_29.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T45_ = (Exception*)0; T45_ = getCurrentException(); errX60gensym98070019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T45_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T46_ = (Exception*)0; T46_ = &errX60gensym98070019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP: added port mapping", T46_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_29.status != 0) reraiseException();
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
switch (protocol_1) {
case ((tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw) 0):
{
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
extTcpPort = port; }
break;
case ((tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw) 1):
{
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
extUdpPort = port; }
break;
}
}
LA14_: ;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) 1) <= ((NI) (i)))) goto LA51_;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
goto LA10;
}
LA51_: ;
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__KZyeRJvkqN4K9bGdF33t3dw_34)) { raiseOverflow(); }; if (TM__KZyeRJvkqN4K9bGdF33t3dw_34 < 0 || TM__KZyeRJvkqN4K9bGdF33t3dw_34 > 1){ raiseOverflow(); } i = (NI)(TM__KZyeRJvkqN4K9bGdF33t3dw_34); }
} LA10: ;
}
LA8_: ;
}
}
goto LA1_;
LA3_: ;
{
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!(strategy__2Fvau0xHTl12yrbFPRKOhw == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 2))) goto LA54_;
{ tyTuple__r7XhtVpw9bi7Y89bqPdX2rqQ t_2; tyArray__u1b8zziSzaPfI6vxS34dEg colontmp__2; NI i_2; nimZeroMem((void*)(&t_2), sizeof(tyTuple__r7XhtVpw9bi7Y89bqPdX2rqQ)); nimZeroMem((void*)colontmp__2, sizeof(tyArray__u1b8zziSzaPfI6vxS34dEg));
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
colontmp__2[0].Field0 = tcpPort; colontmp__2[0].Field1 = ((tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A) 2); colontmp__2[1].Field0 = udpPort; colontmp__2[1].Field1 = ((tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A) 1);
#line 17 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_2 = ((NI) 0);
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) (i_2)) <= ((NI) 1))) goto LA59_;
{
#line 19 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NU16 port_2; tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A protocol_2; tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ pmres_2; NI TM__KZyeRJvkqN4K9bGdF33t3dw_39;
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
t_2 = colontmp__2[(i_2)- 0];
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
port_2 = t_2.Field0; protocol_2 = t_2.Field1; nimZeroMem((void*)(&pmres_2), sizeof(tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ));
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
addPortMapping__23mUfIicvJd6alZrC9bhKdw(npmp__2s4EMr8muJ9a49cQtg6pOWVQ, port_2, port_2, protocol_2, ((unsigned long) 3600), (&pmres_2));
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_35;
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(pmres_2.o)) goto LA65_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_35); TM__KZyeRJvkqN4K9bGdF33t3dw_35.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_35.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_35.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_4; NI T69_; NimStringDesc* T70_; nimZeroMem((void*)(&record_4), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_4)); nimZeroMem((void*)(&record_4), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_4), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_36));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T69_ = (NI)0; T69_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T69_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T70_ = (NimStringDesc*)0; T70_ = error__h9aEaUi2MqbSt4uJXHzS9cVw(pmres_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T70_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_4));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_4));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98280019_; Exception* T73_; Exception* T74_; TM__KZyeRJvkqN4K9bGdF33t3dw_35.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T73_ = (Exception*)0; T73_ = getCurrentException(); errX60gensym98280019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T73_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T74_ = (Exception*)0; T74_ = &errX60gensym98280019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("NAT-PMP port mapping", T74_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_35.status != 0) reraiseException();
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
goto BeforeRet_;
}
goto LA63_;
LA65_: ;
{ NU16 extPort; TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_37;
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
extPort = get__Q59bo9auE8ohlhxAq9a3q1xOAresults(pmres_2);
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_37); TM__KZyeRJvkqN4K9bGdF33t3dw_37.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_37.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_37.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_5; NI T78_; nimZeroMem((void*)(&record_5), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_5)); nimZeroMem((void*)(&record_5), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_5), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_38));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T78_ = (NI)0; T78_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T78_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_31), extPort);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_32), port_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__O39cJ9cwJawZDXPEh81bmKJg((&record_5), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_33), protocol_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_5));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_5));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98360019_; Exception* T81_; Exception* T82_; TM__KZyeRJvkqN4K9bGdF33t3dw_37.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T81_ = (Exception*)0; T81_ = getCurrentException(); errX60gensym98360019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T81_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T82_ = (Exception*)0; T82_ = &errX60gensym98360019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("NAT-PMP: added port mapping", T82_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_37.status != 0) reraiseException();
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
switch (protocol_2) {
case ((tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A) 2):
{
#line 148 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
extTcpPort = extPort; }
break;
case ((tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A) 1):
{
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
extUdpPort = extPort; }
break;
}
}
LA63_: ;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) 1) <= ((NI) (i_2)))) goto LA87_;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
goto LA61;
}
LA87_: ;
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__KZyeRJvkqN4K9bGdF33t3dw_39)) { raiseOverflow(); }; if (TM__KZyeRJvkqN4K9bGdF33t3dw_39 < 0 || TM__KZyeRJvkqN4K9bGdF33t3dw_39 > 1){ raiseOverflow(); } i_2 = (NI)(TM__KZyeRJvkqN4K9bGdF33t3dw_39); }
} LA61: ;
}
LA59_: ;
}
}
goto LA1_;
LA54_: ;
LA1_: ;
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T89_.Field0 = extTcpPort; T89_.Field1 = extUdpPort;
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
result = some__O5gzqrqTe5VoR6KXD06bEAoptions(T89_); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(NIM_BOOL, isSome__q4RUyPKfMFQ4x0z2XsVD2Aoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result = self.has; return result;}
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(NIM_BOOL, isNone__q4RUyPKfMFQ4x0z2XsVD2A_2options)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg self) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result = !(self.has); return result;}
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
}
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(tyTuple__LGcBAKu039a0TOc2fpMiDpA*, get__qmlUujQJZqadhXy7ek5ELAoptions)(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg* self) { tyTuple__LGcBAKu039a0TOc2fpMiDpA* result;{ result = (tyTuple__LGcBAKu039a0TOc2fpMiDpA*)0;
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
{ NIM_BOOL T3_; tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw* T6_; NimStringDesc* T7_;
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
T3_ = (NIM_BOOL)0; T3_ = isNone__q4RUyPKfMFQ4x0z2XsVD2A_2options((*self)); if (!T3_) goto LA4_;
T6_ = (tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw*)0; T6_ = (tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw*) newObj((&NTI__GntyqsSCwg00S5X6lKEPuQ_), sizeof(tyObject_UnpackError__VAWWBGXQQxBx5kHPK2xRMw)); (*T6_).Sup.Sup.Sup.m_type = (&NTI__VAWWBGXQQxBx5kHPK2xRMw_); (*T6_).Sup.Sup.name = "UnpackError"; T7_ = (NimStringDesc*)0; T7_ = (*T6_).Sup.Sup.message; (*T6_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_40)); if (T7_) nimGCunrefNoCycle(T7_); asgnRef((void**) (&(*T6_).Sup.Sup.parent), NIM_NIL);
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
raiseExceptionEx((Exception*)T6_, "UnpackError", "get", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/pure/options.nim", 215); }
LA4_: ;
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result = (&(*self).val); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(NIM_BOOL, isSome__Ko7CQanwNHnwf7WYxGSR2woptions)(tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ self) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result = self.has; return result;}
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
N_LIB_PRIVATE N_NIMCALL(void, repeatPortMapping__VeL9bEuN9aRVzn1BVsJj9bOQA)(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA args) { NU16 tcpPort; NU16 udpPort; NimStringDesc* description_1; tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw interval; NI sleepDuration; tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw lastUpdate; tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ ipres;{
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
ignoreSignalsInThread__pdyHbOZXF9bjmJf9c513qOkA();
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
tcpPort = (NU16)0; tcpPort = args.Field0; udpPort = (NU16)0; udpPort = args.Field1; description_1 = (NimStringDesc*)0; description_1 = args.Field2;
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
interval = initDuration__wcR3zetvspAUsyuvWZ07Xg(IL64(0), IL64(0), IL64(0), IL64(1200), IL64(0), IL64(0), IL64(0), IL64(0));
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
sleepDuration = ((NI) 1000); nimZeroMem((void*)(&lastUpdate), sizeof(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw)); lastUpdate.Sup.m_type = (&NTI__d9cK9cyKZPJJxFXUmx8dSpPw_);
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
now__YmAcAi9bz5G8OQqVFWHN2uA((&lastUpdate));
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
ipres = getExternalIP__pu6I5UbUI6YcOLqE5JS9aFg(strategy__2Fvau0xHTl12yrbFPRKOhw, NIM_TRUE);
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ NIM_BOOL T3_;
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T3_ = (NIM_BOOL)0; T3_ = isSome__Ko7CQanwNHnwf7WYxGSR2woptions(ipres); if (!T3_) goto LA4_;
{
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
while (1) { tyTuple__LTIP7S8Q2Kg7omggcjH5Rg T8_; NIM_BOOL dataAvailable; NIM_BOOL _;
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T8_ = tryRecv__9cUHl9cc6utSyeDOp9bgCg9aFg((&natCloseChan__3pc4bU1c3v5tythiqh2ehQ)); dataAvailable = T8_.Field0; _ = T8_.Field1;
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ if (!dataAvailable) goto LA11_;
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
goto BeforeRet_;
}
goto LA9_;
LA11_: ;
{ tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw currTime; nimZeroMem((void*)(&currTime), sizeof(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw)); currTime.Sup.m_type = (&NTI__d9cK9cyKZPJJxFXUmx8dSpPw_);
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
now__YmAcAi9bz5G8OQqVFWHN2uA((&currTime));
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw T16_; NIM_BOOL T17_; tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg T20_;
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
nimZeroMem((void*)(&T16_), sizeof(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw)); T16_.Sup.m_type = (&NTI__d9cK9cyKZPJJxFXUmx8dSpPw_); plus___TPzrjPwCvRO4dwW7j39bjrw((&lastUpdate), interval, (&T16_));
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T17_ = (NIM_BOOL)0; T17_ = lteq___Jne39clJ1ilcNO88UZey79cw((&T16_), (&currTime)); if (!T17_) goto LA18_;
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T20_ = doPortMapping__zzwux9ckxHQ68Mrb1zLiNjg_2(tcpPort, udpPort, description_1); (void)(T20_);
#line 183 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
genericAssign((void*)(&lastUpdate), (void*)(&currTime), (&NTI__d9cK9cyKZPJJxFXUmx8dSpPw_)); }
LA18_: ;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
nossleep(sleepDuration);
}
LA9_: ;
}
}
}
LA4_: ;
}BeforeRet_: ;
}
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
static N_INLINE(void, send__z4kjU8lFDiTCcwpcL9byaIAsystem)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, NIM_BOOL msg) { NIM_BOOL T1_;
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
#line 369 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
T1_ = (NIM_BOOL)0; T1_ = sendImpl__wSGPBHwFnSdhsolDckAk3Q(((tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ*) (c)), ((TNimType*) ((&NTI__VaVACK0bpYmqIQ0mKcHfQQ_))), ((void*) ((&msg))), NIM_FALSE); (void)(T1_);
}
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/threads.nim"
static N_INLINE(void, joinThread__KLYFR9aW42sinzYZrQyQX9awsystem)(tyObject_Thread__9aT6NqcOkw9c3yfUpUf3OU5A* t) { int T1_;
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/threads.nim"
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/threads.nim"
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/threads.nim"
T1_ = (int)0; T1_ = pthread_join((*t).sys, NIM_NIL); (void)(T1_);
}
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
N_LIB_PRIVATE N_NOCONV(void, stopNatThread__MbizJe5uH9aBP9ao9czq1pMVQ)(void) { tyObject_Option__rZSB3RRJAwsx6nOzk6ceBQ ipres;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
send__z4kjU8lFDiTCcwpcL9byaIAsystem((&natCloseChan__3pc4bU1c3v5tythiqh2ehQ), NIM_TRUE);
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
joinThread__KLYFR9aW42sinzYZrQyQX9awsystem((&natThread__5Jw9cAe9aRnnOAOVu9bZ7tIQw));
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
close__ONtGLHHA9bQ15JQ20TWgZzw((&natCloseChan__3pc4bU1c3v5tythiqh2ehQ));
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
ipres = getExternalIP__pu6I5UbUI6YcOLqE5JS9aFg(strategy__2Fvau0xHTl12yrbFPRKOhw, NIM_TRUE);
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ NIM_BOOL T3_;
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T3_ = (NIM_BOOL)0; T3_ = isSome__Ko7CQanwNHnwf7WYxGSR2woptions(ipres); if (!T3_) goto LA4_;
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!(strategy__2Fvau0xHTl12yrbFPRKOhw == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 1))) goto LA8_;
{ tyTuple__9a87m9c4moLPEXat9adQQF54Q t; tyArray__iUn0JuyS4o9a9a2KfMivPwmQ colontmp_; NI i; nimZeroMem((void*)(&t), sizeof(tyTuple__9a87m9c4moLPEXat9adQQF54Q)); nimZeroMem((void*)colontmp_, sizeof(tyArray__iUn0JuyS4o9a9a2KfMivPwmQ));
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
colontmp_[0].Field0 = externalTcpPort__nibm1LdoPDG7O0ncKFh33A; colontmp_[0].Field1 = internalTcpPort__GUtcLDyYXw6fl1VGM7GEig; colontmp_[0].Field2 = ((tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw) 0); colontmp_[1].Field0 = externalUdpPort__X6HzNZF9a18s9cy3m51K7ApQ; colontmp_[1].Field1 = internalUdpPort__rJiyzE4WVLu1buK9a6mbUDw; colontmp_[1].Field2 = ((tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw) 1);
#line 17 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0);
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) (i)) <= ((NI) 1))) goto LA13_;
{
#line 19 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NU16 eport; NU16 iport; tyEnum_UPNPProtocol__KRPLdnmctmfcFCiWnVJqLw protocol_1; tyObject_Result__ilFFiS4FzkKdKwqy8wvy9cQ pmres; NimStringDesc* T17_; NI TM__KZyeRJvkqN4K9bGdF33t3dw_45;
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
t = colontmp_[(i)- 0];
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
eport = t.Field0; iport = t.Field1; protocol_1 = t.Field2;
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T17_ = (NimStringDesc*)0; T17_ = dollar___RkX9btpg5sQIaP8yYXB6tbA(eport);
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
pmres = deletePortMapping__V0VrzQWk5TFfdMYrUuoREA(upnp__vRpzj5Er9bdS8rkiOFcX9bCw, T17_, protocol_1, ((NimStringDesc*) NIM_NIL));
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_41;
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(pmres.o)) goto LA20_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_41); TM__KZyeRJvkqN4K9bGdF33t3dw_41.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_41.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_41.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T24_; NCSTRING T25_; nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_42));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T24_ = (NI)0; T24_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T24_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T25_ = (NCSTRING)0; T25_ = error__sH4BP8FMrv1ZXvcPE8yiPg(pmres);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__3WN9aIz7lNtTrcIDj9bpKQkw((&record), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T25_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98525019_; Exception* T28_; Exception* T29_; TM__KZyeRJvkqN4K9bGdF33t3dw_41.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T28_ = (Exception*)0; T28_ = getCurrentException(); errX60gensym98525019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T28_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T29_ = (Exception*)0; T29_ = &errX60gensym98525019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP port mapping deletion", T29_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_41.status != 0) reraiseException(); }
goto LA18_;
LA20_: ;
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_43;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_43); TM__KZyeRJvkqN4K9bGdF33t3dw_43.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_43.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_43.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_2; NI T33_; nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_2)); nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_2), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_44));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T33_ = (NI)0; T33_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T33_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_31), eport);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_32), iport);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__2kYGmz103VPLntCPunrSiA((&record_2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_33), protocol_1);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_2));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_2));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98590019_; Exception* T36_; Exception* T37_; TM__KZyeRJvkqN4K9bGdF33t3dw_43.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T36_ = (Exception*)0; T36_ = getCurrentException(); errX60gensym98590019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T36_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T37_ = (Exception*)0; T37_ = &errX60gensym98590019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("UPnP: deleted port mapping", T37_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_43.status != 0) reraiseException(); }
LA18_: ;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) 1) <= ((NI) (i)))) goto LA40_;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
goto LA15;
}
LA40_: ;
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__KZyeRJvkqN4K9bGdF33t3dw_45)) { raiseOverflow(); }; if (TM__KZyeRJvkqN4K9bGdF33t3dw_45 < 0 || TM__KZyeRJvkqN4K9bGdF33t3dw_45 > 1){ raiseOverflow(); } i = (NI)(TM__KZyeRJvkqN4K9bGdF33t3dw_45); }
} LA15: ;
}
LA13_: ;
}
}
goto LA6_;
LA8_: ;
{
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!(strategy__2Fvau0xHTl12yrbFPRKOhw == ((tyEnum_NatStrategy__KAzF8AKISm4O1ejBRpCSOA) 2))) goto LA43_;
{ tyTuple__0sAnLDGT1TI9aW0lCrVr9chg t_2; tyArray__Imqi40oqXPIAeDQF9b81a1w colontmp__2; NI i_2; nimZeroMem((void*)(&t_2), sizeof(tyTuple__0sAnLDGT1TI9aW0lCrVr9chg)); nimZeroMem((void*)colontmp__2, sizeof(tyArray__Imqi40oqXPIAeDQF9b81a1w));
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
colontmp__2[0].Field0 = externalTcpPort__nibm1LdoPDG7O0ncKFh33A; colontmp__2[0].Field1 = internalTcpPort__GUtcLDyYXw6fl1VGM7GEig; colontmp__2[0].Field2 = ((tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A) 2); colontmp__2[1].Field0 = externalUdpPort__X6HzNZF9a18s9cy3m51K7ApQ; colontmp__2[1].Field1 = internalUdpPort__rJiyzE4WVLu1buK9a6mbUDw; colontmp__2[1].Field2 = ((tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A) 1);
#line 17 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_2 = ((NI) 0);
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 18 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) (i_2)) <= ((NI) 1))) goto LA48_;
{
#line 19 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NU16 eport_2; NU16 iport_2; tyEnum_NatPmpProtocol__7XY4RnUVS4BQVoQnihfr7A protocol_2; tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ pmres_2; NI TM__KZyeRJvkqN4K9bGdF33t3dw_50;
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
t_2 = colontmp__2[(i_2)- 0];
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
eport_2 = t_2.Field0; iport_2 = t_2.Field1; protocol_2 = t_2.Field2; nimZeroMem((void*)(&pmres_2), sizeof(tyObject_Result__h9b1jynKZrDS9bX4he8zIyhQ));
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
deletePortMapping__tTP4MvH38Uctfis3ovOlow(npmp__2s4EMr8muJ9a49cQtg6pOWVQ, eport_2, iport_2, protocol_2, (&pmres_2));
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_46;
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
if (!!(pmres_2.o)) goto LA54_;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_46); TM__KZyeRJvkqN4K9bGdF33t3dw_46.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_46.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_46.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_3; NI T58_; NimStringDesc* T59_; nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_3)); nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_3), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_47));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T58_ = (NI)0; T58_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T58_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T59_ = (NimStringDesc*)0; T59_ = error__h9aEaUi2MqbSt4uJXHzS9cVw(pmres_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_3), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_10), T59_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_3));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_3));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98680019_; Exception* T62_; Exception* T63_; TM__KZyeRJvkqN4K9bGdF33t3dw_46.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T62_ = (Exception*)0; T62_ = getCurrentException(); errX60gensym98680019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T62_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T63_ = (Exception*)0; T63_ = &errX60gensym98680019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("NAT-PMP port mapping deletion", T63_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_46.status != 0) reraiseException(); }
goto LA52_;
LA54_: ;
{ TSafePoint TM__KZyeRJvkqN4K9bGdF33t3dw_48;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
pushSafePoint(&TM__KZyeRJvkqN4K9bGdF33t3dw_48); TM__KZyeRJvkqN4K9bGdF33t3dw_48.status = setjmp(TM__KZyeRJvkqN4K9bGdF33t3dw_48.context); if (TM__KZyeRJvkqN4K9bGdF33t3dw_48.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_4; NI T67_; nimZeroMem((void*)(&record_4), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
chckNil((void*)(&record_4)); nimZeroMem((void*)(&record_4), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_4), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_7), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_49));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T67_ = (NI)0; T67_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_9), T67_);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_31), eport_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__JCFADoFL9cl2dlI3Jxynvfg((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_32), iport_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
setProperty__O39cJ9cwJawZDXPEh81bmKJg((&record_4), ((NimStringDesc*) &TM__KZyeRJvkqN4K9bGdF33t3dw_33), protocol_2);
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_4));
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_4));
}
popSafePoint(); }
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym98745019_; Exception* T70_; Exception* T71_; TM__KZyeRJvkqN4K9bGdF33t3dw_48.status = 0;
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
#line 0 "\?\?\?"
#line 0 "\?\?\?"
T70_ = (Exception*)0; T70_ = getCurrentException(); errX60gensym98745019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T70_));
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
T71_ = (Exception*)0; T71_ = &errX60gensym98745019_->Sup;
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("NAT-PMP: deleted port mapping", T71_);
popCurrentException(); }
}
if (TM__KZyeRJvkqN4K9bGdF33t3dw_48.status != 0) reraiseException(); }
LA52_: ;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(((NI) 1) <= ((NI) (i_2)))) goto LA74_;
#line 21 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
goto LA50;
}
LA74_: ;
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__KZyeRJvkqN4K9bGdF33t3dw_50)) { raiseOverflow(); }; if (TM__KZyeRJvkqN4K9bGdF33t3dw_50 < 0 || TM__KZyeRJvkqN4K9bGdF33t3dw_50 > 1){ raiseOverflow(); } i_2 = (NI)(TM__KZyeRJvkqN4K9bGdF33t3dw_50); }
} LA50: ;
}
LA48_: ;
}
}
goto LA6_;
LA43_: ;
LA6_: ;
}
LA4_: ;
}
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg, redirectPorts__zzwux9ckxHQ68Mrb1zLiNjg)(NU16 tcpPort, NU16 udpPort, NimStringDesc* description_0) { tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg result; nimZeroMem((void*)(&result), sizeof(tyObject_Option__NFooQFx9abiHLqq4U9cP9ahdg));
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
result = doPortMapping__zzwux9ckxHQ68Mrb1zLiNjg_2(tcpPort, udpPort, description_0);
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
{ NIM_BOOL T3_; tyTuple__LGcBAKu039a0TOc2fpMiDpA _; tyTuple__LGcBAKu039a0TOc2fpMiDpA* T6_; tyTuple__64ip2rfhe9bHtD2C6bAh9ckA T7_;
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T3_ = (NIM_BOOL)0; T3_ = isSome__q4RUyPKfMFQ4x0z2XsVD2Aoptions(result); if (!T3_) goto LA4_;
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
T6_ = (tyTuple__LGcBAKu039a0TOc2fpMiDpA*)0; T6_ = get__qmlUujQJZqadhXy7ek5ELAoptions((&result)); _ = (*T6_);
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
externalTcpPort__nibm1LdoPDG7O0ncKFh33A = _.Field0;
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
externalUdpPort__X6HzNZF9a18s9cy3m51K7ApQ = _.Field1;
#line 230 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
internalTcpPort__GUtcLDyYXw6fl1VGM7GEig = tcpPort;
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
internalUdpPort__rJiyzE4WVLu1buK9a6mbUDw = udpPort;
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
open__dsR75sy8cZ4BrmTxSxy3WA_2((&natCloseChan__3pc4bU1c3v5tythiqh2ehQ), ((NI) 0));
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
nimZeroMem((void*)(&T7_), sizeof(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA)); T7_.Field0 = externalTcpPort__nibm1LdoPDG7O0ncKFh33A; T7_.Field1 = externalUdpPort__X6HzNZF9a18s9cy3m51K7ApQ; T7_.Field2 = copyString(description_0);
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
createThread__cfap4qpARHVZeCNp0uPdDA((&natThread__5Jw9cAe9aRnnOAOVu9bZ7tIQw), repeatPortMapping__VeL9bEuN9aRVzn1BVsJj9bOQA, T7_);
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/net/nat.nim"
atexit(stopNatThread__MbizJe5uH9aBP9ao9czq1pMVQ);
}
LA4_: ;
return result;}
N_LIB_PRIVATE N_NIMCALL(void, eth_natInit000)(void) {
#line 999999 "generated_not_to_break_here"
{
nimRegisterThreadLocalMarker(TM__KZyeRJvkqN4K9bGdF33t3dw_2); nimRegisterThreadLocalMarker(TM__KZyeRJvkqN4K9bGdF33t3dw_3); nimRegisterGlobalMarker(TM__KZyeRJvkqN4K9bGdF33t3dw_5);}
}
N_LIB_PRIVATE N_NIMCALL(void, eth_natDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__KZyeRJvkqN4K9bGdF33t3dw_4_3[3];
static TNimNode TM__KZyeRJvkqN4K9bGdF33t3dw_0[4];NTI__64ip2rfhe9bHtD2C6bAh9ckA_.size = sizeof(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA);
NTI__64ip2rfhe9bHtD2C6bAh9ckA_.kind = 18;
NTI__64ip2rfhe9bHtD2C6bAh9ckA_.base = 0;
NTI__64ip2rfhe9bHtD2C6bAh9ckA_.flags = 2;
NTI__64ip2rfhe9bHtD2C6bAh9ckA_.name = "PortMappingArgs";
NTI__64ip2rfhe9bHtD2C6bAh9ckA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__64ip2rfhe9bHtD2C6bAh9ckA_;
TM__KZyeRJvkqN4K9bGdF33t3dw_4_3[0] = &TM__KZyeRJvkqN4K9bGdF33t3dw_0[1];
TM__KZyeRJvkqN4K9bGdF33t3dw_0[1].kind = 1;
TM__KZyeRJvkqN4K9bGdF33t3dw_0[1].offset = offsetof(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA, Field0);
TM__KZyeRJvkqN4K9bGdF33t3dw_0[1].typ = (&NTI__M4na42GvebBMnI5wV9cYMxg_);
TM__KZyeRJvkqN4K9bGdF33t3dw_0[1].name = "Field0";
TM__KZyeRJvkqN4K9bGdF33t3dw_4_3[1] = &TM__KZyeRJvkqN4K9bGdF33t3dw_0[2];
TM__KZyeRJvkqN4K9bGdF33t3dw_0[2].kind = 1;
TM__KZyeRJvkqN4K9bGdF33t3dw_0[2].offset = offsetof(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA, Field1);
TM__KZyeRJvkqN4K9bGdF33t3dw_0[2].typ = (&NTI__M4na42GvebBMnI5wV9cYMxg_);
TM__KZyeRJvkqN4K9bGdF33t3dw_0[2].name = "Field1";
TM__KZyeRJvkqN4K9bGdF33t3dw_4_3[2] = &TM__KZyeRJvkqN4K9bGdF33t3dw_0[3];
TM__KZyeRJvkqN4K9bGdF33t3dw_0[3].kind = 1;
TM__KZyeRJvkqN4K9bGdF33t3dw_0[3].offset = offsetof(tyTuple__64ip2rfhe9bHtD2C6bAh9ckA, Field2);
TM__KZyeRJvkqN4K9bGdF33t3dw_0[3].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__KZyeRJvkqN4K9bGdF33t3dw_0[3].name = "Field2";
TM__KZyeRJvkqN4K9bGdF33t3dw_0[0].len = 3; TM__KZyeRJvkqN4K9bGdF33t3dw_0[0].kind = 2; TM__KZyeRJvkqN4K9bGdF33t3dw_0[0].sons = &TM__KZyeRJvkqN4K9bGdF33t3dw_4_3[0];
NTI__64ip2rfhe9bHtD2C6bAh9ckA_.node = &TM__KZyeRJvkqN4K9bGdF33t3dw_0[0];
}