//
// sub_1001EEB58 from 0x1001eeb58 to 0x1001eecf8 (416 bytes)
//
// 1 xrefs:
// > AccountLayer::customSetup @ 0x1001ee6a4
//
// 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:00:37 +0000
//
__int64 __fastcall sub_1001EEB58(__int64 a1)
{
int v2; // w0
__int64 v3; // x0
char *v4; // x0
__int64 *v5; // x19
void *v6; // x0
__int64 v7; // x0
int v8; // w0
__int64 v9; // x0
char *CString; // x0
void *v12[2]; // [xsp+8h] [xbp-58h] BYREF
char v13; // [xsp+1Fh] [xbp-41h]
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
char v15; // [xsp+37h] [xbp-29h]
_QWORD v16[2]; // [xsp+38h] [xbp-28h] BYREF
char v17; // [xsp+4Fh] [xbp-11h]
v2 = GameStatsManager::sharedState(a1);
if ( (int)GameStatsManager::getStat(v2, "6") > 9 )
{
v7 = GameLevelManager::sharedState();
v8 = sub_1000ADD00(v7, "bak_account", 30.0);
if ( (unsigned int)(v8 - 1) > 0x1D )
{
sub_100009900(
v12,
"Do you want to save your account data on the cloud?\n"
"This will overwrite previously saved data.");
v5 = (__int64 *)FLAlertLayer::create_1(a1 + 632, "Save Data", v12, "Cancel", "Save", 300.0);
if ( v13 < 0 )
operator delete(v12[0]);
ButtonSprite::updateBGImage(v5[76], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v5 + 72))(v5, 1);
}
else
{
v9 = sub_1003065B0("Please wait %i seconds before attempting to back up your account again.", v8);
CString = (char *)cocos2d::CCString::getCString(v9);
sub_100009900(__p, CString);
v5 = (__int64 *)FLAlertLayer::create_1(0, "Too Fast", __p, "OK", 0, 300.0);
if ( v15 < 0 )
{
v6 = __p[0];
goto LABEL_7;
}
}
}
else
{
v3 = sub_1003065B0("You need to collect atleast %i stars to enable saving.", 10);
v4 = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(v16, v4);
v5 = (__int64 *)FLAlertLayer::create_1(0, "Collect more", v16, "OK", 0, 300.0);
if ( v17 < 0 )
{
v6 = (void *)v16[0];
LABEL_7:
operator delete(v6);
}
}
return (*(__int64 (__fastcall **)(__int64 *))(*v5 + 1312))(v5);
}