//
// GJAccountManager::showAccountNeededAlert from 0x140309820 to 0x1403098fe (222 bytes)
//
// 11 xrefs:
// > CommentCell::onLike @ 0x140154902
// > EditLevelLayer::onShare @ 0x14017ba6a
// > EditorSoundConfigInfoLayer::onUpload @ 0x1401978bc
// > EditorSoundConfigUploadPopup::performUpload @ 0x14019bcfc
// > InfoLayer::onComment @ 0x1403d07bc
// > LevelListLayer::onShare @ 0x14042fdc2
// > ProfilePage::onSendMessage @ 0x140556b58
// > ProfilePage::onFriend @ 0x140556e8f
// > ProfilePage::onBlockUser @ 0x140557430
// > ??> @ 0x14091e5fc
// > ??> @ 0x14091e608
//
// 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:30:10 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJAccountManager::showAccountNeededAlert(__int64 a1, const char *a2)
{
cocos2d::CCString *v2; // rax
const char *CString; // rax
size_t v4; // r8
__int64 v5; // rax
cocos2d::CCObject *v6; // rbx
__int128 v8; // [rsp+50h] [rbp-48h] BYREF
__int64 v9; // [rsp+60h] [rbp-38h]
__int64 v10; // [rsp+68h] [rbp-30h]
_BYTE v11[40]; // [rsp+70h] [rbp-28h] BYREF
v2 = cocos2d::CCString::createWithFormat(
"You need an account to %s.\nYou can create one for free in the main menu.",
a2);
CString = cocos2d::CCString::getCString(v2);
v8 = 0;
v9 = 0;
v10 = 0;
v4 = -1;
do
++v4;
while ( CString[v4] );
sub_14003D230(&v8, CString, v4);
v5 = sub_14003F4F0((__int64)v11, (__int64)&v8);
v6 = FLAlertLayer::create(0, (int)"Account Needed", v5, (__int64)"Close", 0, 1136525312, 0, 0, 1065353216);
sub_14003D310((__int64)&v8);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6);
}