//
// LevelInfoLayer::cellPerformedAction from 0x7e6704 to 0x7e6888 (388 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::cellPerformedAction @ 0x7e688c
// > ??> @ 0xa96c0
// > ??> @ 0x143c0d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:29 +0000
//
bool __fastcall LevelInfoLayer::cellPerformedAction(__int64 a1, __int64 a2, int a3, int a4, __int64 a5)
{
_BOOL4 v5; // w19
GJGameLevel *v6; // x2
cocos2d::CCDirector *v7; // x0
__int64 *v8; // x21
__int64 v9; // x3
void (__fastcall *v10)(__int64 *, __int64, __int64); // x24
__int64 v11; // x0
__int64 v14[2]; // [xsp+58h] [xbp+58h] BYREF
void *v15; // [xsp+68h] [xbp+68h]
__int64 v16[2]; // [xsp+70h] [xbp+70h] BYREF
void *v17; // [xsp+80h] [xbp+80h]
v5 = a3 == 28 && a4 == 1;
if ( a3 == 28 && a4 == 1 )
{
v6 = *(GJGameLevel **)(a1 + 504);
if ( v6 )
{
v7 = (cocos2d::CCDirector *)GJLevelList::addLevelToList(*(GJLevelList **)(a2 + 552), v6);
if ( a5 )
v7 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a5 + 1328LL))(a5, 0);
v8 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v7) + 272);
v9 = *v8;
v14[0] = 0;
v14[1] = 0;
v10 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v9 + 464);
v15 = nullptr;
std::string::__init(v14, "Added to Level List", 0x13u);
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
std::string::__init(v16, &byte_11B8890, 0);
v11 = TextAlertPopup::create(v14, 255, v16, 1.0, 0.5);
v10(v8, v11, 115);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
}
else
{
return 0;
}
}
return v5;
}