//
// cocos2d::CCLayer::registerScriptAccelerateHandler from 0x180052620 to 0x18005266b (75 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc2a4
//
// 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:21:45 +0000
//
void __fastcall cocos2d::CCLayer::registerScriptAccelerateHandler(cocos2d::CCLayer *this, unsigned int a2)
{
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rax
v4 = *((cocos2d::CCObject **)this + 48);
if ( v4 )
{
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 48) = 0;
}
v5 = (cocos2d::CCObject *)cocos2d::CCScriptHandlerEntry::create(a2);
*((_QWORD *)this + 48) = v5;
cocos2d::CCObject::retain(v5);
}