Skip to content

Instantly share code, notes, and snippets.

@inv2004
Created April 3, 2021 20:34
Show Gist options
  • Save inv2004/a10d773c9dbd33edb0697d498020787d to your computer and use it in GitHub Desktop.
Save inv2004/a10d773c9dbd33edb0697d498020787d to your computer and use it in GitHub Desktop.
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, tag1__HiKHrrLOYR4hBpllSVCC1A)(tyObject_StreamFix__b69b4grKaFTd4YkM1TSIRbA* f, NI tag) {
NimStringDesc* result;
NI l;
NI t;
{ result = (NimStringDesc*)0;
l = ((*f).msg ? (*f).msg->Sup.len : 0);
t = (NI)0;
{
while (1) {
NI c;
if (!((*f).pos < l)) goto LA2;
c = ((NI) (((NU8)((*f).msg->data[(*f).pos]))));
{
while (1) {
if (!!((c == ((NI) 68)))) goto LA4;
t = (NI)((NI)((NI)(t * ((NI) 10)) + c) - ((NI) 48));
(*f).pos += ((NI) 1);
c = ((NI) (((NU8)((*f).msg->data[(*f).pos]))));
} LA4: ;
}
(*f).pos += ((NI) 1);
{
tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T11_;
if (!(tag == t)) goto LA7_;
t = (*f).pos;
{
while (1) {
if (!!((((NU8) (((NU8)((*f).msg->data[(*f).pos])))) == ((NU8) 1)))) goto LA10;
(*f).pos += ((NI) 1);
} LA10: ;
}
T11_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(t, (NI)((*f).pos - ((NI) 1)));
result = X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem((*f).msg, T11_);
goto BeforeRet_;
}
goto LA5_;
LA7_: ;
{
t = ((NI) 0);
{
while (1) {
if (!!(((NU8)((*f).msg->data[(*f).pos]) == (NU8)(1)))) goto LA14;
(*f).pos += ((NI) 1);
} LA14: ;
}
(*f).pos += ((NI) 1);
}
LA5_: ;
} LA2: ;
}
}BeforeRet_: ;
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment