//
// AccountLoginLayer::loginAccountFinished from 0x46a118 to 0x46a1f8 (224 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountLoginLayer::loginAccountFinished @ 0x46a210
//
// 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 AccountLoginLayer::loginAccountFinished(AccountLoginLayer *a1, int a2, int a3)
{
GJAccountManager *v6; // r9
cocos2d::CCString *v7; // r0
char *CString; // r8
FLAlertLayer *v9; // r5
_BYTE v10[4]; // [sp+Ch] [bp-Ch] BYREF
char *v11; // [sp+10h] [bp-8h] BYREF
v6 = GJAccountManager::sharedState();
sub_775C20(v10);
sub_775C20(&v11);
GJAccountManager::linkToAccount((int)v6, (int)v10, (int)&v11, a2, a3);
sub_774008(&v11);
sub_774008(v10);
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a1->m_usernameInput);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Thank you for logging in.\n"
"You have now linked your account:\n"
"%s",
v11);
CString = (char *)cocos2d::CCString::getCString(v7);
sub_774008(&v11);
AccountLoginLayer::hideLoadingUI(a1);
sub_776584((int)&v11, CString);
v9 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, (int)"Login Success", (int)&v11, (int)"OK", 0, 320.0);
sub_774008(&v11);
v9->setTag(v9, 2);
v9->show(v9);
}