//
// cocos2d::CCKeypadHandler::setDelegate from 0x1800b41e0 to 0x1800b425a (122 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b882c
//
// 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
//
void __fastcall cocos2d::CCKeypadHandler::setDelegate(
cocos2d::CCKeypadHandler *this,
struct cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCObject *v4; // rax
__int64 v5; // rcx
cocos2d::CCObject *v6; // rax
if ( a2 )
{
v4 = (cocos2d::CCObject *)_RTDynamicCast(
a2,
0,
&cocos2d::CCKeypadDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::retain(v4);
}
v5 = *((_QWORD *)this + 7);
if ( v5 )
{
v6 = (cocos2d::CCObject *)_RTDynamicCast(
v5,
0,
&cocos2d::CCKeypadDelegate `RTTI Type Descriptor',
&cocos2d::CCObject `RTTI Type Descriptor',
0);
cocos2d::CCObject::release(v6);
}
*((_QWORD *)this + 7) = a2;
}