//
// GameLevelManager::onSetLevelStarsCompleted from 0x3c1c48 to 0x3c1ce2 (154 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d70e0
//
// 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
//
int __fastcall GameLevelManager::onSetLevelStarsCompleted(GameLevelManager *a1, int a2, char **a3, int a4)
{
const char *v4; // r7
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r10
int SplitIntFromKey; // r7
_BOOL4 v9; // r8
int result; // r0
_DWORD v11[2]; // [sp+8h] [bp-8h] BYREF
v11[0] = a3;
v11[1] = a4;
v4 = *a3;
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
sub_776584((int)v11, *a3);
cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks);
sub_774008(v11);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v4, 1);
sub_776584((int)v11, "-1");
v9 = sub_3BE0D8(a2, (int)v11);
sub_774008(v11);
result = (int)a1->m_uploadActionDelegate;
if ( v9 )
{
if ( result )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 4))(result, SplitIntFromKey);
}
else if ( result )
{
return (**(int (__fastcall ***)(int, int))result)(result, SplitIntFromKey);
}
return result;
}