//
// _Init_thread_footer from 0x1800df658 to 0x1800df6c1 (105 bytes)
//
// 8 xrefs:
// > cocos2d::CCCallFuncN::getClassTypeInfo @ 0x18003021f
// > cocos2d::CCCallFuncND::getClassTypeInfo @ 0x18003029f
// > cocos2d::CCCallFuncO::getClassTypeInfo @ 0x18003031f
// > cocos2d::CCFileUtils::getClassTypeInfo @ 0x18006fd69
// > cocos2d::CCImage::initWithString @ 0x18007d09b
// > cocos2d::CCIMEDispatcher::sharedDispatcher @ 0x1800b4dd9
// > cocos2d::CCDirector::getClassTypeInfo @ 0x1800be5d9
// > ??> @ 0x1801bb004
//
// 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
//
void __fastcall Init_thread_footer(_DWORD *a1)
{
__int64 v2; // rdx
AcquireSRWLockExclusive(&SRWLock);
v2 = (unsigned int)TlsIndex;
*a1 = ++dword_1801A434C;
*(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + v2) + 4LL) = dword_1801A434C;
ReleaseSRWLockExclusive(&SRWLock);
WakeAllConditionVariable(&ConditionVariable);
}