//
// cocos2d::CCKeypadHandler::setDelegate from 0xd53d84 to 0xd53df0 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xade00
//
// 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
//
_DWORD *__fastcall cocos2d::CCKeypadHandler::setDelegate(__int64 a1, void *lpsrc)
{
void *v4; // x0
_DWORD *result; // x0
_DWORD *v6; // x0
if ( lpsrc )
{
v4 = _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((__int64)v4);
}
result = *(_DWORD **)(a1 + 56);
if ( result )
{
v6 = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeypadDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
result = cocos2d::CCObject::release(v6);
}
*(_QWORD *)(a1 + 56) = lpsrc;
return result;
}