//
// GameLevelManager::getSavedLevel from 0x4ad6d4 to 0x4ad730 (92 bytes)
//
// 14 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x43078c
// > CommentCell::loadFromComment @ 0x433008
// > CommentCell::loadFromComment @ 0x43316c
// > CommentCell::loadFromComment @ 0x4338f4
// > GameLevelManager::getSavedLevel @ 0x4ad836
// > GameLevelManager::clearDeathDataInstances @ 0x4b2396
// > GameLevelManager::levelControlInstances @ 0x4b2506
// > GameLevelManager::onGetLevelSaveDataCompleted @ 0x4c1cd0
// > GameLevelManager::onLikeItemCompleted @ 0x4c35a2
// > GameLevelManager::onUploadDeathDataCompleted @ 0x4c6b28
// > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfc8a
// > GJLevelList::getListLevelsArray @ 0x4d5a86
// > GameLevelManager::onGetDeathDataCompleted @ 0x4d99f2
// > GameStatsManager::getTotalCollectedCurrency @ 0x518096
//
// 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:00 +0000
//
int __fastcall GameLevelManager::getSavedLevel(GameLevelManager *this, const char *a2)
{
int v2; // r6
const char *LevelKey; // r7
size_t v4; // r0
int v5; // r6
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 136);
memset(v7, 0, sizeof(v7));
LevelKey = (const char *)GameLevelManager::getLevelKey(this, a2);
v4 = strlen(LevelKey);
std::string::__init(v7, LevelKey, v4);
v5 = cocos2d::CCDictionary::objectForKey(v2, v7);
std::string::~string((int)v7);
return v5;
}