//
// AccountLayer::FLAlert_Clicked from 0x1000cdc80 to 0x1000cdd7c (252 bytes)
//
// 2 xrefs:
// > sub_1000CDD80 @ 0x1000cdd8c
// > ??> @ 0x1008b8940
//
// 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
//
void __fastcall AccountLayer::FLAlert_Clicked(AccountLayer *a1, FLAlertLayer *a2, bool a3)
{
int v4; // eax
GJAccountManager *v5; // rax
void (__cdecl *syncAccountFailed)(AccountLayer *__hidden, BackupAccountError, int); // rax
GJAccountManager *v7; // rax
cocos2d::CCApplication *v8; // rax
v4 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);
if ( v4 == 5 )
{
if ( a3 )
{
v8 = cocos2d::CCApplication::sharedApplication();
((void (__fastcall *)(cocos2d::CCApplication *, const char *))v8->openURL)(
v8,
"https://www.boomlings.com/database/accounts/accountManagement.php");
}
}
else if ( v4 == 2 )
{
if ( a3 )
{
AccountLayer::updatePage(a1, 0);
v7 = GJAccountManager::sharedState();
if ( !GJAccountManager::getAccountSyncURL(v7) )
{
syncAccountFailed = a1->syncAccountFailed;
goto LABEL_14;
}
LABEL_9:
((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0);
((void (__fastcall *)(AccountLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(LoadingCircle *, __int64))a1->m_loadingCircle->setVisible)(a1->m_loadingCircle, 1);
}
}
else if ( v4 == 1 && a3 )
{
AccountLayer::updatePage(a1, 0);
v5 = GJAccountManager::sharedState();
if ( !GJAccountManager::getAccountBackupURL(v5) )
{
syncAccountFailed = a1->backupAccountFailed;
LABEL_14:
((void (__fastcall *)(AccountLayer *, __int64, _QWORD))syncAccountFailed)(a1, 0xFFFFFFFFLL, 0);
return;
}
goto LABEL_9;
}
}