//
// ProfilePage::commentDeleteFailed from 0x100231204 to 0x100231310 (268 bytes)
//
// 2 xrefs:
// > sub_10023132C @ 0x100231330
// > ??> @ 0x1008ff728
//
// 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:17 +0000
//
void __fastcall ProfilePage::commentDeleteFailed(__int64 a1, int a2, int a3)
{
__int64 v6; // x0
__int64 v7; // x21
__int64 v8; // x0
char *v9; // x1
__int64 StoredOnlineLevels; // x0
__int64 v11; // x21
__int64 v12; // x22
__int64 v13; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v15; // [xsp+1Fh] [xbp-21h]
v6 = GJAccountManager::sharedState(a1);
if ( *(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356) == a2 )
{
sub_100009900(__p, "Comment delete failed. Please try again later.");
v7 = sub_10034A8F8(0, "Failed", __p, "OK", 0);
if ( v15 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
v8 = GameLevelManager::sharedState();
v9 = (char *)(a1 + 744);
if ( *(char *)(a1 + 767) < 0 )
v9 = *(char **)v9;
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v8, v9);
if ( StoredOnlineLevels )
{
v11 = StoredOnlineLevels;
if ( (unsigned int)sub_1002E757C(StoredOnlineLevels) )
{
v12 = 0;
while ( 1 )
{
v13 = sub_1002E75A0(v11, v12);
if ( *(_DWORD *)(v13 + 368) == a3 )
break;
v12 = (unsigned int)(v12 + 1);
if ( (unsigned int)v12 >= (unsigned int)sub_1002E757C(v11) )
return;
}
*(_BYTE *)(v13 + 416) = 0;
ProfilePage::loadPage((int *)a1, *(_DWORD *)(a1 + 860));
}
}
}
}