//
// sub_10066F750 from 0x10066f750 to 0x10066f79c (76 bytes)
//
// 5 xrefs:
// > sub_10067AEC4 @ 0x10067c224
// > sub_10067D2FC @ 0x10067d818
// > sub_100690820 @ 0x100690a78
// > sub_100691008 @ 0x1006915f4
// > sub_10069924C @ 0x100699328
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:11:06 +0000
//
const char *__fastcall sub_10066F750(__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;
}