//
// cocos2d::CCKeypadHandler::handlerWithDelegate from 0x1003aaea0 to 0x1003aaf0b (107 bytes)
//
// 3 xrefs:
// > cocos2d::CCKeypadDispatcher::addDelegate @ 0x1006d0506
// > cocos2d::CCKeypadDispatcher::forceAddDelegate @ 0x1006d053c
// > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1006d07b6
//
// 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 12:29:23 +0000
//
_QWORD *__fastcall cocos2d::CCKeypadHandler::handlerWithDelegate(void *lpsrc)
{
_QWORD *v1; // rbx
void *v2; // rdi
v1 = operator new(0x40u);
cocos2d::CCObject::CCObject(v1);
*v1 = off_100B35AB8;
v1[7] = lpsrc;
if ( lpsrc )
v2 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeypadDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v2 = nullptr;
cocos2d::CCObject::retain(v2);
cocos2d::CCObject::autorelease(v1);
return v1;
}