//
// GameLevelManager::onSuggestLevelStarsCompleted from 0x3c1a5c to 0x3c1b26 (202 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x3d74fe
//
// 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::onSuggestLevelStarsCompleted(GameLevelManager *a1, int a2, char **a3, int a4)
{
const char *v4; // r7
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r9
int SplitIntFromKey; // r7
_BOOL4 v9; // r9
_BOOL4 v10; // r8
GameManager *v11; // r0
int result; // 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);
if ( v9 )
goto LABEL_4;
sub_776584((int)v13, "-2");
v10 = sub_3BE0D8(a2, (int)v13);
sub_774008(v13);
if ( v10 )
{
v11 = GameManager::sharedState();
GameManager::setHasRatingPower(v11, 0);
LABEL_4:
result = (int)a1->m_uploadActionDelegate;
if ( result )
return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 4))(result, SplitIntFromKey);
return result;
}
result = (int)a1->m_uploadActionDelegate;
if ( result )
return (**(int (__fastcall ***)(int, int))result)(result, SplitIntFromKey);
return result;
}