//
// cocos2d::extension::CCControl::sendActionsForControlEvents from 0xd0bb9c to 0xd0bd7c (480 bytes)
//
// 11 xrefs:
// > ??> @ 0x611f8
// > ??> @ 0x150a218
// > ??> @ 0x150a998
// > ??> @ 0x150b168
// > ??> @ 0x150b878
// > ??> @ 0x150bf98
// > ??> @ 0x150c6b8
// > ??> @ 0x150d418
// > ??> @ 0x150e0f8
// > ??> @ 0x150e7f8
// > ??> @ 0x1510118
//
// This function is hookable on this platform (idp: arm, 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 13:07:00 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::sendActionsForControlEvents(cocos2d::CCDictionary **this, int a2)
{
int v3; // w19
unsigned int v5; // w21
cocos2d::CCObject *v6; // x0
unsigned int *v7; // x0
cocos2d::extension::CCInvocation **v8; // x27
cocos2d::extension::CCInvocation **v9; // x26
cocos2d::extension::CCInvocation *v10; // x0
unsigned int v11; // w1
cocos2d::CCArray *v12; // x27
cocos2d::CCObject *v13; // x0
cocos2d::CCObject *v14; // x26
cocos2d::CCScriptEngineManager *v15; // x0
_QWORD *v16; // x0
unsigned int HandleOfControlEvent; // [xsp+6Ch] [xbp+6Ch]
_QWORD v19[2]; // [xsp+70h] [xbp+70h] BYREF
void *v20; // [xsp+80h] [xbp+80h]
v3 = 0;
do
{
while ( 1 )
{
v5 = 1 << v3;
if ( ((1 << v3) & a2) != 0 )
{
v6 = cocos2d::extension::CCControl::dispatchListforControlEvent(this, v5);
if ( v6 )
{
v7 = *((unsigned int **)v6 + 7);
if ( *v7 )
{
v8 = *((cocos2d::extension::CCInvocation ***)v7 + 2);
v9 = &v8[*v7 - 1];
while ( v9 >= v8 )
{
v10 = *v8;
if ( !*v8 )
break;
++v8;
cocos2d::extension::CCInvocation::invoke(v10, (cocos2d::CCObject *)this);
}
}
}
if ( *((_DWORD *)this + 75) )
{
HandleOfControlEvent = cocos2d::extension::CCControl::getHandleOfControlEvent(
(cocos2d::extension::CCControl *)this,
a2);
if ( HandleOfControlEvent != -1 )
break;
}
}
if ( ++v3 == 9 )
return _stack_chk_guard;
}
v12 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)((char *)&dword_0 + 3), v11);
v19[0] = 0;
v19[1] = 0;
v20 = nullptr;
v13 = (cocos2d::CCObject *)cocos2d::CCString::create(v19);
cocos2d::CCArray::addObject(v12, v13);
if ( (v19[0] & 1) != 0 )
operator delete(v20);
cocos2d::CCArray::addObject(v12, (cocos2d::CCObject *)this);
v14 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v14);
++v3;
*((_DWORD *)v14 + 14) = v5;
*(_QWORD *)v14 = &off_1428350;
cocos2d::CCObject::autorelease(v14);
v15 = (cocos2d::CCScriptEngineManager *)cocos2d::CCArray::addObject(v12, v14);
v16 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v15);
(*(void (__fastcall **)(_QWORD, _QWORD, cocos2d::CCArray *))(*(_QWORD *)*v16 + 152LL))(
*v16,
HandleOfControlEvent,
v12);
}
while ( v3 != 9 );
return _stack_chk_guard;
}