//
// AccountLoginLayer::loginAccountFinished from 0x587b28 to 0x587c22 (250 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountLoginLayer::loginAccountFinished @ 0x587c3c
//
// 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:59 +0000
//
int __fastcall AccountLoginLayer::loginAccountFinished(AccountLoginLayer *this, int a2, int a3)
{
int v6; // r9
char *v7; // r1
cocos2d::CCString *v8; // r0
const char *CString; // r8
size_t v10; // r0
int *v11; // r5
int v13[3]; // [sp+Ch] [bp-1Ch] BYREF
int v14[2]; // [sp+18h] [bp-10h] BYREF
char *v15; // [sp+20h] [bp-8h]
v6 = GJAccountManager::sharedState(this);
std::string::basic_string(v13, (int)this + 548);
std::string::basic_string(v14, (int)this + 560);
GJAccountManager::linkToAccount(v6, (unsigned __int8 *)v13, (unsigned __int8 *)v14, a2, a3);
std::string::~string((int)v14);
std::string::~string((int)v13);
CCTextInputNode::getString((CCTextInputNode *)v14, *((_DWORD *)this + 132));
if ( (v14[0] & 1) != 0 )
v7 = v15;
else
v7 = (char *)v14 + 1;
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Thank you for logging in.\n"
"You have now linked your account:\n"
"%s",
v7);
CString = (const char *)cocos2d::CCString::getCString(v8);
std::string::~string((int)v14);
AccountLoginLayer::hideLoadingUI(this);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v10 = strlen(CString);
std::string::__init(v14, CString, v10);
v11 = FLAlertLayer::create(
(int)this + 524,
(cocos2d::CCLabelBMFont *)"Login Success",
(int)v14,
(ButtonSprite *)"OK",
nullptr,
320.0);
std::string::~string((int)v14);
(*(void (__fastcall **)(int *, int))(*v11 + 36))(v11, 2);
return (*(int (__fastcall **)(int *))(*v11 + 656))(v11);
}