//
// lws_server_get_canonical_hostname from 0xe3a0a0 to 0xe3a0e4 (68 bytes)
//
// 2 xrefs:
// > lws_create_context @ 0xe35898
// > ??> @ 0x69cb8
//
// 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:59 +0000
//
__int64 __fastcall lws_server_get_canonical_hostname(__int64 result, __int64 a2)
{
const char *v2; // [xsp+18h] [xbp+18h]
if ( (*(_DWORD *)(a2 + 100) & 4) == 0 )
{
v2 = (const char *)(result + 168);
gethostname((char *)(result + 168), 0x7Fu);
return lws_log(4, " canonical_hostname = %s\n", v2);
}
return result;
}