//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvent from 0x10033d790 to 0x10033d7fe (110 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite @ 0x1004a35b5
//
// This function is hookable on this platform (idp: pc, 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 12:28:42 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvent(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
unsigned int a5)
{
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // r12
v6 = cocos2d::extension::CCInvocation::create(a2, a3, a4, a5);
v7 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 440), (int)a5);
if ( !v7 )
{
v8 = sub_1007FEC20(1);
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 440), v8, a5);
v7 = v8;
}
return sub_1007FEBF0(v7, v6);
}