//
// GameStatsManager::setStarsForMapPack from 0x51715c to 0x5171cc (112 bytes)
//
// 3 xrefs:
// > GameManager::recountUserStats @ 0x41bd02
// > GameStatsManager::completedMapPack @ 0x52a13a
// > GJAccountManager::onSyncAccountCompleted @ 0x582b44
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:43 +0000
//
int __fastcall GameStatsManager::setStarsForMapPack(GameStatsManager *this, const char *a2, const char *a3, int a4)
{
int v6; // r7
cocos2d::CCObject *v7; // r6
const char *MapPackKey; // r8
size_t v9; // r0
GameStatsManager *v11; // [sp+0h] [bp-10h] BYREF
const char *v12; // [sp+4h] [bp-Ch]
const char *v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = this;
v12 = a2;
v13 = a3;
v14 = a4;
v6 = *((_DWORD *)this + 117);
v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
v11 = nullptr;
v12 = nullptr;
v13 = nullptr;
MapPackKey = (const char *)GameStatsManager::getMapPackKey(this, a2);
v9 = strlen(MapPackKey);
std::string::__init((int *)&v11, MapPackKey, v9);
cocos2d::CCDictionary::setObject(v6, v7);
return std::string::~string((int)&v11);
}