//
// sub_1005495E8 from 0x1005495e8 to 0x100549634 (76 bytes)
//
// 5 xrefs:
// > sub_100554D5C @ 0x1005560bc
// > sub_100557194 @ 0x1005576b0
// > sub_10056A6B8 @ 0x10056a910
// > sub_10056AEA0 @ 0x10056b48c
// > sub_1005730E4 @ 0x1005731c0
//
// 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
//
const char *__fastcall sub_1005495E8(__int64 a1, char *a2, socklen_t a3)
{
int v4; // w10
const void *v5; // x1
int v6; // w0
v4 = *(_DWORD *)(a1 + 4);
if ( v4 == 30 )
{
v5 = (const void *)(*(_QWORD *)(a1 + 32) + 8LL);
v6 = 30;
return inet_ntop(v6, v5, a2, a3);
}
if ( v4 == 2 )
{
v5 = (const void *)(*(_QWORD *)(a1 + 32) + 4LL);
v6 = 2;
return inet_ntop(v6, v5, a2, a3);
}
return nullptr;
}