//
// cocos2d::CCKeypadHandler::handlerWithDelegate from 0xd53df0 to 0xd53e68 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCKeypadDispatcher::forceAddDelegate @ 0xd53f54
// > ??> @ 0x7e250
//
// This function is hookable on this platform (idp: arm, 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 13:07:42 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCKeypadHandler::handlerWithDelegate(
cocos2d::CCKeypadHandler *this,
cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCObject *v2; // x19
v2 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = &off_15170D0;
if ( (unsigned __int8)cocos2d::CCKeypadHandler::initWithDelegate((__int64)v2, this) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
cocos2d::CCObject::release(v2);
return nullptr;
}
}