//
// cocos2d::CCKeypadHandler::handlerWithDelegate from 0x1003c1aa0 to 0x1003c1b0b (107 bytes)
//
// 3 xrefs:
// > cocos2d::CCKeypadDispatcher::addDelegate @ 0x1005f9716
// > cocos2d::CCKeypadDispatcher::forceAddDelegate @ 0x1005f974c
// > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1005f99c6
//
// 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
//
cocos2d::CCKeypadHandler *__fastcall cocos2d::CCKeypadHandler::handlerWithDelegate(cocos2d::CCKeypadDelegate *a1)
{
cocos2d::CCKeypadHandler *v1; // rbx
cocos2d::CCObject *v2; // rdi
v1 = (cocos2d::CCKeypadHandler *)operator new(0x40u);
cocos2d::CCObject::CCObject(v1);
v1->__vftable = (cocos2d::CCKeypadHandler_vtbl *)off_10092D280;
v1[1].__vftable = (cocos2d::CCKeypadHandler_vtbl *)a1;
if ( a1 )
v2 = (cocos2d::CCObject *)__dynamic_cast(
a1,
(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;
}