//
// GameStatsManager::unlockDailyRecall from 0x52366c to 0x523722 (182 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x4a8d74
//
// 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
//
bool __fastcall GameStatsManager::unlockDailyRecall(GameStatsManager *this, char *a2, int a3, int a4)
{
int v6; // r1
_BOOL4 isDailyRecall; // r8
const char *v9; // r6
int Stat; // r0
int v11; // r8
cocos2d::CCObject *v12; // r6
cocos2d::CCString *v13; // r0
const char *CString; // r7
size_t v15; // r0
GameStatsManager *v16; // [sp+0h] [bp-10h] BYREF
char *v17; // [sp+4h] [bp-Ch]
int v18; // [sp+8h] [bp-8h]
int v19; // [sp+Ch] [bp-4h]
v16 = this;
v17 = a2;
v18 = a3;
v19 = a4;
if ( (int)a2 <= 0 )
return 0;
isDailyRecall = GameStatsManager::isDailyRecall(this, a2);
if ( isDailyRecall )
return 0;
v9 = (const char *)GameStatsManager::dailyRecallPrice((GameStatsManager *)a2, v6);
Stat = GameStatsManager::getStat(this, "21");
if ( Stat >= (int)v9 )
{
GameStatsManager::setStat(this, "21", (const char *)(Stat - (_DWORD)v9));
v11 = *((_DWORD *)this + 121);
v12 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v9);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
v16 = nullptr;
v17 = nullptr;
v18 = 0;
CString = (const char *)cocos2d::CCString::getCString(v13);
v15 = strlen(CString);
std::string::__init((int *)&v16, CString, v15);
cocos2d::CCDictionary::setObject(v11, v12);
isDailyRecall = 1;
std::string::~string((int)&v16);
}
return isDailyRecall;
}