//
// GameStatsManager::getCurrencyKey from 0x516bc4 to 0x516c0e (74 bytes)
//
// 5 xrefs:
// > GameStatsManager::getBaseCurrencyForLevel @ 0x517c7e
// > GameStatsManager::getAwardedDiamondsForLevel @ 0x517ee8
// > GameStatsManager::awardCurrencyForLevel @ 0x52a218
// > GameStatsManager::awardCurrencyForLevel @ 0x52a35a
// > GameStatsManager::awardDiamondsForLevel @ 0x52a57a
//
// 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
//
GameStatsManager *__fastcall GameStatsManager::getCurrencyKey(GameStatsManager *this, GJGameLevel *a2, _DWORD *a3)
{
const char *v4; // r1
cocos2d::CCString *v5; // r0
const char *CString; // r0
const char *v7; // r5
size_t v8; // r0
v4 = (const char *)(a3[186] - a3[187]);
if ( (int)v4 <= 0 )
v4 = (const char *)(a3[67] - a3[68]);
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v4);
CString = (const char *)cocos2d::CCString::getCString(v5);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
v7 = CString;
v8 = strlen(CString);
std::string::__init((int *)this, v7, v8);
return this;
}