//
// AccountRegisterLayer::registerAccountFinished from 0x587330 to 0x5873ea (186 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountRegisterLayer::registerAccountFinished @ 0x587404
//
// 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 AccountRegisterLayer::registerAccountFinished(AccountRegisterLayer *this)
{
char *v2; // r1
cocos2d::CCString *v3; // r0
const char *CString; // r8
size_t v5; // r0
int *v6; // r5
int v8[2]; // [sp+8h] [bp-10h] BYREF
char *v9; // [sp+10h] [bp-8h]
CCTextInputNode::getString((CCTextInputNode *)v8, *((_DWORD *)this + 135));
if ( (v8[0] & 1) != 0 )
v2 = v9;
else
v2 = (char *)v8 + 1;
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 = (const char *)cocos2d::CCString::getCString(v3);
std::string::~string((int)v8);
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
v5 = strlen(CString);
std::string::__init(v8, CString, v5);
v6 = FLAlertLayer::create(
(int)this + 524,
(cocos2d::CCLabelBMFont *)"Created",
(int)v8,
(ButtonSprite *)"OK",
nullptr,
320.0);
std::string::~string((int)v8);
(*(void (__fastcall **)(int *, int))(*v6 + 36))(v6, 1);
(*(void (__fastcall **)(int *))(*v6 + 656))(v6);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 143) + 172))(*((_DWORD *)this + 143), 0);
}