//
// cocos2d::extension::CCControl::addTargetWithActionForControlEvent from 0x1800040a0 to 0x18000414f (175 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCControl::addTargetWithActionForControlEvents @ 0x180004070
// > ??> @ 0x180032408
// > ??> @ 0x18004b354
//
// 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:15:35 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::extension::CCControl::addTargetWithActionForControlEvent(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned int a4)
{
__int64 v8; // rsi
struct cocos2d::CCObject *v9; // rbx
v8 = sub_18001F040(0x50u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v8);
*(_QWORD *)v8 = &cocos2d::extension::CCInvocation::`vftable';
*(_QWORD *)(v8 + 64) = a2;
*(_QWORD *)(v8 + 56) = a3;
*(_DWORD *)(v8 + 72) = a4;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
v9 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 448), (int)a4);
if ( !v9 )
{
v9 = cocos2d::CCArray::createWithCapacity(1u);
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 448), v9, a4);
}
cocos2d::CCArray::addObject(v9, (struct cocos2d::CCObject *)v8);
}