//
// GameLevelManager::onDeleteUserMessagesCompleted from 0x80dbc8 to 0x80dd74 (428 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b858
// > ??> @ 0xe5a38
//
// 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 12:54:48 +0000
//
__int64 __fastcall GameLevelManager::onDeleteUserMessagesCompleted(GameLevelManager *a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x23
unsigned int SplitIntFromKey; // w23
int v9; // w25
_BOOL4 v10; // w19
__int64 v11; // x0
unsigned __int8 v13; // w2
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
__int64 v15; // [xsp+58h] [xbp+58h]
void *v16; // [xsp+60h] [xbp+60h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v14 = 0;
v15 = 0;
v16 = nullptr;
v6 = strlen(v5);
v7 = *((_QWORD *)a1 + 136);
std::string::__init(&v14, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v14);
if ( (v14 & 1) != 0 )
operator delete(v16);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1u);
v9 = GameLevelManager::getSplitIntFromKey(a1, v5, 2u);
v14 = 0;
v15 = 0;
v16 = nullptr;
std::string::__init(&v14, &word_117CE08, 2u);
v10 = sub_7FEA60(a2, (__int64)&v14);
if ( (v14 & 1) != 0 )
operator delete(v16);
v11 = *((_QWORD *)a1 + 170);
if ( v10 )
{
if ( v11 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v11 + 8LL))(v11, SplitIntFromKey, 45);
}
else
{
if ( v11 )
(**(void (__fastcall ***)(__int64, _QWORD, __int64))v11)(v11, SplitIntFromKey, 45);
v13 = v9 != 0;
if ( SplitIntFromKey == -1 )
GameLevelManager::invalidateMessages(a1, v13, 1u);
else
GameLevelManager::messageWasRemoved(a1, SplitIntFromKey, v13);
}
return _stack_chk_guard;
}