//
// cocos2d::CCKeypadHandler::initWithDelegate from 0xae10c4 to 0xae1114 (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCKeypadHandler::handlerWithDelegate @ 0xae11c0
// > ??> @ 0xafd10
// > ??> @ 0x12017d0
//
// 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
//
bool cocos2d::CCKeypadHandler::initWithDelegate(cocos2d::CCKeypadHandler *a1, cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCObject *v2; // x0
a1[1].__vftable = (cocos2d::CCKeypadHandler_vtbl *)a2;
if ( a2 )
{
v2 = (cocos2d::CCObject *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeypadDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain(v2);
}
else
{
cocos2d::CCObject::retain(nullptr);
}
return 1;
}