//
// AccountRegisterLayer::registerAccountFinished from 0x99150c to 0x991658 (332 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountRegisterLayer::registerAccountFinished @ 0x991660
// > ??> @ 0xbf458
// > ??> @ 0x1473ed8
//
// This function is hookable on this platform (idp: arm, 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 12:57:59 +0000
//
__int64 __fastcall AccountRegisterLayer::registerAccountFinished(CCTextInputNode **this)
{
char *v2; // x1
cocos2d::CCString *v3; // x0
char *CString; // x22
size_t v5; // x0
__int64 v6; // x20
__int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF
char *v9; // [xsp+40h] [xbp+40h]
CCTextInputNode::getString(*(this + 88), v8);
v2 = (char *)v8 + 1;
if ( (v8[0] & 1) != 0 )
v2 = v9;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Thank you for registering.\n"
"A confirmation email has been sent to your inbox %s.\n"
"Please activate your account.",
v2);
CString = (char *)cocos2d::CCString::getCString(v3);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
v5 = strlen(CString);
std::string::__init(v8, CString, v5);
v6 = FLAlertLayer::create(
(__int64)(this + 84),
(cocos2d::CCLabelBMFont *)"Created",
(char *)v8,
(ButtonSprite *)"OK",
nullptr,
320.0);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 96) + 344LL))(*(this + 96), 0);
return _stack_chk_guard;
}