//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvent from 0x100352080 to 0x1003520ee (110 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite @ 0x1004aa715
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvent(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
unsigned int a5)
{
__int64 v6; // rbx
cocos2d::CCObject *v7; // rax
cocos2d::CCObject *v8; // r12
v6 = cocos2d::extension::CCInvocation::create(a2, a3, a4, a5);
v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 440), (int)a5);
if ( !v7 )
{
v8 = (cocos2d::CCObject *)sub_10071FD00(1);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 440), v8, a5);
v7 = v8;
}
return sub_10071FCD0(v7, v6);
}