//
// sub_1003BEFB0 from 0x1003befb0 to 0x1003bf006 (86 bytes)
//
// 1 xrefs:
// > ??> @ 0x10092b9b8
//
// 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 sub_1003BEFB0(__int64 a1)
{
cocos2d::CCScriptEngineManager *v1; // rax
*(_QWORD *)a1 = off_10092B018;
*(_QWORD *)(a1 + 320) = off_10092B448;
if ( *(_DWORD *)(a1 + 368) )
{
v1 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v1 + 32LL))(*(_QWORD *)v1, *(unsigned int *)(a1 + 368));
*(_DWORD *)(a1 + 368) = 0;
}
return cocos2d::CCNodeRGBA::dCCNodeRGBA(a1);
}