//
// sub_DE73B0 from 0xde73b0 to 0xde73f8 (72 bytes)
//
// 6 xrefs:
// > sub_DF2E60 @ 0xdf3438
// > sub_DF4B38 @ 0xdf4efc
// > sub_E0D708 @ 0xe0e074
// > sub_E0E9B8 @ 0xe0ece4
// > sub_E1949C @ 0xe19638
// > sub_E19A3C @ 0xe19ec0
//
// 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 13:09:12 +0000
//
const char *__fastcall sub_DE73B0(__int64 a1, char *buf, socklen_t len)
{
int v3; // w4
__int64 v5; // x5
char *v6; // x2
int v7; // w0
const void *v8; // x1
__int64 v9; // x5
v3 = *(_DWORD *)(a1 + 4);
if ( v3 == 2 )
{
v9 = *(_QWORD *)(a1 + 32);
v6 = buf;
v7 = 2;
v8 = (const void *)(v9 + 4);
return inet_ntop(v7, v8, v6, len);
}
if ( v3 == 10 )
{
v5 = *(_QWORD *)(a1 + 32);
v6 = buf;
v7 = 10;
v8 = (const void *)(v5 + 8);
return inet_ntop(v7, v8, v6, len);
}
return nullptr;
}