//
// GameStatsManager::storeSecondaryQueuedChallenge from 0x517850 to 0x5178ba (106 bytes)
//
// 1 xrefs:
// > GameLevelManager::onGetGJChallengesCompleted @ 0x4ca1dc
//
// 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:43 +0000
//
int __fastcall GameStatsManager::storeSecondaryQueuedChallenge(
GameStatsManager *this,
int a2,
GJChallengeItem *a3,
int a4)
{
int v5; // r7
cocos2d::CCString *v6; // r0
const char *CString; // r8
size_t v8; // r0
GameStatsManager *v10; // [sp+0h] [bp-10h] BYREF
int v11; // [sp+4h] [bp-Ch]
GJChallengeItem *v12; // [sp+8h] [bp-8h]
int v13; // [sp+Ch] [bp-4h]
v10 = this;
v11 = a2;
v12 = a3;
v13 = a4;
*((_DWORD *)a3 + 25) = a2;
v5 = *((_DWORD *)this + 89);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(a2 + 100));
v10 = nullptr;
v11 = 0;
v12 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = strlen(CString);
std::string::__init((int *)&v10, CString, v8);
cocos2d::CCDictionary::setObject(v5, a3);
return std::string::~string((int)&v10);
}