//
// __emutls_register_common from 0x110a3f8 to 0x110a434 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0xf65f8
//
// 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:18:31 +0000
//
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;
}