//
// AccountRegisterLayer::registerAccountFinished from 0x84db7c to 0x84dd74 (504 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountRegisterLayer::registerAccountFinished @ 0x84dd7c
// > ??> @ 0x90948
// > ??> @ 0x118ed88
//
// 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 AccountRegisterLayer::registerAccountFinished(AccountRegisterLayer *a1)
{
cocos2d::CCString *v2; // x0
char *CString; // x23
char *v4; // x0
FLAlertLayer *v5; // x20
char *v6; // x0
unsigned int *v7; // x1
int v8; // w2
unsigned int *v9; // x1
int v10; // w2
char *v11; // [xsp+50h] [xbp+50h] BYREF
CCTextInputNode::getString(a1->m_emailField, (__int64)&v11);
v2 = (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.",
v11);
CString = (char *)cocos2d::CCString::getCString(v2);
v4 = v11 - 24;
if ( v11 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v11 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *((_DWORD *)v11 - 2);
*((_DWORD *)v11 - 2) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v4);
}
sub_D153B8((int)&v11, CString);
v5 = FLAlertLayer::create((int)a1 + 648, (__int64)"Created", (__int64)&v11);
v6 = v11 - 24;
if ( v11 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v9 = (unsigned int *)(v11 - 8);
do
v10 = __ldaxr(v9);
while ( __stlxr(v10 - 1, v9) );
}
else
{
v10 = *((_DWORD *)v11 - 2);
*((_DWORD *)v11 - 2) = v10 - 1;
}
if ( v10 <= 0 )
operator delete(v6);
}
v5->setTag(v5, 1);
v5->show(v5);
a1->m_loadingCircle->setVisible(a1->m_loadingCircle, 0);
}