//
// LevelInfoLayer::cellPerformedAction from 0x3b0834 to 0x3b08ec (184 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::cellPerformedAction @ 0x3b08fc
//
// 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 LevelInfoLayer::cellPerformedAction(
LevelInfoLayer *a1,
TableViewCell *a2,
int a3,
CellAction a4,
cocos2d::CCNode *a5)
{
GJGameLevel *m_level; // r3
cocos2d::CCScene *m_pRunningScene; // r7
void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // r8
cocos2d::CCNode *v8; // r0
char v10; // [sp+14h] [bp-Ch] BYREF
char v11[4]; // [sp+18h] [bp-8h] BYREF
if ( a3 != 30 || a4 != Click )
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 *, _DWORD))a5->__vftable[1].isIgnoreAnchorPointForPosition)(a5, 0);
m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
addChild_0 = m_pRunningScene->addChild_0;
sub_776584((int)&v10, "Added to Level List");
sub_776584((int)v11, (char *)&unk_939830);
v8 = (cocos2d::CCNode *)TextAlertPopup::create(
(TextAlertPopup *)&v10,
(std::string)1065353216,
0.5,
COERCE_FLOAT(255),
(int)v11);
addChild_0(m_pRunningScene, v8, 115);
sub_774008(v11);
sub_774008(&v10);
return 1;
}