//
// LevelBrowserLayer::cellPerformedAction from 0x1402cfd30 to 0x1402cfdcc (156 bytes)
//
// 2 xrefs:
// > ??> @ 0x140585210
// > ??> @ 0x1406d2e4c
//
// 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 LevelBrowserLayer::cellPerformedAction(
LevelBrowserLayer *a1,
TableViewCell *a2,
int a3,
CellAction a4,
cocos2d::CCNode *a5)
{
SetupSmartTemplateLayer *v7; // rax
cocos2d::CCArray *m_pChildren; // r11
if ( a3 == 22 )
{
if ( a4 == Click )
{
CustomListView::reloadAll(*(CustomListView **)(*(_QWORD *)&a1->m_uIndexInArray + 544LL));
return 0;
}
if ( a4 != Edit )
return 0;
(*((void (__fastcall **)(void **, _QWORD))a1[-1].m_pUserData + 130))(&a1[-1].m_pUserData, 0);
HIDWORD(a2[1].getPosition_0) = 0;
v7 = SetupSmartTemplateLayer::create((GJSmartTemplate *)a2[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable);
v7->show(v7);
return 1;
}
else
{
m_pChildren = a1->m_pChildren;
if ( !m_pChildren )
return 0;
return ((bool (__fastcall *)(cocos2d::CCArray *, TableViewCell *, int, CellAction, void **))m_pChildren->copyWithZone)(
a1->m_pChildren,
a2,
a3,
a4,
&a1[-1].m_pUserData);
}
}