//
// GameStatsManager::getStarLevelKey from 0x1003ce98c to 0x1003cea08 (124 bytes)
//
// 4 xrefs:
// > sub_1003CEC70 @ 0x1003cec84
// > sub_1003CEEC0 @ 0x1003ceef8
// > sub_1003CEFD0 @ 0x1003cf008
// > sub_1003CF0E8 @ 0x1003cf11c
//
// 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 11:04:10 +0000
//
__int64 __fastcall GameStatsManager::getStarLevelKey(__int64 a1, __int64 a2)
{
void *v2; // x0
if ( *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924) < 1 )
{
if ( *(_BYTE *)(a2 + 649) == 1 )
v2 = sub_1003065B0("gstar_%i");
else
v2 = sub_1003065B0("star_%i");
}
else
{
v2 = sub_1003065B0("%s%i");
}
return cocos2d::CCString::getCString((__int64)v2);
}