//
// GameStatsManager::markLevelAsCompletedAndClaimed from 0x523e8c to 0x523f5c (208 bytes)
//
// 1 xrefs:
// > GameManager::recountUserStats @ 0x41bc4a
//
// 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:51:53 +0000
//
int __fastcall GameStatsManager::markLevelAsCompletedAndClaimed(GameStatsManager *this, GJGameLevel *a2)
{
const char *StarLevelKey; // r11
size_t v5; // r0
int v6; // r10
cocos2d::CCObject *v7; // r9
const char *DemonLevelKey; // r9
size_t v9; // r0
int v10; // r8
cocos2d::CCObject *v11; // r5
_BYTE v13[12]; // [sp+0h] [bp+0h] BYREF
int v14[3]; // [sp+Ch] [bp+Ch] BYREF
int v15[3]; // [sp+18h] [bp+18h] BYREF
GameStatsManager::getLevelKey((GameStatsManager *)v13, this, (int)a2);
cocos2d::CCDictionary::setObject(*((_DWORD *)this + 103), *((cocos2d::CCObject **)this + 66));
StarLevelKey = (const char *)GameStatsManager::getStarLevelKey(this, a2);
memset(v14, 0, sizeof(v14));
v5 = strlen(StarLevelKey);
v6 = *((_DWORD *)this + 103);
v7 = *((cocos2d::CCObject **)this + 66);
std::string::__init(v14, StarLevelKey, v5);
cocos2d::CCDictionary::setObject(v6, v7);
std::string::~string((int)v14);
DemonLevelKey = (const char *)GameStatsManager::getDemonLevelKey(this, a2);
memset(v15, 0, sizeof(v15));
v9 = strlen(DemonLevelKey);
v10 = *((_DWORD *)this + 103);
v11 = *((cocos2d::CCObject **)this + 66);
std::string::__init(v15, DemonLevelKey, v9);
cocos2d::CCDictionary::setObject(v10, v11);
std::string::~string((int)v15);
return std::string::~string((int)v13);
}