//
// GameStatsManager::storeSecretCoin from 0x51763c to 0x51769c (96 bytes)
//
// 4 xrefs:
// > LevelPage::ccTouchBegan @ 0x51345a
// > GJBaseGameLayer::processItems @ 0x59c2ee
// > SecretLayer::onSubmit @ 0x5fe17c
// > SecretLayer2::onSubmit @ 0x61ead6
//
// 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::storeSecretCoin(GameStatsManager *this, const char *a2, int a3, int a4)
{
int v4; // r7
cocos2d::CCObject *v5; // r6
const char *SecretCoinKey; // r8
size_t v7; // r0
GameStatsManager *v9; // [sp+0h] [bp-10h] BYREF
const char *v10; // [sp+4h] [bp-Ch]
int v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v9 = this;
v10 = a2;
v11 = a3;
v12 = a4;
v4 = *((_DWORD *)this + 92);
v5 = *((cocos2d::CCObject **)this + 66);
v9 = nullptr;
v10 = nullptr;
v11 = 0;
SecretCoinKey = (const char *)GameStatsManager::getSecretCoinKey(this, a2);
v7 = strlen(SecretCoinKey);
std::string::__init((int *)&v9, SecretCoinKey, v7);
cocos2d::CCDictionary::setObject(v4, v5);
return std::string::~string((int)&v9);
}