//
// AccountLayer::FLAlert_Clicked from 0x14007f390 to 0x14007f49b (267 bytes)
//
// 2 xrefs:
// > ??> @ 0x14053b820
// > ??> @ 0x1406c693c
//
// 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 AccountLayer::FLAlert_Clicked(AccountLayer *a1, FLAlertLayer *a2, bool a3)
{
int v5; // eax
__int64 v6; // rdx
__int64 v7; // rcx
int v8; // eax
__int64 v9; // rax
AccountLayer *v10; // rbx
GJAccountManager *v11; // rax
_QWORD **v12; // rcx
GJAccountManager *v13; // rax
_BOOL8 v14; // rdx
v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 1;
if ( !v5 )
{
if ( !a3 )
return;
v10 = (AccountLayer *)((char *)a1 - 632);
AccountLayer::updatePage((AccountLayer *)((char *)a1 - 632), 0);
v13 = GJAccountManager::sharedState();
if ( !GJAccountManager::getAccountBackupURL(v13) )
{
v12 = (_QWORD **)&v10->GJAccountBackupDelegate;
goto LABEL_13;
}
LABEL_11:
v10->m_buttonMenu->setEnabled(v10->m_buttonMenu, 0);
v10->setKeypadEnabled(v10, 0);
LOBYTE(v14) = 1;
v10->m_loadingCircle->setVisible(v10->m_loadingCircle, v14);
return;
}
v8 = v5 - 1;
if ( !v8 )
{
if ( !a3 )
return;
v10 = (AccountLayer *)((char *)a1 - 632);
AccountLayer::updatePage((AccountLayer *)((char *)a1 - 632), 0);
v11 = GJAccountManager::sharedState();
if ( !GJAccountManager::getAccountSyncURL(v11) )
{
v12 = (_QWORD **)&v10->GJAccountSyncDelegate;
LABEL_13:
((void (__fastcall *)(_QWORD **, __int64))(*v12)[1])(v12, 0xFFFFFFFFLL);
return;
}
goto LABEL_11;
}
if ( v8 == 3 && a3 )
{
v9 = cocos2d::CCApplication::sharedApplication(v7, v6);
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v9 + 88LL))(
v9,
"https://www.boomlings.com/database/accounts/accountManagement.php");
}
}