//
// __emutls_register_common from 0xe8d714 to 0xe8d750 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0xbcec8
//
// 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
//
unsigned __int64 *__fastcall _emutls_register_common(
unsigned __int64 *result,
unsigned __int64 a2,
unsigned __int64 a3,
unsigned __int64 a4)
{
if ( *result < a2 )
{
*result = a2;
result[3] = 0;
}
if ( result[1] < a3 )
result[1] = a3;
if ( a4 )
{
if ( a2 == *result )
result[3] = a4;
}
return result;
}