//
// GameStatsManager::getCurrencyKey from 0x1003324e0 to 0x10033253c (92 bytes)
//
// 6 xrefs:
// > GameStatsManager::getBaseCurrencyForLevel @ 0x1003325ec
// > GameStatsManager::getAwardedCurrencyForLevel @ 0x10033272c
// > GameStatsManager::awardCurrencyForLevel @ 0x1003328b4
// > GameStatsManager::awardCurrencyForLevel @ 0x1003329d8
// > GameStatsManager::getAwardedDiamondsForLevel @ 0x100332bcc
// > GameStatsManager::awardDiamondsForLevel @ 0x100332d48
//
// 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
//
_QWORD *__usercall GameStatsManager::getCurrencyKey@(_DWORD *a1@, _QWORD *a2@)
{
int v3; // w8
int v4; // w9
bool v5; // vf
int v6; // w8
cocos2d::CCString *v7; // x0
char *CString; // x1
v3 = a1[201];
v4 = a1[202];
v5 = __OFSUB__(v3, v4);
v6 = v3 - v4;
if ( (v6 < 0) ^ v5 | (v6 == 0) )
v6 = a1[82] - a1[83];
v7 = (cocos2d::CCString *)sub_100268F4C("%i", v6);
CString = (char *)cocos2d::CCString::getCString(v7);
return sub_100009900(a2, CString);
}