//
// AccountRegisterLayer::registerAccountFinished from 0x140079cd0 to 0x140079ee2 (530 bytes)
//
// 2 xrefs:
// > ??> @ 0x140539fd8
// > ??> @ 0x1406c66fc
//
// 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
//
// Hidden C++ exception states: #wind=2
void AccountRegisterLayer::registerAccountFinished(AccountRegisterLayer *a1)
{
__int64 v2; // rcx
_BYTE *v3; // rax
size_t v4; // rbx
size_t v5; // r8
void **v6; // rdx
cocos2d::CCString *v7; // rax
const char *CString; // rdi
void *v9; // rcx
int v10; // ebp
__int64 v11; // rax
FLAlertLayer *v12; // rbx
__int128 v13; // [rsp+58h] [rbp-70h] BYREF
__int64 v14; // [rsp+68h] [rbp-60h]
__int64 v15; // [rsp+70h] [rbp-58h]
void *Block[2]; // [rsp+80h] [rbp-48h] BYREF
__m128i si128; // [rsp+90h] [rbp-38h]
v2 = *(_QWORD *)(*(_QWORD *)&a1->m_unknown2 + 552LL) + 600LL;
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);
*(_OWORD *)Block = 0;
si128 = 0;
v4 = -1;
v5 = -1;
do
++v5;
while ( v3[v5] );
sub_14003A930(Block, v3, v5);
v6 = Block;
if ( si128.m128i_i64[1] > 0xFuLL )
v6 = (void **)Block[0];
v7 = cocos2d::CCString::createWithFormat(
"Thank you for registering.\n"
"A confirmation email has been sent to your inbox %s.\n"
"Please activate your account.",
(const char *)v6);
CString = cocos2d::CCString::getCString(v7);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v9 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v9 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v9);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);
LOBYTE(Block[0]) = 0;
v10 = (_DWORD)a1 + 8;
if ( a1 == (AccountRegisterLayer *)640 )
v10 = 0;
v13 = 0;
v14 = 0;
v15 = 0;
do
++v4;
while ( CString[v4] );
sub_14003A930(&v13, CString, v4);
v11 = sub_14003BDB0((__int64)Block, (__int64)&v13);
v12 = FLAlertLayer::create(v10, (int)"Created", v11, (__int64)"OK", 0, 1134559232, 0, 0, 1065353216);
sub_14003A830((__int64)&v13);
v12->setTag(v12, 1);
v12->show(v12);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_obAnchorPointInPoints.y + 320LL))(
*(_QWORD *)&a1->m_obAnchorPointInPoints.y,
0);
}