//
// GameLevelManager::messageWasRemoved from 0x4aed60 to 0x4aee38 (216 bytes)
//
// 1 xrefs:
// > GameLevelManager::onDeleteUserMessagesCompleted @ 0x4c22d0
//
// 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:50:01 +0000
//
unsigned int __fastcall GameLevelManager::messageWasRemoved(GameLevelManager *this, int a2, const char *a3)
{
int v6; // r9
const char *MessagesKey; // r8
unsigned int result; // r0
cocos2d::CCArray *v9; // r4
int v10; // r3
unsigned int i; // r6
int v12; // r6
cocos2d::CCDictionary *v13; // r3
size_t v14; // r0
cocos2d::CCDictionary *v15; // [sp+4h] [bp-18h]
int v16[3]; // [sp+8h] [bp-14h] BYREF
v6 = 0;
do
{
MessagesKey = (const char *)GameLevelManager::getMessagesKey(this, a3, v6);
result = GameLevelManager::getStoredOnlineLevels(this, MessagesKey);
v9 = (cocos2d::CCArray *)result;
if ( result )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(v9);
if ( i >= result )
break;
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v9, i) + 264) == a2 )
{
result = cocos2d::CCArray::removeObjectAtIndex(v9, i, 1);
v10 = 1;
goto LABEL_8;
}
}
v10 = 0;
v12 = 1;
}
else
{
v10 = 0;
LABEL_8:
v12 = 0;
}
++v6;
if ( v10 )
{
result = *((_DWORD *)this + 225);
if ( result )
{
(**(void (__fastcall ***)(unsigned int, cocos2d::CCArray *, const char *))result)(result, v9, MessagesKey);
result = cocos2d::CCArray::count(v9);
if ( !result )
{
v13 = *((cocos2d::CCDictionary **)this + 181);
memset(v16, 0, sizeof(v16));
v15 = v13;
v14 = strlen(MessagesKey);
std::string::__init(v16, MessagesKey, v14);
cocos2d::CCDictionary::removeObjectForKey(v15);
result = std::string::~string((int)v16);
}
}
}
}
while ( v12 );
return result;
}