//
// GameStatsManager::uncompleteLevel from 0x8df0b8 to 0x8df234 (380 bytes)
//
// 2 xrefs:
// > GameLevelManager::verifyLevelState @ 0x80672c
// > ??> @ 0x762b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:56:49 +0000
//
__int64 __fastcall GameStatsManager::uncompleteLevel(GameStatsManager *this, GJGameLevel *a2)
{
size_t v4; // x0
__int64 v5; // x23
size_t v6; // x0
__int64 v7; // x19
char *StarLevelKey; // [xsp+48h] [xbp+48h]
char *DemonLevelKey; // [xsp+48h] [xbp+48h]
unsigned __int64 v11[3]; // [xsp+50h] [xbp+50h] BYREF
__int64 v12[2]; // [xsp+68h] [xbp+68h] BYREF
void *v13; // [xsp+78h] [xbp+78h]
__int64 v14[2]; // [xsp+80h] [xbp+80h] BYREF
void *v15; // [xsp+90h] [xbp+90h]
GameStatsManager::getLevelKey(a2, v11);
cocos2d::CCDictionary::removeObjectForKey(*((_QWORD *)this + 76), v11);
StarLevelKey = (char *)GameStatsManager::getStarLevelKey(this, a2);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
v4 = strlen(StarLevelKey);
v5 = *((_QWORD *)this + 76);
std::string::__init(v12, StarLevelKey, v4);
cocos2d::CCDictionary::removeObjectForKey(v5, v12);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
DemonLevelKey = (char *)GameStatsManager::getDemonLevelKey(this, a2);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v6 = strlen(DemonLevelKey);
v7 = *((_QWORD *)this + 76);
std::string::__init(v14, DemonLevelKey, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, v14);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
if ( (v11[0] & 1) != 0 )
operator delete((void *)v11[2]);
return _stack_chk_guard;
}