//
// GameLevelManager::onUnblockUserCompleted from 0x3c29dc to 0x3c2a90 (180 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d7388
//
// 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::onUnblockUserCompleted(GameLevelManager *a1, int a2, char **a3, int a4)
{
const char *v4; // r5
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r10
intptr_t SplitIntFromKey; // r5
_BOOL4 v9; // r8
UploadActionDelegate *m_uploadActionDelegate; // r0
_DWORD v13[2]; // [sp+8h] [bp-8h] BYREF
v13[0] = a3;
v13[1] = a4;
v4 = *a3;
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
sub_776584((int)v13, *a3);
cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks);
sub_774008(v13);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v4, 1);
sub_776584((int)v13, "-1");
v9 = sub_3BE0D8(a2, (int)v13);
sub_774008(v13);
m_uploadActionDelegate = a1->m_uploadActionDelegate;
if ( v9 )
{
if ( m_uploadActionDelegate )
((void (__fastcall *)(UploadActionDelegate *, intptr_t, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))m_uploadActionDelegate->uploadActionFailed)(
m_uploadActionDelegate,
SplitIntFromKey,
35,
m_uploadActionDelegate->uploadActionFailed,
a1,
a2);
}
else
{
if ( m_uploadActionDelegate )
((void (__fastcall *)(UploadActionDelegate *, intptr_t, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))m_uploadActionDelegate->uploadActionFinished)(
m_uploadActionDelegate,
SplitIntFromKey,
35,
m_uploadActionDelegate->uploadActionFinished,
a1,
a2);
cocos2d::CCDictionary::removeObjectForKey(a1->m_storedUserInfo, SplitIntFromKey);
GameLevelManager::removeUserFromList(a1, SplitIntFromKey, Blocked);
}
}