//
// cocos2d::extension::CCControl::sendActionsForControlEvents from 0x7a6a80 to 0x7a6b9a (282 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:58 +0000
//
cocos2d::CCObject *__fastcall cocos2d::extension::CCControl::sendActionsForControlEvents(
cocos2d::CCObject *this,
unsigned int a2)
{
int v2; // r4
cocos2d::CCObject *v3; // r5
cocos2d::CCObject **v5; // r2
int v6; // r3
cocos2d::CCObject **v7; // r7
cocos2d::CCObject **v8; // r8
cocos2d::CCObject *v9; // t1
unsigned int v10; // r1
cocos2d::CCObject *v11; // r11
cocos2d::CCArray *v12; // r0
cocos2d::CCArray *v13; // r8
cocos2d::CCObject *v14; // r0
cocos2d::CCObject *v15; // r7
cocos2d::CCScriptEngineManager *v16; // r0
_DWORD *v17; // r0
_DWORD v18[2]; // [sp+8h] [bp-14h] BYREF
void *v19; // [sp+10h] [bp-Ch]
v2 = 0;
v3 = this;
do
{
if ( ((1 << v2) & a2) != 0 )
{
this = cocos2d::extension::CCControl::dispatchListforControlEvent((cocos2d::CCDictionary **)v3, 1 << v2);
if ( this )
{
v5 = *((cocos2d::CCObject ***)this + 13);
if ( *v5 )
{
v6 = (int)*v5 + 0x40000000;
v5 = (cocos2d::CCObject **)v5[3];
v7 = &v5[v6 - 1];
v8 = v5;
while ( v8 <= v7 )
{
v9 = *v8++;
this = v9;
if ( !v9 )
break;
this = (cocos2d::CCObject *)cocos2d::extension::CCInvocation::invoke(this, v3);
}
}
}
if ( *((_DWORD *)v3 + 63) )
{
this = (cocos2d::CCObject *)cocos2d::extension::CCControl::getHandleOfControlEvent(v3, a2, (int)v5);
v11 = this;
if ( this != (cocos2d::CCObject *)-1 )
{
v12 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(
(cocos2d::CCArray *)((char *)&dword_0 + 3),
v10);
v18[1] = 0;
v19 = nullptr;
v18[0] = 0;
v13 = v12;
v14 = (cocos2d::CCObject *)cocos2d::CCString::create(v18);
cocos2d::CCArray::addObject(v13, v14);
if ( (v18[0] & 1) != 0 )
operator delete(v19);
cocos2d::CCArray::addObject(v13, v3);
v15 = (cocos2d::CCObject *)operator new(0x38u);
cocos2d::CCObject::CCObject(v15);
*((_DWORD *)v15 + 13) = 1 << v2;
*(_DWORD *)v15 = &off_C8DBE0;
cocos2d::CCObject::autorelease(v15);
v16 = (cocos2d::CCScriptEngineManager *)cocos2d::CCArray::addObject(v13, v15);
v17 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager(v16);
this = (cocos2d::CCObject *)(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, cocos2d::CCArray *))(*(_DWORD *)*v17 + 76))(
*v17,
v11,
v13);
}
}
}
++v2;
}
while ( v2 != 9 );
return this;
}