//
// sub_1006080FC from 0x1006080fc to 0x100608300 (516 bytes)
//
// 3 xrefs:
// > sub_100608300 @ 0x100608330
// > sub_100608390 @ 0x1006083f0
// > sub_100608390 @ 0x100608408
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1006080FC(_BYTE *a1, char *__s)
{
int v4; // w0
__int64 v5; // x20
char v6; // w9
char v7; // w11
char v8; // w10
int v10; // [xsp+2Ch] [xbp-54h] BYREF
int v11; // [xsp+30h] [xbp-50h] BYREF
int v12; // [xsp+34h] [xbp-4Ch] BYREF
__int128 __src; // [xsp+38h] [xbp-48h] BYREF
int v14; // [xsp+48h] [xbp-38h]
int v15; // [xsp+4Ch] [xbp-34h]
int v16; // [xsp+50h] [xbp-30h]
if ( strchr(__s, 58) )
{
v14 = 0;
v15 = -1;
v16 = 0;
v4 = sub_100613454(__s, 58);
v5 = 0;
if ( v4 )
return 0;
}
else if ( sscanf(__s, "%d.%d.%d.%d", &__src, &v12, &v11, &v10) == 4 )
{
v6 = v12;
v7 = v11;
v8 = v10;
if ( (v12 | (unsigned int)__src | v11 | v10) <= 0xFF )
{
*a1 = __src;
a1[1] = v6;
a1[2] = v7;
v5 = 4;
a1[3] = v8;
}
else
{
return 0;
}
}
else
{
return 0;
}
return v5;
}