//
// GameStatsManager::unlockGauntlet from 0x5242c0 to 0x524356 (150 bytes)
//
// 1 xrefs:
// > GameManager::rewardedVideoHidden @ 0x415736
//
// 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::unlockGauntlet(GameStatsManager *this, char *a2)
{
int v3; // r9
cocos2d::CCObject *v5; // r8
size_t v6; // r0
char v8; // [sp+4h] [bp-20h] BYREF
char v9; // [sp+5h] [bp-1Fh] BYREF
char *v10; // [sp+Ch] [bp-18h]
int v11[3]; // [sp+10h] [bp-14h] BYREF
v3 = *((_DWORD *)this + 130);
v5 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1);
GameStatsManager::getGauntletRewardKey((GameStatsManager *)&v8, (int)this, (int)a2);
if ( (v8 & 1) == 0 )
a2 = &v9;
v11[0] = 0;
if ( (v8 & 1) != 0 )
a2 = v10;
v11[1] = 0;
v11[2] = 0;
v6 = strlen(a2);
std::string::__init(v11, a2, v6);
cocos2d::CCDictionary::setObject(v3, v5);
std::string::~string((int)v11);
return std::string::~string((int)&v8);
}