//
// LevelBrowserLayer::onProcessSelected from 0x100497250 to 0x100497390 (320 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100495bac
//
// 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:05:56 +0000
//
void __fastcall LevelBrowserLayer::onProcessSelected(__int64 a1, __int64 a2)
{
__int64 v2; // x8
unsigned int *v3; // x8
__int64 v4; // x9
int v7; // w21
unsigned __int64 v8; // x8
unsigned __int64 v9; // x9
void *v10; // x0
char *CString; // x0
__int64 *v12; // x20
__int64 v13; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v15; // [xsp+1Fh] [xbp-21h]
v2 = *(_QWORD *)(a1 + 656);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v7 = 0;
v8 = *((_QWORD *)v3 + 2);
v9 = v8 + 8 * v4 - 8;
do
{
if ( !*(_QWORD *)v8 )
break;
v7 += *(unsigned __int8 *)(*(_QWORD *)v8 + 771LL);
v8 += 8LL;
}
while ( v8 <= v9 );
if ( v7 >= 1 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
{
v10 = sub_1003065B0("Are you sure you want to delete the %i selected levels?", v7);
CString = (char *)cocos2d::CCString::getCString((__int64)v10);
sub_100009900(__p, CString);
v12 = (__int64 *)FLAlertLayer::create(
a1 + 552,
(__int64)"Delete",
(__int64)__p,
(__int64)"Back",
(__int64)"Delete",
0,
380.0,
0.0,
1.0);
if ( v15 < 0 )
operator delete(__p[0]);
if ( v12 )
{
ButtonSprite::updateBGImage(v12[77], (__int64)"GJ_button_06.png");
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
(*(void (__fastcall **)(__int64 *, __int64))(*v12 + 72))(v12, v13);
(*(void (__fastcall **)(__int64 *))(*v12 + 1312))(v12);
}
}
}
}
}