//
// LevelInfoLayer::cellPerformedAction from 0x1002c2ab0 to 0x1002c2b8b (219 bytes)
//
// 2 xrefs:
// > sub_1002C2BB0 @ 0x1002c2bbc
// > ??> @ 0x100906ca0
//
// 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
//
bool __fastcall LevelInfoLayer::cellPerformedAction(
LevelInfoLayer *a1,
TableViewCell *a2,
int a3,
CellAction a4,
cocos2d::CCNode *a5)
{
GJGameLevel *m_level; // rax
cocos2d::CCScene *m_pRunningScene; // rbx
cocos2d::CCObject *v8; // rax
bool v9; // bl
__int128 v11; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
void *v13[4]; // [rsp+20h] [rbp-20h] BYREF
if ( a3 ^ 0x1E | a4 ^ 1 )
return 0;
m_level = a1->m_level;
if ( !m_level )
return 0;
GJLevelList::addLevelToList(
(GJLevelList *)a2[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable,
m_level);
if ( a5 )
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a5->__vftable[1].isIgnoreAnchorPointForPosition)(a5, 0);
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
strcpy((char *)v13, "&Added to Level List");
LOWORD(v11) = 0;
v8 = TextAlertPopup::create((__int64)v13, 0xFFu, &v11, (__m128)0x3F800000u, 0.5);
((void (__fastcall *)(cocos2d::CCScene *, cocos2d::CCObject *, __int64))m_pRunningScene->addChild_0)(
m_pRunningScene,
v8,
115);
if ( (v11 & 1) != 0 )
operator delete(__p);
v9 = 1;
if ( ((__int64)v13[0] & 1) != 0 )
operator delete(v13[2]);
return v9;
}