//
// LevelPickerPopup::cellPerformedAction from 0x100506c30 to 0x100506cc4 (148 bytes)
//
// 2 xrefs:
// > sub_100506CC4 @ 0x100506cc8
// > ??> @ 0x100997938
//
// 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 11:06:57 +0000
//
__int64 __fastcall LevelPickerPopup::cellPerformedAction(_QWORD *a1, __int64 a2, int a3, int a4)
{
void (***v5)(void); // x0
void (*v6)(void); // x8
__int64 v8; // x0
if ( a4 != 1 )
return 0;
if ( a3 == 39 )
{
if ( !*(_QWORD *)(a2 + 552) )
goto LABEL_12;
v8 = a1[99];
if ( !v8 )
goto LABEL_12;
v6 = *(void (**)(void))(*(_QWORD *)v8 + 8LL);
goto LABEL_11;
}
if ( a3 == 37 )
{
if ( !*(_QWORD *)(a2 + 560) )
goto LABEL_12;
v5 = (void (***)(void))a1[99];
if ( !v5 )
goto LABEL_12;
v6 = **v5;
LABEL_11:
v6();
LABEL_12:
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1360LL))(a1, 0);
return 1;
}
return 0;
}