//
// LevelTools::createStarPackDict from 0x32c634 to 0x32c746 (274 bytes)
//
// 1 xrefs:
// > GameManager::recountUserStats @ 0x32828a
//
// 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
//
cocos2d::CCDictionary *LevelTools::createStarPackDict()
{
cocos2d::CCDictionary *v0; // r10
cocos2d::CCArray *v1; // r0
cocos2d::CCArray *v2; // r6
int v3; // r7
int v4; // r5
const std::string *v5; // r1
cocos2d::CCObject *v6; // r0
unsigned int v7; // r4
unsigned int v8; // r5
cocos2d::CCString *v9; // r0
intptr_t v10; // r7
cocos2d::CCString *v11; // r0
int v13; // [sp+0h] [bp-24h]
int v14; // [sp+10h] [bp-14h] BYREF
char *v15; // [sp+14h] [bp-10h] BYREF
char v16; // [sp+18h] [bp-Ch] BYREF
v0 = cocos2d::CCDictionary::create();
v1 = (cocos2d::CCArray *)sub_776584(
(int)&v14,
"1,3,2,4,3,4,5,5,6,6,7,6,8,7,9,8,10,8,11,9,19,10,20,10,21,10,22,10,26,10,27,10,28,10,29,10,3"
"0,10,31,10,32,4,33,5,34,6,35,8,36,8,37,5,38,5,39,6,40,7,41,8,42,8,43,8,44,9,45,6,46,10,47,1"
"0,48,10,49,10,50,10,52,4,53,3,54,4,55,4,56,5,57,6,58,7,59,8,60,8,61,8,62,9,63,9,64,10,65,10,66,10");
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(v1);
v3 = sub_774A78((int)&v14, ",");
v4 = 0;
v13 = *(_DWORD *)(v14 - 12);
while ( 1 )
{
sub_776158(&v15, &v14, v4, v3 - v4);
if ( *((_DWORD *)v15 - 3) || v4 != v13 )
{
sub_776584((int)&v16, v15);
v6 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v16, v5);
cocos2d::CCArray::addObject(v2, v6);
sub_774008(&v16);
}
if ( v3 == -1 )
break;
v4 = v3 + 1;
v3 = sub_774A78((int)&v14, ",");
sub_774008(&v15);
}
sub_774008(&v15);
sub_774008(&v14);
v7 = 0;
while ( 1 )
{
v8 = v7 + 1;
if ( v7 + 1 >= cocos2d::CCArray::count(v2) )
break;
v9 = cocos2d::CCArray::stringAtIndex(v2, v7);
v7 += 2;
v10 = cocos2d::CCString::intValue(v9);
v11 = cocos2d::CCArray::stringAtIndex(v2, v8);
cocos2d::CCDictionary::setObject(v0, v11, v10);
}
return v0;
}