//
// sub_100264808 from 0x100264808 to 0x100264950 (328 bytes)
//
// 1 xrefs:
// > MessagesProfilePage::init @ 0x10026426c
//
// 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:01:40 +0000
//
__int64 __fastcall sub_100264808(__int64 a1)
{
__int64 v2; // x0
char *v3; // x1
__int64 StoredOnlineLevels; // x0
unsigned int *v5; // x8
__int64 v6; // x9
unsigned __int64 v7; // x8
unsigned __int64 v8; // x9
__int64 *v9; // x19
void *v11[2]; // [xsp+0h] [xbp-40h] BYREF
char v12; // [xsp+17h] [xbp-29h]
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v14; // [xsp+2Fh] [xbp-11h]
v2 = GameLevelManager::sharedState();
v3 = (char *)(a1 + 704);
if ( *(char *)(a1 + 727) < 0 )
v3 = *(char **)v3;
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( StoredOnlineLevels )
{
v5 = *(unsigned int **)(StoredOnlineLevels + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD *)v5 + 2);
v8 = v7 + 8 * v6 - 8;
while ( *(_QWORD *)v7 )
{
if ( (*(_BYTE *)(*(_QWORD *)v7 + 426LL) & 1) != 0 )
{
sub_100009900(v11, "Are you sure you want to delete the selected messages?");
v9 = (__int64 *)FLAlertLayer::create(a1 + 664, "Delete", v11, "Back", "Delete", 0, 380.0, 0.0, 1.0);
if ( v12 < 0 )
operator delete(v11[0]);
ButtonSprite::updateBGImage(v9[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v9 + 72))(v9, 1);
return (*(__int64 (__fastcall **)(__int64 *))(*v9 + 1312))(v9);
}
v7 += 8LL;
if ( v7 > v8 )
break;
}
}
}
sub_100009900(__p, "No messages selected.");
v9 = (__int64 *)sub_10034A8F8(0, "Nothing here...", __p, "OK", 0);
if ( v14 < 0 )
operator delete(__p[0]);
return (*(__int64 (__fastcall **)(__int64 *))(*v9 + 1312))(v9);
}