//
// cocos2d::CCLayer::registerScriptAccelerateHandler from 0x180050800 to 0x18005084b (75 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b2010
//
// 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 cocos2d::CCLayer::registerScriptAccelerateHandler(cocos2d::CCLayer *this, unsigned int a2)
{
cocos2d::CCScriptHandlerEntry *m_pScriptAccelerateHandlerEntry; // rcx
cocos2d::CCScriptHandlerEntry *v5; // rax
m_pScriptAccelerateHandlerEntry = this->m_pScriptAccelerateHandlerEntry;
if ( m_pScriptAccelerateHandlerEntry )
{
cocos2d::CCObject::release(m_pScriptAccelerateHandlerEntry);
this->m_pScriptAccelerateHandlerEntry = nullptr;
}
v5 = (cocos2d::CCScriptHandlerEntry *)sub_1800B6810(a2);
this->m_pScriptAccelerateHandlerEntry = v5;
cocos2d::CCObject::retain(v5);
}