//
// sub_1800E4D30 from 0x1800e4d30 to 0x1800e4dab (123 bytes)
//
// 9 xrefs:
// > cocos2d::CCCallFuncN::getClassTypeInfo @ 0x180030929
// > cocos2d::CCCallFuncND::getClassTypeInfo @ 0x1800309a9
// > cocos2d::CCCallFuncO::getClassTypeInfo @ 0x180030a29
// > cocos2d::CCFileUtils::getClassTypeInfo @ 0x180071e45
// > cocos2d::CCImage::initWithString @ 0x18008020f
// > cocos2d::CCTouchDispatcher::touchesBegan @ 0x1800b7416
// > cocos2d::CCIMEDispatcher::sharedDispatcher @ 0x1800b8b22
// > cocos2d::CCDirector::getClassTypeInfo @ 0x1800c1da5
// > ??> @ 0x1801c54d8
//
// This function is hookable on this platform (idp: pc, 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 11:22:38 +0000
//
void __fastcall sub_1800E4D30(_DWORD *a1)
{
AcquireSRWLockExclusive(&SRWLock);
while ( 1 )
{
if ( !*a1 )
{
*a1 = -1;
goto LABEL_7;
}
if ( *a1 != -1 )
break;
SleepConditionVariableSRW(&ConditionVariable, &SRWLock, 0xFFFFFFFF, 0);
}
*(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex) + 4LL) = dword_1801AE30C;
LABEL_7:
ReleaseSRWLockExclusive(&SRWLock);
}