//
// ProfilePage::init from 0x1405508f0 to 0x1405519e1 (4337 bytes)
//
// 2 xrefs:
// > ProfilePage::create @ 0x1405508ae
// > ??> @ 0x14092bdf0
//
// This function is hookable on this platform (idp: pc, 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 11:34:08 +0000
//
// Hidden C++ exception states: #wind=25
bool __fastcall ProfilePage::init(__int64 a1, unsigned int a2, char a3)
{
bool result; // al
__int64 v7; // rax
bool v8; // al
__int64 v9; // rcx
__int64 v10; // rcx
__int64 v11; // rax
__int64 v12; // rax
int v13; // ebx
__int64 v14; // rcx
__int64 v15; // rcx
__int64 v16; // rcx
__int64 v17; // rcx
__int64 v18; // rcx
__int64 v19; // rcx
__int64 v20; // rcx
__int64 v21; // rcx
__int64 v22; // rcx
cocos2d::CCObject *v23; // rax
__int64 v24; // rcx
__int64 v25; // rax
__int64 v26; // rax
__int64 *v27; // rdi
__int64 v28; // rdx
void (__fastcall *v29)(__int64 *, __int64); // r8
__int64 v30; // rbx
__int64 v31; // rax
__int64 v32; // rbx
__int64 v33; // rax
__int64 v34; // rax
__int64 v35; // rax
__int64 v36; // rax
int v37; // edi
__int64 v38; // rax
int v39; // ebx
_QWORD *v40; // rcx
__int64 v41; // rcx
const char *v42; // rcx
struct cocos2d::CCLabelBMFont *v43; // rax
__int64 v44; // rdi
__int64 v45; // rbx
__int64 v46; // rax
struct cocos2d::CCObject *v47; // rdi
__int64 v48; // rdx
void (__fastcall *v49)(char *, __int64); // r8
__int64 v50; // rax
__int64 v51; // rbx
__int64 v52; // rax
__int64 v53; // rax
struct cocos2d::CCObject *v54; // rdi
__int64 v55; // rbx
__int64 v56; // rax
__int64 v57; // rax
struct cocos2d::CCObject *v58; // rdi
__int64 v59; // rbx
__int64 v60; // rax
int v61; // eax
cocos2d::CCObject *v62; // rax
struct cocos2d::CCMenu *v63; // rdi
__int64 v64; // rbx
__int64 v65; // rax
__int64 v66; // rcx
cocos2d::CCObject *v67; // rax
struct cocos2d::CCLabelBMFont *v68; // rax
__int64 v69; // rdi
__int64 v70; // rbx
__int64 v71; // rax
__int64 v72; // rax
__int64 v73; // rbx
__int64 v74; // rcx
bool isFollowingUser; // si
const char *v76; // rcx
struct cocos2d::CCSprite *v77; // rax
int v78; // ebx
cocos2d::CCObject *v79; // rax
__int64 v80; // rdi
__int64 v81; // rbx
__int64 v82; // rax
__int64 v83; // rbx
struct cocos2d::CCSprite *v84; // rax
__int64 v85; // rax
cocos2d::CCLayerColor *v86; // rax
__int64 *v87; // rdi
__int64 v88; // rbx
__int64 v89; // rax
int v90; // eax
cocos2d::CCObject *v91; // rax
__int64 v92; // rsi
__int64 v93; // rbx
__int64 v94; // rdi
__int64 v95; // rax
__int64 v96; // rax
__int64 v97; // rcx
__int64 v98; // rax
__int64 v99; // rdx
__int64 v100; // rax
__int64 v101; // rcx
struct cocos2d::CCObject *v102; // rax
__int64 v103; // rdx
cocos2d::CCActionManager **v104; // rcx
void **v105; // [rsp+38h] [rbp-59h] BYREF
__int64 v106; // [rsp+40h] [rbp-51h] BYREF
float v107; // [rsp+48h] [rbp-49h] BYREF
float v108; // [rsp+4Ch] [rbp-45h]
void *v109[4]; // [rsp+50h] [rbp-41h] BYREF
_BYTE v110[8]; // [rsp+70h] [rbp-21h] BYREF
_QWORD v111[4]; // [rsp+78h] [rbp-19h] BYREF
result = FLAlertLayer::init_1(a1, 150);
if ( result )
{
*(_DWORD *)(a1 + 736) = a2;
v8 = false;
if ( a3 )
{
v7 = GJAccountManager::sharedState();
if ( a2 == *(_DWORD *)(v7 + 360) - *(_DWORD *)(v7 + 364) )
v8 = true;
}
*(_BYTE *)(a1 + 740) = v8;
v9 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v105 = (void **)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v105);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v9 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v9, "0219") )
{
ProfilePage::createOfflineNotice(a1);
}
else
{
if ( *(_BYTE *)(a1 + 740) )
{
v11 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v105 = (void **)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v105);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v11 = qword_14090BFD0;
}
if ( !*(_BYTE *)(v11 + 688) )
{
v12 = GJAccountManager::sharedState();
v13 = *(_DWORD *)(v12 + 360) - *(_DWORD *)(v12 + 364);
v14 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v14 = *(_QWORD *)&qword_14090BFB0;
}
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(v14 + 1232), v13);
v15 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v15 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::invalidateMessages(v15, 1u, 0);
v16 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v16 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::invalidateMessages(v16, 0, 0);
v17 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v17 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::invalidateRequests(v17, 1u, 0);
v18 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v18 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::invalidateRequests(v18, 0, 0);
v19 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v19 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::resetStoredUserList(v19, 0);
v20 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v20 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::resetStoredUserList(v20, 1);
v21 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v21 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::resetStoredUserList(v21, 3);
v22 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v22 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::resetStoredUserList(v22, 4);
}
}
v23 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10);
*(_QWORD *)(a1 + 848) = v23;
cocos2d::CCObject::retain(v23);
v25 = cocos2d::CCDirector::sharedDirector(v24);
cocos2d::CCDirector::getWinSize(v25, &v107);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v109, 0.0, 0.0, 80.0, 80.0);
v27 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v26);
v28 = v27[40];
v29 = *(void (__fastcall **)(__int64 *, __int64))(v28 + 40);
LOBYTE(v28) = -1;
v29(v27 + 40, v28);
v30 = *v27;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v105, 440.0, 290.0);
(*(void (__fastcall **)(__int64 *, __int64))(v30 + 312))(v27, v31);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v27,
0xFFFFFFFFLL);
v32 = *v27;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, v107 * 0.5, v108 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v32 + 184))(v27, v33);
v34 = GJAccountManager::sharedState();
if ( a2 == *(_DWORD *)(v34 + 360) - *(_DWORD *)(v34 + 364) )
{
v105 = v109;
v35 = GJAccountManager::sharedState();
sub_14003F4F0((__int64)v109, v35 + 328);
v36 = GJAccountManager::sharedState();
v37 = *(_DWORD *)(v36 + 360) - *(_DWORD *)(v36 + 364);
v38 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v106 = (__int64)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v106);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v38 = qword_14090BFD0;
}
v39 = *(_DWORD *)(v38 + 692) - *(_DWORD *)(v38 + 696);
v40 = *(_QWORD **)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v106 = (__int64)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v106);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v40 = *(_QWORD **)&qword_14090BFB0;
}
GameLevelManager::storeUserName(v40, v39, v37, v109);
}
v41 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v41 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::tryGetUsername(v41, (__int64)v111, a2);
v42 = (const char *)v111;
if ( v111[3] > 0xFu )
v42 = (const char *)v111[0];
v43 = cocos2d::CCLabelBMFont::create(v42, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 784) = v43;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v43,
20);
v44 = **(_QWORD **)(a1 + 784);
v45 = *(_QWORD *)(a1 + 784);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, v107 * 0.5, (float)((float)(v108 * 0.5) + 145.0) - 20.0);
(*(void (__fastcall **)(__int64, __int64))(v44 + 184))(v45, v46);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 784), 160.0, 0.80000001, 0.0);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 848), *(struct cocos2d::CCObject **)(a1 + 784));
v47 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png");
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v47 + 120LL))(v47);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v47 + 136LL))(v47);
v48 = *((_QWORD *)v47 + 40);
v49 = *(void (__fastcall **)(char *, __int64))(v48 + 40);
LOBYTE(v48) = 100;
v49((char *)v47 + 320, v48);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v47,
0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, 0.0, -21.0);
v51 = v50;
v52 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 200LL))(*(_QWORD *)(a1 + 784));
cocos2d::CCPoint::operator+(v52, &v106, v51);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64 *))(*(_QWORD *)v47 + 184LL))(v47, &v106);
v106 = 0x100000302LL;
(**((void (__fastcall ***)(__int64, __int64))v47 + 43))((__int64)v47 + 344, 0x100000302LL);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 848), v47);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110, v107 * 0.5, (float)(v108 * 0.5) + 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v109, 0.0, 0.0, 80.0, 80.0);
v54 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v53);
v55 = *(_QWORD *)v54;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v105, 400.0, 45.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v55 + 312))(v54, v56);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v54 + 184LL))(v54, v110);
LOWORD(v106) = 29375;
BYTE2(v106) = 62;
(**((void (__fastcall ***)(__int64, __int64 *))v54 + 40))((__int64)v54 + 320, &v106);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v54,
1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 848), v54);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v109, 0.0, 0.0, 80.0, 80.0);
v58 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_002.png", v57);
v59 = *(_QWORD *)v58;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v105, 400.0, 45.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v59 + 312))(v58, v60);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v58 + 184LL))(v58, v110);
LOWORD(v106) = 16514;
BYTE2(v106) = 32;
(**((void (__fastcall ***)(__int64, __int64 *))v58 + 40))((__int64)v58 + 320, &v106);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v58,
1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 848), v58);
v61 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v62 = CCMenuItemSpriteExtra::create(v61, 0, a1, (__int64)ProfilePage::onClose);
*((_DWORD *)v62 + 93) = 1070386381;
v63 = cocos2d::CCMenu::create(v62, 0);
*(_QWORD *)(a1 + 552) = v63;
v64 = *(_QWORD *)v63;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v105,
(float)((float)(v107 * 0.5) - 220.0) + 10.0,
(float)((float)(v108 * 0.5) + 145.0) - 10.0);
(*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v64 + 184))(v63, v65);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 552),
10);
ProfilePage::setupComments(a1);
v67 = (cocos2d::CCObject *)cocos2d::CCArray::create(v66);
*(_QWORD *)(a1 + 840) = v67;
cocos2d::CCObject::retain(v67);
v68 = cocos2d::CCLabelBMFont::create((const char *)&xmmword_140726660, "goldFont.fnt");
*(_QWORD *)(a1 + 776) = v68;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v68,
10);
v69 = **(_QWORD **)(a1 + 776);
v70 = *(_QWORD *)(a1 + 776);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, v107 * 0.5, (float)(v108 * 0.5) - 53.0);
(*(void (__fastcall **)(__int64, __int64))(v69 + 184))(v70, v71);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 776) + 160LL))(*(_QWORD *)(a1 + 776));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 776) + 336LL))(*(_QWORD *)(a1 + 776), 0);
v72 = GJAccountManager::sharedState();
if ( *(_DWORD *)(v72 + 360) - *(_DWORD *)(v72 + 364) != *(_DWORD *)(a1 + 736) )
{
v73 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v105 = (void **)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v105);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v73 = qword_14090BFD0;
}
if ( !GameManager::getGameVariable(v73, "0218") && !GameManager::getGameVariable(v73, "0219") )
{
v74 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v105 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v105);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v74 = *(_QWORD *)&qword_14090BFB0;
}
isFollowingUser = GameLevelManager::isFollowingUser(v74);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v106, (float)(v107 * 0.5) - 158.0, (float)(v108 * 0.5) - 123.0);
v76 = "followBtnOff_001.png";
if ( isFollowingUser )
v76 = "followBtnOn_001.png";
v77 = cocos2d::CCSprite::createWithSpriteFrameName(v76);
v78 = (int)v77;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v77 + 160LL))(v77);
v79 = CCMenuItemSpriteExtra::create(v78, 0, a1, (__int64)ProfilePage::onFollow);
*(_QWORD *)(a1 + 816) = v79;
*((_DWORD *)v79 + 93) = 1066192077;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
*(_QWORD *)(a1 + 816));
v80 = **(_QWORD **)(a1 + 816);
v81 = *(_QWORD *)(a1 + 816);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v105, &v106);
(*(void (__fastcall **)(__int64, __int64))(v80 + 184))(v81, v82);
if ( !isFollowingUser )
{
v83 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v109[0] = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v109[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v83 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v83, "0235") || *(_DWORD *)(v83 + 1064) == *(_DWORD *)(v83 + 1068) )
{
v84 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_followTxt_001.png");
*(_QWORD *)(a1 + 824) = v84;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v84,
2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, 48.0, -2.0);
cocos2d::CCPoint::operator+(&v106, &v105, v85);
(*(void (__fastcall **)(_QWORD, void ***))(**(_QWORD **)(a1 + 824) + 184LL))(*(_QWORD *)(a1 + 824), &v105);
}
}
}
}
v86 = LoadingCircle::create();
*(_QWORD *)(a1 + 872) = v86;
*((_QWORD *)v86 + 69) = *(_QWORD *)(a1 + 584);
*(_BYTE *)(*(_QWORD *)(a1 + 872) + 560LL) = 0;
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 872));
LoadingCircle::show(*(_QWORD *)(a1 + 872));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), 0);
v87 = *(__int64 **)(*(_QWORD *)(a1 + 872) + 544LL);
v88 = *v87;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, v107 * 0.5, (float)(v108 * 0.5) - 53.0);
(*(void (__fastcall **)(__int64 *, __int64))(v88 + 184))(v87, v89);
v90 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
v91 = CCMenuItemSpriteExtra::create(v90, 0, a1, (__int64)ProfilePage::onUpdate);
*(_QWORD *)(a1 + 888) = v91;
*((_DWORD *)v91 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
*(_QWORD *)(a1 + 888));
v92 = **(_QWORD **)(a1 + 888);
v93 = *(_QWORD *)(a1 + 552);
v94 = *(_QWORD *)(a1 + 888);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v109,
(float)((float)(v107 * 0.5) - 220.0) + 10.0,
(float)((float)((float)(v108 * 0.5) - 145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToNodeSpace(v93, &v105, v95);
(*(void (__fastcall **)(__int64, __int64))(v92 + 184))(v94, v96);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), 0);
v97 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v109[0] = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v109[0]);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v97 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v97 + 1480) = a1 + 688;
if ( !*(_BYTE *)(a1 + 740) )
goto LABEL_69;
v98 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v109[0] = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v109[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v98 = qword_14090BFD0;
v97 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(_BYTE *)(v98 + 688) )
{
LABEL_69:
if ( !v97 )
{
v109[0] = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v109[0]);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v97 = *(_QWORD *)&qword_14090BFB0;
}
v102 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v97 + 1232), *(int *)(a1 + 736));
if ( v102 )
{
if ( *((_DWORD *)v102 + 190) == 2 )
{
ProfilePage::loadPageFromUserInfo(a1, v102);
ProfilePage::setupCommentsBrowser(a1, 0);
LOBYTE(v103) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), v103);
}
else
{
(**(void (__fastcall ***)(__int64, struct cocos2d::CCObject *))(a1 + 688))(a1 + 688, v102);
}
}
else
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), 0);
ProfilePage::setupCommentsBrowser(a1, 0);
v104 = *(cocos2d::CCActionManager ***)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v109[0] = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v109[0]);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v104 = *(cocos2d::CCActionManager ***)&qword_14090BFB0;
}
GameLevelManager::getGJUserInfo(v104, *(_DWORD *)(a1 + 736));
}
}
else
{
ProfilePage::setupCommentsBrowser(a1, 0);
v100 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v109[0] = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v109[0]);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v100 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v100 + 1424) = a1 + 712;
LOBYTE(v99) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), v99);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), 0);
v101 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v109[0] = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v109[0]);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v101 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::updateUserScore(v101);
}
sub_14003D310((__int64)v111);
}
return 1;
}
return result;
}