//
// GameLevelManager::createAndGetMapPacks from 0x3c9e14 to 0x3c9eca (182 bytes)
//
// 3 xrefs:
// > GameLevelManager::onGetMapPacksCompleted @ 0x3c9fba
// > GameLevelManager::onGetGauntletsCompleted @ 0x3ca2b2
// > GJAccountManager::onSyncAccountCompleted @ 0x464b28
//
// 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::CCArray *__fastcall GameLevelManager::createAndGetMapPacks(
cocos2d::CCArray *a1,
char **a2,
char *a3,
char *a4)
{
cocos2d::CCArray *v5; // r8
cocos2d::CCArray *v6; // r9
unsigned int i; // r6
cocos2d::CCString *v8; // r0
char *CString; // r0
GJMapPack *v10; // r10
char **v12; // [sp+4h] [bp-Ch] BYREF
char *v13[2]; // [sp+8h] [bp-8h] BYREF
v12 = a2;
v13[0] = a3;
v13[1] = a4;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
sub_776584((int)v13, *a2);
v6 = sub_3BE530((cocos2d::CCArray *)v13, "|");
sub_774008(v13);
for ( i = 0; i < cocos2d::CCArray::count(v6); ++i )
{
v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, i);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_776584((int)&v12, CString);
sub_775C20(v13, &v12);
GameLevelManager::responseToDict(v13, 0);
v10 = GJMapPack::create();
sub_774008(v13);
if ( v10 )
cocos2d::CCArray::addObject(v5, v10);
sub_774008(&v12);
}
return v5;
}