//
// AccountRegisterLayer::init from 0x84e2e0 to 0x84f27c (3996 bytes)
//
// 3 xrefs:
// > AccountRegisterLayer::create @ 0x84df58
// > ??> @ 0x710e8
// > ??> @ 0x118e890
//
// 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
//
bool AccountRegisterLayer::init(AccountRegisterLayer *a1)
{
char v2; // w27
cocos2d::CCDirector *v4; // x0
cocos2d::CCNode *v5; // x23
cocos2d::CCLabelBMFont *v6; // x23
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCMenu *v8; // x0
cocos2d::CCLayer *m_mainLayer; // x3
cocos2d::CCArray *v10; // x0
cocos2d::CCArray *v11; // x23
const char *v12; // x1
__int64 v13; // x2
__int64 v14; // x3
bool v15; // w4
__int64 v16; // x5
const char *v17; // x6
cocos2d::CCNode *v18; // x0
CCMenuItemSpriteExtra *v19; // x26
const char *v20; // x1
__int64 v21; // x2
__int64 v22; // x3
bool v23; // w4
__int64 v24; // x5
const char *v25; // x6
cocos2d::CCNode *v26; // x0
CCMenuItemSpriteExtra *v27; // x26
cocos2d::CCMenu *m_buttonMenu; // x26
__int128 v29; // q0
cocos2d::CCLayer *v30; // x0
cocos2d::CCLayer_vtbl *v31; // x1
float v32; // s8
__int64 v33; // x0
void *v34; // x0
CCTextInputNode *v35; // x0
CCTextInputNode *m_usernameField; // x3
void *v37; // x0
void *v38; // x0
CCTextInputNode *v39; // x1
const cocos2d::CCPoint *v40; // x28
void *v41; // x0
CCTextInputNode *v42; // x0
CCTextInputNode *m_passwordField; // x28
void *v44; // x0
void *v45; // x0
CCTextInputNode *v46; // x0
void *v47; // x0
CCTextInputNode *v48; // x0
CCTextInputNode *m_confirmPasswordField; // x3
void *v50; // x0
void *v51; // x0
CCTextInputNode *v52; // x0
void *v53; // x0
CCTextInputNode *v54; // x0
CCTextInputNode *m_emailField; // x3
void *v56; // x0
void *v57; // x0
CCTextInputNode *v58; // x0
void *v59; // x0
CCTextInputNode *v60; // x0
CCTextInputNode *m_verifyEmailField; // x24
void *v62; // x0
void *v63; // x0
CCTextInputNode *v64; // x0
LoadingCircle *v65; // x0
LoadingCircle *m_loadingCircle; // x0
cocos2d::CCSprite *m_sprite; // x20
void (__fastcall *v68)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
unsigned int *v69; // x1
int v70; // w2
unsigned int *v71; // x1
int v72; // w2
unsigned int *v73; // x1
int v74; // w2
unsigned int *v75; // x1
int v76; // w2
unsigned int *v77; // x1
int v78; // w2
unsigned int *v79; // x1
int v80; // w2
unsigned int *v81; // x1
int v82; // w2
unsigned int *v83; // x1
int v84; // w2
unsigned int *v85; // x1
int v86; // w2
unsigned int *v87; // x1
int v88; // w2
unsigned int *v89; // x1
int v90; // w2
unsigned int *v91; // x1
int v92; // w2
unsigned int *v93; // x1
int v94; // w2
unsigned int *v95; // x1
int v96; // w2
unsigned int *v97; // x22
int v98; // w1
cocos2d::CCPoint *v99[2]; // [xsp+0h] [xbp+0h] BYREF
cocos2d::CCPoint *v100[2]; // [xsp+70h] [xbp+70h]
float v101; // [xsp+98h] [xbp+98h]
float v102; // [xsp+9Ch] [xbp+9Ch]
cocos2d::CCPoint v103; // [xsp+A0h] [xbp+A0h] BYREF
cocos2d::CCSize v104; // [xsp+A8h] [xbp+A8h] BYREF
cocos2d::CCPoint v105; // [xsp+B0h] [xbp+B0h] BYREF
char v106; // [xsp+B8h] [xbp+B8h] BYREF
cocos2d::CCPoint v107; // [xsp+C0h] [xbp+C0h] BYREF
cocos2d::CCPoint v108; // [xsp+C8h] [xbp+C8h] BYREF
cocos2d::CCPoint v109; // [xsp+D0h] [xbp+D0h] BYREF
cocos2d::CCPoint v110; // [xsp+D8h] [xbp+D8h] BYREF
cocos2d::CCPoint v111; // [xsp+E0h] [xbp+E0h] BYREF
cocos2d::CCRect v112; // [xsp+E8h] [xbp+E8h] BYREF
cocos2d::SEL_MenuHandler v113; // 0:x2.16
cocos2d::SEL_MenuHandler v114; // 0:x2.16
cocos2d::CCPoint v115; // 0:s0.4,4:s1.4
cocos2d::CCPoint v116; // 0:s0.4,4:s1.4
cocos2d::CCPoint v117; // 0:s0.4,4:s1.4
cocos2d::CCPoint v118; // 0:s0.4,4:s1.4
cocos2d::CCPoint v119; // 0:s0.4,4:s1.4
cocos2d::CCPoint v120; // 0:s1.4,4:s2.4
cocos2d::CCSize v121; // 0:s2.4,4:s3.4
cocos2d::CCSize v122; // 0:s2.4,4:s3.4
cocos2d::CCSize v123; // 0:s2.4,4:s3.4
cocos2d::CCSize v124; // 0:s2.4,4:s3.4
cocos2d::CCSize v125; // 0:s2.4,4:s3.4
cocos2d::CCRect v126; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v2 = FLAlertLayer::init(a1, 0x96u);
if ( v2 )
{
a1->m_noElasticity = (unsigned __int8)&dword_0 + 1;
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4);
cocos2d::CCRect::CCRect(&v112, 0.0, 0.0, 80.0, 80.0);
v5 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"GJ_square01.png",
(const char *)&v112,
v126);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v5->__vftable[1].~CCNode_0)(v5, 0xFFFFFFFFLL);
v100[0] = (cocos2d::CCPoint *)v5->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, 400.0, 300.0);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))v100[0])(v5, &v112);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, -1);
v100[0] = &v103;
cocos2d::CCPoint::CCPoint(&v103, v101 * 0.5, v102 * 0.5);
v5->setPosition(v5, v100[0]);
v6 = cocos2d::CCLabelBMFont::create();
setPosition = v6->setPosition;
cocos2d::CCPoint::CCPoint(&v112.origin, v103.x, (float)(v103.y + 150.0) - 16.0);
setPosition(v6, &v112.origin);
a1->m_mainLayer->addChild(a1->m_mainLayer, v6);
v6->setScale(v6, 0.6);
v8 = cocos2d::CCMenu::create();
m_mainLayer = a1->m_mainLayer;
a1->m_buttonMenu = v8;
v10 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))m_mainLayer->addChild_0)(
m_mainLayer,
v8,
10);
v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);
v18 = (cocos2d::CCNode *)ButtonSprite::create((ButtonSprite *)"Cancel", v12, v13, v14, v15, v16, v17);
v113.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v113.adj = (size_t)AccountRegisterLayer::onClose;
v19 = CCMenuItemSpriteExtra::create(v18, nullptr, v113);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v19);
cocos2d::CCArray::addObject(v11, v19);
v26 = (cocos2d::CCNode *)ButtonSprite::create((ButtonSprite *)"Submit", v20, v21, v22, v23, v24, v25);
v114.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v114.adj = (size_t)AccountRegisterLayer::onSubmit;
v27 = CCMenuItemSpriteExtra::create(v26, nullptr, v114);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v27);
cocos2d::CCArray::addObject(v11, v27);
m_buttonMenu = a1->m_buttonMenu;
*(float *)&v29 = v103.x;
v30 = a1->m_mainLayer;
v31 = v30->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
*(_OWORD *)v100 = v29;
v32 = (float)(v103.y - 150.0) + 22.0;
v33 = (__int64)v31->getPosition(v30);
cocos2d::CCPoint::CCPoint(&v111, *(float *)v100, v32 + *(float *)(v33 + 4));
LODWORD(v120.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v111).y);
GameToolbox::alignItemsHorisontally(v11, 15.0, v120, (unsigned __int8)v99 - 24);
cocos2d::CCSize::CCSize(&v104, 300.0, 30.0);
cocos2d::CCPoint::CCPoint(&v105, v103.x, v103.y + 90.0);
cocos2d::CCPoint::CCPoint(&v111, &v105);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
AccountRegisterLayer::createTextBackground(a1, v115, v121);
cocos2d::CCPoint::CCPoint(&v110, &v105);
sub_D153B8((unsigned int)v99 + 224, "Username: (shown to other players)");
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
a1->m_usernameLabel = AccountRegisterLayer::createTextLabel(
(__int64)a1,
(__int64)&v110,
(__int64)&v111,
&v112.origin);
v34 = (void *)(*(_QWORD *)&v111 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v111 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v69 = (unsigned int *)(*(_QWORD *)&v111 - 8LL);
do
v70 = __ldaxr(v69);
while ( __stlxr(v70 - 1, v69) );
}
else
{
v70 = *(_DWORD *)(*(_QWORD *)&v111 - 8LL);
*(_DWORD *)(*(_QWORD *)&v111 - 8LL) = v70 - 1;
}
if ( v70 <= 0 )
operator delete(v34);
}
cocos2d::CCPoint::CCPoint(&v110, &v105);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v111, &v104);
sub_D153B8((unsigned int)v99 + 232, "Username");
v35 = AccountRegisterLayer::createTextInput((TextInputDelegate *)a1, &v110, (float *)&v111, (const char **)&v112, 1);
a1->m_usernameField = v35;
m_usernameField = v35;
v37 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v71 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v72 = __ldaxr(v71);
while ( __stlxr(v72 - 1, v71) );
}
else
{
v72 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v72 - 1;
}
if ( v72 <= 0 )
operator delete(v37);
m_usernameField = a1->m_usernameField;
}
v100[0] = (cocos2d::CCPoint *)m_usernameField;
sub_D153B8((int)&v112, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
CCTextInputNode::setAllowedChars((__int64)v100[0], (__int64)&v112);
v38 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v83 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v84 = __ldaxr(v83);
while ( __stlxr(v84 - 1, v83) );
}
else
{
v84 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v84 - 1;
}
if ( v84 <= 0 )
operator delete(v38);
}
v39 = a1->m_usernameField;
v100[0] = (cocos2d::CCPoint *)&v106;
v39->m_maxLabelLength = 15;
cocos2d::CCPoint::CCPoint(&v112.origin, 0.0, -45.0);
cocos2d::CCPoint::operator+(v100[0], &v105, &v112);
v40 = v100[0];
cocos2d::CCPoint::CCPoint(&v111, v100[0]);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
AccountRegisterLayer::createTextBackground(a1, v116, v122);
cocos2d::CCPoint::CCPoint(&v110, v40);
sub_D153B8((unsigned int)v99 + 224, "Password:");
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
a1->m_passwordLabel = AccountRegisterLayer::createTextLabel(
(__int64)a1,
(__int64)&v110,
(__int64)&v111,
&v112.origin);
v41 = (void *)(*(_QWORD *)&v111 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v111 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v79 = (unsigned int *)(*(_QWORD *)&v111 - 8LL);
do
v80 = __ldaxr(v79);
while ( __stlxr(v80 - 1, v79) );
}
else
{
v80 = *(_DWORD *)(*(_QWORD *)&v111 - 8LL);
*(_DWORD *)(*(_QWORD *)&v111 - 8LL) = v80 - 1;
}
if ( v80 <= 0 )
operator delete(v41);
}
cocos2d::CCPoint::CCPoint(&v110, v100[0]);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v111, &v104);
sub_D153B8((unsigned int)v99 + 232, "Password");
v42 = AccountRegisterLayer::createTextInput((TextInputDelegate *)a1, &v110, (float *)&v111, (const char **)&v112, 2);
a1->m_passwordField = v42;
m_passwordField = v42;
v44 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v93 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v94 = __ldaxr(v93);
while ( __stlxr(v94 - 1, v93) );
}
else
{
v94 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v94 - 1;
}
if ( v94 <= 0 )
operator delete(v44);
m_passwordField = a1->m_passwordField;
}
sub_D153B8(
(unsigned int)v99 + 232,
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~!*'();:@+$,/?#[]&");
CCTextInputNode::setAllowedChars((__int64)m_passwordField, (__int64)&v112);
v45 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v87 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v88 = __ldaxr(v87);
while ( __stlxr(v88 - 1, v87) );
}
else
{
v88 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v88 - 1;
}
if ( v88 <= 0 )
operator delete(v45);
}
v46 = a1->m_passwordField;
v46->m_maxLabelLength = 20;
v46->m_usePasswordChar = 1;
CCTextInputNode::setMaxLabelScale(v46, 1.0);
cocos2d::CCPoint::CCPoint(&v112.origin, 0.0, -45.0);
cocos2d::CCPoint::operator+(&v107, v100[0], &v112);
cocos2d::CCPoint::CCPoint(&v111, &v107);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
AccountRegisterLayer::createTextBackground(a1, v117, v123);
cocos2d::CCPoint::CCPoint(&v110, &v107);
sub_D153B8((unsigned int)v99 + 224, "Confirm Password:");
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
a1->m_confirmPasswordLabel = AccountRegisterLayer::createTextLabel(
(__int64)a1,
(__int64)&v110,
(__int64)&v111,
&v112.origin);
v47 = (void *)(*(_QWORD *)&v111 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v111 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v89 = (unsigned int *)(*(_QWORD *)&v111 - 8LL);
do
v90 = __ldaxr(v89);
while ( __stlxr(v90 - 1, v89) );
}
else
{
v90 = *(_DWORD *)(*(_QWORD *)&v111 - 8LL);
*(_DWORD *)(*(_QWORD *)&v111 - 8LL) = v90 - 1;
}
if ( v90 <= 0 )
operator delete(v47);
}
cocos2d::CCPoint::CCPoint(&v110, &v107);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v111, &v104);
sub_D153B8((unsigned int)v99 + 232, "Confirm Password");
v48 = AccountRegisterLayer::createTextInput((TextInputDelegate *)a1, &v110, (float *)&v111, (const char **)&v112, 3);
a1->m_confirmPasswordField = v48;
m_confirmPasswordField = v48;
v50 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v73 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v74 = __ldaxr(v73);
while ( __stlxr(v74 - 1, v73) );
}
else
{
v74 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v74 - 1;
}
if ( v74 <= 0 )
operator delete(v50);
m_confirmPasswordField = a1->m_confirmPasswordField;
}
v100[0] = (cocos2d::CCPoint *)m_confirmPasswordField;
sub_D153B8((int)&v112, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~!*'();:@+$,/?#[]&");
CCTextInputNode::setAllowedChars((__int64)v100[0], (__int64)&v112);
v51 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v75 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v76 = __ldaxr(v75);
while ( __stlxr(v76 - 1, v75) );
}
else
{
v76 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v76 - 1;
}
if ( v76 <= 0 )
operator delete(v51);
}
v52 = a1->m_confirmPasswordField;
v52->m_maxLabelLength = 20;
v52->m_usePasswordChar = 1;
CCTextInputNode::setMaxLabelScale(v52, 1.0);
CCTextInputNode::forceOffset(a1->m_confirmPasswordField);
cocos2d::CCPoint::CCPoint(&v112.origin, 0.0, -45.0);
cocos2d::CCPoint::operator+(&v108, &v107, &v112);
cocos2d::CCPoint::CCPoint(&v111, &v108);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
AccountRegisterLayer::createTextBackground(a1, v118, v124);
cocos2d::CCPoint::CCPoint(&v110, &v108);
sub_D153B8((unsigned int)v99 + 224, "Email:");
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
a1->m_emailLabel = AccountRegisterLayer::createTextLabel((__int64)a1, (__int64)&v110, (__int64)&v111, &v112.origin);
v53 = (void *)(*(_QWORD *)&v111 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v111 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v77 = (unsigned int *)(*(_QWORD *)&v111 - 8LL);
do
v78 = __ldaxr(v77);
while ( __stlxr(v78 - 1, v77) );
}
else
{
v78 = *(_DWORD *)(*(_QWORD *)&v111 - 8LL);
*(_DWORD *)(*(_QWORD *)&v111 - 8LL) = v78 - 1;
}
if ( v78 <= 0 )
operator delete(v53);
}
cocos2d::CCPoint::CCPoint(&v110, &v108);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v111, &v104);
sub_D153B8((unsigned int)v99 + 232, "Email");
v54 = AccountRegisterLayer::createTextInput((TextInputDelegate *)a1, &v110, (float *)&v111, (const char **)&v112, 4);
a1->m_emailField = v54;
m_emailField = v54;
v56 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v85 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v86 = __ldaxr(v85);
while ( __stlxr(v86 - 1, v85) );
}
else
{
v86 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v86 - 1;
}
if ( v86 <= 0 )
operator delete(v56);
m_emailField = a1->m_emailField;
}
v100[0] = (cocos2d::CCPoint *)m_emailField;
sub_D153B8((int)&v112, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_@.");
CCTextInputNode::setAllowedChars((__int64)v100[0], (__int64)&v112);
v57 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v81 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v82 = __ldaxr(v81);
while ( __stlxr(v82 - 1, v81) );
}
else
{
v82 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v82 - 1;
}
if ( v82 <= 0 )
operator delete(v57);
}
v58 = a1->m_emailField;
v58->m_maxLabelLength = 50;
CCTextInputNode::forceOffset(v58);
cocos2d::CCPoint::CCPoint(&v112.origin, 0.0, -45.0);
cocos2d::CCPoint::operator+(&v109, &v108, &v112);
cocos2d::CCPoint::CCPoint(&v111, &v109);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
AccountRegisterLayer::createTextBackground(a1, v119, v125);
cocos2d::CCPoint::CCPoint(&v110, &v109);
sub_D153B8((unsigned int)v99 + 224, "Verify Email:");
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, &v104);
a1->m_verifyEmailLabel = AccountRegisterLayer::createTextLabel(
(__int64)a1,
(__int64)&v110,
(__int64)&v111,
&v112.origin);
v59 = (void *)(*(_QWORD *)&v111 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v111 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v95 = (unsigned int *)(*(_QWORD *)&v111 - 8LL);
do
v96 = __ldaxr(v95);
while ( __stlxr(v96 - 1, v95) );
}
else
{
v96 = *(_DWORD *)(*(_QWORD *)&v111 - 8LL);
*(_DWORD *)(*(_QWORD *)&v111 - 8LL) = v96 - 1;
}
if ( v96 <= 0 )
operator delete(v59);
}
cocos2d::CCPoint::CCPoint(&v110, &v109);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v111, &v104);
sub_D153B8((int)&v112, "Verify Email");
v60 = AccountRegisterLayer::createTextInput((TextInputDelegate *)a1, &v110, (float *)&v111, (const char **)&v112, 4);
a1->m_verifyEmailField = v60;
m_verifyEmailField = v60;
v62 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v91 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v92 = __ldaxr(v91);
while ( __stlxr(v92 - 1, v91) );
}
else
{
v92 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v92 - 1;
}
if ( v92 <= 0 )
operator delete(v62);
m_verifyEmailField = a1->m_verifyEmailField;
}
sub_D153B8((unsigned int)v99 + 232, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_@.");
CCTextInputNode::setAllowedChars((__int64)m_verifyEmailField, (__int64)&v112);
v63 = (void *)(*(_QWORD *)&v112.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v97 = (unsigned int *)(*(_QWORD *)&v112.origin - 8LL);
do
v98 = __ldaxr(v97);
while ( __stlxr(v98 - 1, v97) );
}
else
{
v98 = *(_DWORD *)(*(_QWORD *)&v112.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v112.origin - 8LL) = v98 - 1;
}
if ( v98 <= 0 )
operator delete(v63);
}
v64 = a1->m_verifyEmailField;
v64->m_maxLabelLength = 50;
CCTextInputNode::forceOffset(v64);
v65 = LoadingCircle::create();
a1->m_loadingCircle = v65;
v65->m_parentLayer = a1->m_mainLayer;
m_loadingCircle = a1->m_loadingCircle;
m_loadingCircle->m_fade = 1;
cocos2d::CCObject::retain(m_loadingCircle);
LoadingCircle::show(a1->m_loadingCircle);
a1->m_loadingCircle->setVisible(a1->m_loadingCircle, 0);
m_sprite = a1->m_loadingCircle->m_sprite;
v68 = m_sprite->setPosition;
cocos2d::CCPoint::CCPoint(&v112.origin, v101 * 0.5, v102 * 0.5);
v68(m_sprite, &v112.origin);
}
return v2;
}