// // cocos2d::extension::CCControl::sendActionsForControlEvents from 0xa99efc to 0xa9a190 (660 bytes) // // 11 xrefs: // > @ 0x44358 // > @ 0x11f4a88 // > @ 0x11f51e8 // > @ 0x11f5998 // > @ 0x11f6088 // > @ 0x11f6788 // > @ 0x11f6e88 // > @ 0x11f7bb8 // > @ 0x11f8868 // > @ 0x11f8f48 // > @ 0x11fa7f8 // // 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 // void cocos2d::extension::CCControl::sendActionsForControlEvents(cocos2d::extension::CCControl *a1, unsigned int a2) { int v4; // w19 unsigned int v5; // w21 cocos2d::CCObject *v6; // x0 cocos2d::CCObject_vtbl *v7; // x1 cocos2d::extension::CCInvocation **v8; // x27 __int64 v9; // x0 char *v10; // x26 cocos2d::extension::CCInvocation *v11; // x0 unsigned int v12; // w1 unsigned int HandleOfControlEvent; // w28 cocos2d::CCArray *v14; // x27 const std::string *v15; // x1 cocos2d::CCObject *v16; // x0 void *v17; // x0 __int64 v18; // x26 cocos2d::CCScriptEngineManager *v19; // x0 unsigned int *v20; // x2 int v21; // w1 __int64 v22; // [xsp+90h] [xbp+90h] BYREF v4 = 0; do { while ( 1 ) { v5 = 1 << v4; if ( ((1 << v4) & a2) != 0 ) { v6 = cocos2d::extension::CCControl::dispatchListforControlEvent(a1, v5); if ( v6 ) { v7 = v6[1].__vftable; if ( LODWORD(v7->copyWithZone) ) { v8 = (cocos2d::extension::CCInvocation **)v7->~CCObject_0; v9 = 8LL * LODWORD(v7->copyWithZone) - 8; v10 = (char *)v8 + v9; if ( v8 <= (cocos2d::extension::CCInvocation **)((char *)v8 + v9) ) { do { v11 = *v8; if ( !*v8 ) break; ++v8; cocos2d::extension::CCInvocation::invoke(v11, a1); } while ( v10 >= (char *)v8 ); } } } if ( a1->m_eScriptType ) { HandleOfControlEvent = cocos2d::extension::CCControl::getHandleOfControlEvent(a1, a2); if ( HandleOfControlEvent != -1 ) break; } } if ( ++v4 == 9 ) return; } v14 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)((char *)&dword_0 + 3), v12); sub_D153B8((int)&v22, &byte_F288A0); v16 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v22, v15); cocos2d::CCArray::addObject(v14, v16); v17 = (void *)(v22 - 24); if ( (__int64 *)(v22 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v22 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v22 - 8); *(_DWORD *)(v22 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v17); } cocos2d::CCArray::addObject(v14, a1); v18 = operator new(0x40u); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v18); ++v4; *(_DWORD *)(v18 + 56) = v5; *(_QWORD *)v18 = &off_1148430; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v18); cocos2d::CCArray::addObject(v14, (cocos2d::CCObject *)v18); v19 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, _QWORD, cocos2d::CCArray *))(**(_QWORD **)v19 + 152LL))( *(_QWORD *)v19, HandleOfControlEvent, v14); } while ( v4 != 9 ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source