//
// GameLevelManager::onDeleteUserMessagesCompleted from 0x3c1cec to 0x3c1db4 (200 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d7410
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GameLevelManager::onDeleteUserMessagesCompleted(GameLevelManager *a1, int a2, char **a3, int a4)
{
const char *v4; // r5
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r6
int SplitIntFromKey; // r6
int v9; // r5
_BOOL4 v10; // r9
UploadActionDelegate *m_uploadActionDelegate; // r0
bool v12; // r2
_DWORD v15[2]; // [sp+8h] [bp-8h] BYREF
v15[0] = a3;
v15[1] = a4;
v4 = *a3;
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
sub_776584((int)v15, *a3);
cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks);
sub_774008(v15);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v4, 1);
v9 = GameLevelManager::getSplitIntFromKey(a1, v4, 2);
sub_776584((int)v15, "-1");
v10 = sub_3BE0D8(a2, (int)v15);
sub_774008(v15);
m_uploadActionDelegate = a1->m_uploadActionDelegate;
if ( v10 )
{
if ( m_uploadActionDelegate )
((void (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))m_uploadActionDelegate->uploadActionFailed)(
m_uploadActionDelegate,
SplitIntFromKey,
39,
m_uploadActionDelegate->uploadActionFailed,
a1,
a2);
}
else
{
if ( m_uploadActionDelegate )
((void (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))m_uploadActionDelegate->uploadActionFinished)(
m_uploadActionDelegate,
SplitIntFromKey,
39,
m_uploadActionDelegate->uploadActionFinished,
a1,
a2);
v12 = v9;
if ( v9 )
v12 = 1;
if ( SplitIntFromKey == -1 )
GameLevelManager::invalidateMessages(a1, v12, 1);
else
GameLevelManager::messageWasRemoved(a1, SplitIntFromKey, v12);
}
}