//
// ProfilePage::commentDeleteFailed from 0x5fb658 to 0x5fb724 (204 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ProfilePage::commentDeleteFailed @ 0x5fb738
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:35 +0000
//
unsigned int __fastcall ProfilePage::commentDeleteFailed(ProfilePage *this, int a2, int a3)
{
unsigned int result; // r0
int *v7; // r4
GameLevelManager *v8; // r0
GameLevelManager *v9; // r0
const char *v10; // r1
cocos2d::CCArray *v11; // r5
unsigned int i; // r4
int v13; // r0
int v14; // r2
int v15[3]; // [sp+8h] [bp-10h] BYREF
result = GJAccountManager::sharedState(this);
if ( a2 == *(_DWORD *)(result + 280) - *(_DWORD *)(result + 284) )
{
memset(v15, 0, sizeof(v15));
std::string::__init(v15, "Comment delete failed. Please try again later.", 0x2Eu);
v7 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Failed", (int)v15, (ButtonSprite *)"OK", nullptr);
std::string::~string((int)v15);
v8 = (GameLevelManager *)(*(int (__fastcall **)(int *))(*v7 + 656))(v7);
v9 = (GameLevelManager *)GameLevelManager::sharedState(v8);
v10 = (*((_BYTE *)this + 564) & 1) != 0 ? *((const char **)this + 143) : (char *)this + 565;
result = GameLevelManager::getStoredOnlineLevels(v9, v10);
v11 = (cocos2d::CCArray *)result;
if ( result )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(v11);
if ( i >= result )
break;
v13 = cocos2d::CCArray::objectAtIndex(v11, i);
if ( *(_DWORD *)(v13 + 288) == a3 )
{
*(_BYTE *)(v13 + 324) = 0;
return ProfilePage::loadPage(this, *((_DWORD *)this + 157), v14, 0);
}
}
}
}
return result;
}