//
// __emutls_register_common from 0xaf790c to 0xaf7944 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x85a4c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:11:04 +0000
//
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;
}