//
// GJAccountManager::showAccountNeededAlert from 0x581608 to 0x58167a (114 bytes)
//
// 9 xrefs:
// > CommentCell::onLike @ 0x42455c
// > EditLevelLayer::onShare @ 0x49fe52
// > InfoLayer::onComment @ 0x53d4dc
// > ProfilePage::onSendMessage @ 0x5f77ec
// > ProfilePage::onBlockUser @ 0x5f787c
// > ProfilePage::onFriend @ 0x5f7bcc
// > LevelListLayer::onShare @ 0x6d8074
// > EditorSoundConfigInfoLayer::onUpload @ 0x784c56
// > EditorSoundConfigUploadPopup::performUpload @ 0x788f86
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:53 +0000
//
int __fastcall GJAccountManager::showAccountNeededAlert(GJAccountManager *this, const char *a2)
{
cocos2d::CCString *v2; // r0
const char *CString; // r7
size_t v4; // r0
int *v5; // r0
int v7[3]; // [sp+8h] [bp-14h] BYREF
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"You need an account to %s.\n"
"You can create one for free in the main menu.",
a2);
memset(v7, 0, sizeof(v7));
CString = (const char *)cocos2d::CCString::getCString(v2);
v4 = strlen(CString);
std::string::__init(v7, CString, v4);
v5 = FLAlertLayer::create(
0,
(cocos2d::CCLabelBMFont *)"Account Needed",
(int)v7,
(ButtonSprite *)"Close",
nullptr,
380.0);
(*(void (__fastcall **)(int *))(*v5 + 656))(v5);
return std::string::~string((int)v7);
}