//
// sub_1800B6810 from 0x1800b6810 to 0x1800b6873 (99 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::registerScriptAccelerateHandler @ 0x18005082d
// > cocos2d::CCLayer::registerScriptKeypadHandler @ 0x18005087d
// > ??> @ 0x1801b8b80
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall sub_1800B6810(int a1)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // rbx
v2 = (cocos2d::CCObject *)operator new(0x40u);
v3 = v2;
if ( v2 )
{
cocos2d::CCObject::CCObject(v2);
v3->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCScriptHandlerEntry::`vftable';
LODWORD(v3[1].__vftable) = a1;
HIDWORD(v3[1].__vftable) = ++dword_1801A9AFC;
}
else
{
v3 = nullptr;
}
cocos2d::CCObject::autorelease(v3);
return v3;
}