//
// cocos2d::CCKeyboardHandler::setDelegate from 0x809ca4 to 0x809cf4 (80 bytes)
//
// 0 xrefs:
//
// 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:01:28 +0000
//
_DWORD *__fastcall cocos2d::CCKeyboardHandler::setDelegate(
cocos2d::CCKeyboardHandler *this,
cocos2d::CCKeyboardDelegate *lpsrc)
{
void *v4; // r0
_DWORD *result; // r0
_DWORD *v6; // r0
if ( lpsrc )
{
v4 = _dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeyboardDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain((int)v4);
}
result = *((_DWORD **)this + 13);
if ( result )
{
v6 = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeyboardDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
result = cocos2d::CCObject::release(v6);
}
*((_DWORD *)this + 13) = lpsrc;
return result;
}