//
// LevelPickerPopup::cellPerformedAction from 0xc640f4 to 0xc64194 (160 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelPickerPopup::cellPerformedAction @ 0xc64198
// > ??> @ 0xeeb28
// > ??> @ 0x14eead8
//
// 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 13:05:24 +0000
//
__int64 __fastcall LevelPickerPopup::cellPerformedAction(_QWORD *a1, __int64 a2, int a3, int a4)
{
__int64 v6; // x0
void (__fastcall ***v7)(_QWORD); // x0
if ( a4 != 1 )
return 0;
if ( a3 == 37 )
{
if ( *(_QWORD *)(a2 + 560) )
{
v7 = (void (__fastcall ***)(_QWORD))a1[99];
if ( v7 )
(**v7)(v7);
}
}
else
{
if ( a3 != 39 )
return 0;
if ( *(_QWORD *)(a2 + 552) )
{
v6 = a1[99];
if ( v6 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 8LL))(v6);
}
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1360LL))(a1, 0);
return 1;
}