//
// AccountHelpLayer::FLAlert_Clicked from 0x1400956e0 to 0x140095911 (561 bytes)
//
// 3 xrefs:
// > ??> @ 0x140718648
// > ??> @ 0x140912c50
// > ??> @ 0x140912c5c
//
// This function is hookable on this platform (idp: pc, 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:26:02 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall AccountHelpLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
__int64 result; // rax
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rax
__int64 *v10; // rbx
__int128 v11; // [rsp+50h] [rbp-48h] BYREF
__int64 v12; // [rsp+60h] [rbp-38h]
__int64 v13; // [rsp+68h] [rbp-30h]
_BYTE v14[40]; // [rsp+70h] [rbp-28h] BYREF
result = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 3;
if ( (_DWORD)result )
{
result = (unsigned int)(result - 1);
if ( (_DWORD)result )
{
if ( (_DWORD)result == 1 )
{
if ( a3 )
{
v7 = cocos2d::CCApplication::sharedApplication();
return (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 96LL))(
v7,
"https://www.boomlings.com/database/accounts/accountManagement.php");
}
}
}
else if ( a3 )
{
v8 = GJAccountManager::sharedState(v6);
GJAccountManager::unlinkFromAccount(v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 616) + 992LL))(a1 - 616, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 - 616) + 1120LL))(a1 - 616);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 616) + 1088LL))(
a1 - 616,
*(unsigned __int8 *)(a1 - 616 + 600));
}
}
else if ( a3 )
{
if ( a1 == 616 )
LODWORD(a1) = 0;
v11 = 0;
*(_QWORD *)&v11 = sub_14003D460(0x70u);
v12 = 110;
v13 = 111;
strcpy(
(char *)v11,
"This will delete ALL save data.\nDo you want to continue?\n(You cannot undo this action)");
v9 = sub_14003F4F0((__int64)v14, (__int64)&v11);
v10 = (__int64 *)FLAlertLayer::create(
a1,
(int)"Warning",
v9,
(__int64)"Cancel",
(__int64)"DELETE",
1133903872,
0,
0,
1065353216);
sub_14003D310((__int64)&v11);
(*(void (__fastcall **)(__int64 *, __int64))(*v10 + 64))(v10, 4);
ButtonSprite::updateBGImage(v10[77], "GJ_button_06.png");
return (*(__int64 (__fastcall **)(__int64 *))(*v10 + 1064))(v10);
}
return result;
}