//
// GameManager::verifyStarUnlocks from 0x714b20 to 0x714b88 (104 bytes)
//
// 2 xrefs:
// > GameManager::dataLoaded @ 0x727da8
// > ??> @ 0x81b68
//
// 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:52:15 +0000
//
__int64 __fastcall GameManager::verifyStarUnlocks(__int64 this)
{
int v1; // w19
GameLevelManager *v2; // x0
int v3; // w1
GameStatsManager *MainLevel; // x20
GameStatsManager *v5; // x0
GameStatsManager *v6; // x0
v1 = 1;
do
{
while ( 1 )
{
v2 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
v3 = v1++;
MainLevel = (GameStatsManager *)GameLevelManager::getMainLevel(v2, v3, 0);
v5 = (GameStatsManager *)GameStatsManager::sharedState(MainLevel);
this = (unsigned __int8)GameStatsManager::hasCompletedLevel(v5, MainLevel);
if ( (_BYTE)this )
break;
if ( v1 == 23 )
return this;
}
v6 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)this);
this = GameStatsManager::completedStarLevel(v6, MainLevel);
}
while ( v1 != 23 );
return this;
}