//
// GameLevelManager::saveMapPack from 0x4ae800 to 0x4ae862 (98 bytes)
//
// 1 xrefs:
// > GameLevelManager::saveFetchedMapPacks @ 0x4ae888
//
// 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:50:01 +0000
//
int __fastcall GameLevelManager::saveMapPack(GameLevelManager *this, const char **a2, int a3, int a4)
{
int v5; // r7
const char *MapPackKey; // r0
const char *v7; // r8
size_t v8; // r0
GameLevelManager *v10; // [sp+0h] [bp-10h] BYREF
const char **v11; // [sp+4h] [bp-Ch]
int v12; // [sp+8h] [bp-8h]
int v13; // [sp+Ch] [bp-4h]
v10 = this;
v11 = a2;
v12 = a3;
v13 = a4;
v5 = *((_DWORD *)this + 184);
MapPackKey = (const char *)GameLevelManager::getMapPackKey(this, a2[67]);
v10 = nullptr;
v11 = nullptr;
v12 = 0;
v7 = MapPackKey;
v8 = strlen(MapPackKey);
std::string::__init((int *)&v10, v7, v8);
cocos2d::CCDictionary::setObject(v5, (cocos2d::CCObject *)a2);
return std::string::~string((int)&v10);
}