//
// sub_1003D2B4C from 0x1003d2b4c to 0x1003d2c40 (244 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::FLAlert_Clicked @ 0x10049aeb0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:04:12 +0000
//
__int64 __fastcall sub_1003D2B4C(__int64 a1, int a2)
{
int v4; // w8
int v5; // w21
int Stat; // w0
__int64 v8; // x20
void *v9; // x22
void *v10; // x0
char *CString; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
if ( a2 < 1 || GameStatsManager::isDailyRecall(a1, a2) )
return 0;
v4 = (unsigned int)a2 <= 0x186A0 ? 1 : 3;
v5 = (unsigned int)a2 <= 0x30D40 ? v4 : 5;
Stat = GameStatsManager::getStat(a1, "21");
if ( Stat < v5 )
return 0;
GameStatsManager::setStat(a1, "21", Stat - v5);
v8 = *(_QWORD *)(a1 + 752);
v9 = sub_1003065B0("%i", v5);
v10 = sub_1003065B0("%i", a2);
CString = (char *)cocos2d::CCString::getCString((__int64)v10);
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject(v8, v9, __p);
if ( v13 < 0 )
operator delete(__p[0]);
return 1;
}