//
// GameStatsManager::getChallengeKey from 0x40d80c to 0x40d846 (58 bytes)
//
// 2 xrefs:
// > GameStatsManager::hasCompletedChallenge @ 0x40d86a
// > GameStatsManager::completedChallenge @ 0x41c50a
//
// 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
//
GameStatsManager *__fastcall GameStatsManager::getChallengeKey(GameStatsManager *this, GJChallengeItem *a2, int a3)
{
cocos2d::CCString *v4; // r0
char *CString; // r0
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"c%i%i",
*(const char **)(a3 + 100),
*(_DWORD *)(a3 + 92),
_stack_chk_guard,
this,
a2,
a3);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)this, CString);
return this;
}