//
// cocos2d::CCScriptHandlerEntry::create from 0x1800ba3d0 to 0x1800ba433 (99 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::registerScriptAccelerateHandler @ 0x18005264d
// > cocos2d::CCLayer::registerScriptKeypadHandler @ 0x18005269d
// > ??> @ 0x1801c2e98
//
// 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:22:23 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall cocos2d::CCScriptHandlerEntry::create(int a1)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // rbx
v2 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);
v3 = v2;
if ( v2 )
{
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v3 = &cocos2d::CCScriptHandlerEntry::`vftable';
*((_DWORD *)v3 + 14) = a1;
*((_DWORD *)v3 + 15) = ++dword_1801B3B74;
}
else
{
v3 = nullptr;
}
cocos2d::CCObject::autorelease(v3);
return v3;
}