//
// cocos2d::CCDirector::getClassTypeInfo from 0xad5a30 to 0xad5ad8 (168 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCDirector::getClassTypeInfo @ 0xad5adc
// > ??> @ 0x6e010
// > ??> @ 0x1200e68
// > ??> @ 0x1200f98
//
// 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
//
__int64 __fastcall cocos2d::CCDirector::getClassTypeInfo(cocos2d::CCDirector *this)
{
unsigned __int8 v1; // w1
__int64 v3; // x20
__int64 v4; // x1
int v5; // w0
v1 = atomic_load((unsigned __int8 *)&`guard variable for'cocos2d::CCDirector::getClassTypeInfo(void)::id);
if ( (v1 & 1) != 0
|| !_cxa_guard_acquire((__guard *)&`guard variable for'cocos2d::CCDirector::getClassTypeInfo(void)::id) )
{
return cocos2d::CCDirector::getClassTypeInfo(void)::id;
}
v3 = 0;
LODWORD(v4) = 0;
do
{
v5 = (unsigned __int8)`typeinfo name for'cocos2d::CCDirector[v3++];
v4 = (unsigned __int8)toupper(v5) ^ (unsigned int)(16777619 * v4);
}
while ( v3 != 22 );
cocos2d::CCDirector::getClassTypeInfo(void)::id = v4;
_cxa_guard_release((__guard *)&`guard variable for'cocos2d::CCDirector::getClassTypeInfo(void)::id);
return cocos2d::CCDirector::getClassTypeInfo(void)::id;
}