//
// __emutls_register_common from 0x8e3e28 to 0x8e3e60 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x6c19c
//
// 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 int *__fastcall _emutls_register_common(
unsigned int *result,
unsigned int a2,
unsigned int a3,
unsigned int 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;
}