//
// GameLevelManager::onSetLevelStarsCompleted from 0x80da64 to 0x80dbc8 (356 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b9d8
// > ??> @ 0x6a2e8
//
// 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::onSetLevelStarsCompleted(GameLevelManager *a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x24
unsigned int SplitIntFromKey; // w24
_BOOL4 v9; // w19
__int64 v10; // x0
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v12 = 0;
v13 = 0;
v14 = nullptr;
v6 = strlen(v5);
v7 = *((_QWORD *)a1 + 136);
std::string::__init(&v12, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1u);
v12 = 0;
v13 = 0;
v14 = nullptr;
std::string::__init(&v12, &word_117CE08, 2u);
v9 = sub_7FEA60(a2, (__int64)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
v10 = *((_QWORD *)a1 + 170);
if ( v9 )
{
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v10 + 8LL))(v10, SplitIntFromKey, 8);
}
else if ( v10 )
{
(**(void (__fastcall ***)(__int64, _QWORD, __int64))v10)(v10, SplitIntFromKey, 8);
}
return _stack_chk_guard;
}