//
// cocos2d::CCKeypadHandler::initWithDelegate from 0x7d1eec to 0x7d1f10 (36 bytes)
//
// 1 xrefs:
// > cocos2d::CCKeypadHandler::handlerWithDelegate @ 0x7d1f96
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:35 +0000
//
int __fastcall cocos2d::CCKeypadHandler::initWithDelegate(int a1, void *lpsrc)
{
void *v2; // r0
*(_DWORD *)(a1 + 52) = lpsrc;
v2 = 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);
cocos2d::CCObject::retain((int)v2);
return 1;
}