//
// InfoLayer::init from 0x1403cdd50 to 0x1403cfe2c (8412 bytes)
//
// 2 xrefs:
// > InfoLayer::create @ 0x1403cdd07
// > ??> @ 0x14092465c
//
// 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:31:34 +0000
//
// Hidden C++ exception states: #wind=18
bool __fastcall InfoLayer::init(
__int64 a1,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3,
cocos2d::CCObject *a4,
cocos2d::CCObject *a5)
{
bool result; // al
char v10; // bl
__int64 v11; // rcx
bool v12; // r13
int v13; // eax
__int64 v14; // rcx
__int64 v15; // rax
__int64 v16; // rax
__int64 v17; // rax
__int64 *v18; // rdi
__int64 v19; // rdx
__int64 v20; // rbx
__int64 v21; // rax
size_t v22; // r15
__int64 v23; // rbx
__int64 v24; // rax
__int64 v25; // rcx
__int64 v26; // rax
int v27; // xmm12_4
struct cocos2d::CCLabelBMFont *v28; // rdi
__int64 v29; // rbx
__int64 v30; // rax
__int64 v31; // rdx
__int64 v32; // rdx
__int64 v33; // rdx
void *v34; // rcx
void **v35; // rcx
struct cocos2d::CCLabelBMFont *v36; // rdi
__int64 v37; // rbx
__int64 v38; // rax
int v39; // eax
float v40; // xmm6_4
float v41; // xmm2_4
__int64 v42; // r12
int v43; // r12d
__int64 v44; // r12
_DWORD *v45; // rax
int v46; // ebx
__int64 v47; // rcx
cocos2d::CCString *v48; // rax
__int64 v49; // rdx
__int64 v50; // rdx
__int64 v51; // rdx
void *v52; // rcx
__int64 v53; // rax
unsigned __int64 v54; // rsi
void **v55; // rbx
unsigned __int64 v56; // rcx
__int64 v57; // rbx
char *v58; // r12
void *v59; // rcx
void **v60; // rdx
cocos2d::CCString *v61; // rax
const char *CString; // rax
struct cocos2d::CCLabelBMFont *v63; // rsi
__int64 v64; // rax
float *v65; // rbx
float v66; // xmm7_4
__int64 v67; // rbx
float v68; // xmm6_4
float v69; // xmm0_4
__int64 v70; // rax
float v71; // xmm6_4
float *v72; // rax
__int64 v73; // rax
__int64 v74; // rbx
__int64 v75; // rax
cocos2d::CCObject *v76; // r13
__int64 v77; // rbx
__int64 v78; // rax
__int64 v79; // rax
void (__fastcall ***v80)(_QWORD, _QWORD); // rbx
__int64 v81; // rdx
__int64 v82; // rax
void **v83; // xmm7_8
__m128i v84; // xmm6
__int64 v85; // rdx
__int64 v86; // rdx
__int64 v87; // rdx
__int64 v88; // rax
int v89; // ebx
void **v90; // rdx
size_t v91; // r8
__int64 v92; // rdx
__int64 v93; // rcx
__int64 v94; // r8
float v95; // xmm6_4
int v96; // ebx
int v97; // r12d
__int64 v98; // r8
__int64 v99; // r8
int v100; // eax
__int128 *v101; // rdx
size_t v102; // r8
const struct cocos2d::CCPoint *v103; // rax
char *v104; // rbx
__int64 v105; // rax
__int64 v106; // rcx
__int64 v107; // rbx
cocos2d::CCObject *v108; // rbx
cocos2d::CCObject *v109; // rdi
float v110; // xmm6_4
double v111; // xmm0_8
__int64 v112; // rax
__int64 v113; // rbx
__int64 v114; // rax
int v115; // eax
cocos2d::CCObject *v116; // r12
__int64 v117; // rdi
__int64 v118; // rbx
__int64 v119; // rax
__int64 v120; // rax
int v121; // eax
cocos2d::CCObject *v122; // rax
__int64 v123; // rsi
__int64 v124; // rbx
__int64 v125; // rdi
__int64 v126; // rax
__int64 v127; // rax
void *v128; // rcx
void *v129; // rcx
int v130; // eax
cocos2d::CCObject *v131; // rsi
__int64 v132; // rdi
__int64 v133; // rbx
__int64 v134; // rax
__int64 v135; // rax
cocos2d::CCLayerColor *v136; // rax
__int64 *v137; // rdi
__int64 v138; // rbx
__int64 v139; // rax
__int64 v140; // rcx
__int64 v141; // rsi
float v142; // xmm6_4
struct cocos2d::CCSprite *v143; // rax
cocos2d::CCObject *v144; // rax
__int64 v145; // rdi
__int64 v146; // rbx
__int64 v147; // rax
__int64 v148; // rax
cocos2d::CCSprite *v149; // rbx
cocos2d::CCObject *v150; // rax
__int64 v151; // rdi
__int64 v152; // rbx
__int64 v153; // rax
__int64 v154; // rax
struct cocos2d::CCLabelBMFont *v155; // rax
__int64 v156; // rdi
__int64 v157; // rcx
cocos2d::CCDirector *v158; // rax
float v159; // xmm6_4
__int64 v160; // rcx
cocos2d::CCDirector *v161; // rax
float v162; // xmm0_4
__int64 v163; // rbx
__int64 v164; // rax
__int64 v165; // rdi
__int64 v166; // rbx
__int64 v167; // rax
__int64 v168; // rcx
cocos2d::CCMenu *v169; // r12
char v170; // bl
char v171; // di
__int64 v172; // rax
__int64 SpriteButton; // rax
__int64 v174; // rax
__int64 v175; // rax
__int64 v176; // rax
__int64 v177; // rax
const char *v178; // rbx
__int64 v179; // rax
__int64 v180; // rax
__int64 v181; // rsi
__int64 v182; // rcx
const char *v183; // rbx
__int64 v184; // rax
__int64 v185; // rax
__int64 v186; // rax
__int64 v187; // rax
__int64 v188; // rax
__int64 v189; // rcx
int v190; // eax
cocos2d::CCObject *v191; // rax
__int64 v192; // rsi
__int64 v193; // rbx
__int64 v194; // rdi
__int64 v195; // rax
__int64 v196; // rax
cocos2d::CCObject *v197; // rbx
cocos2d::CCObject *v198; // rax
__int64 v199; // rsi
__int64 v200; // rbx
__int64 v201; // rdi
__int64 v202; // rax
__int64 v203; // rax
struct cocos2d::CCLabelBMFont *v204; // rax
__int64 v205; // rdi
__int64 v206; // rbx
__int64 v207; // rax
int v208; // esi
__int64 v209; // rcx
BOOL GameVariable; // ebx
int ID; // edi
cocos2d::CCString *v212; // rax
const char *v213; // rax
char v214; // r13
void **v215; // rbx
__int64 v216; // rcx
__int64 v217; // rcx
int v218; // eax
cocos2d::CCObject *v219; // rsi
__int64 v220; // rdi
__int64 v221; // rbx
__int64 v222; // rax
__int64 v223; // rax
struct cocos2d::CCSprite *v224; // rax
int v225; // ebx
cocos2d::CCObject *v226; // rax
__int64 v227; // rsi
__int64 v228; // rbx
__int64 v229; // rdi
__int64 v230; // rax
__int64 v231; // rax
void *v232; // rcx
bool v233; // [rsp+58h] [rbp-B0h]
char v234; // [rsp+58h] [rbp-B0h]
float v235; // [rsp+60h] [rbp-A8h] BYREF
float v236; // [rsp+64h] [rbp-A4h]
char v237; // [rsp+68h] [rbp-A0h]
__int16 v238; // [rsp+6Ah] [rbp-9Eh] BYREF
char v239; // [rsp+6Ch] [rbp-9Ch]
void *v240; // [rsp+70h] [rbp-98h] BYREF
void *v241; // [rsp+78h] [rbp-90h] BYREF
float v242; // [rsp+80h] [rbp-88h]
char v243[8]; // [rsp+88h] [rbp-80h] BYREF
char v244[8]; // [rsp+90h] [rbp-78h] BYREF
char v245[8]; // [rsp+98h] [rbp-70h] BYREF
__int128 v246; // [rsp+A0h] [rbp-68h] BYREF
__int64 v247; // [rsp+B0h] [rbp-58h]
__int64 v248; // [rsp+B8h] [rbp-50h]
char v249[8]; // [rsp+C0h] [rbp-48h] BYREF
_BYTE v250[16]; // [rsp+C8h] [rbp-40h] BYREF
__int128 Buf2; // [rsp+D8h] [rbp-30h] BYREF
__m128i v252; // [rsp+E8h] [rbp-20h]
void *Buf1[2]; // [rsp+F8h] [rbp-10h] BYREF
__m128i v254; // [rsp+108h] [rbp+0h]
void *Block[2]; // [rsp+118h] [rbp+10h] BYREF
__m128i v256; // [rsp+128h] [rbp+20h]
void *v257[2]; // [rsp+138h] [rbp+30h] BYREF
__m128i v258; // [rsp+148h] [rbp+40h]
__int128 v259; // [rsp+158h] [rbp+50h] BYREF
__int64 v260; // [rsp+168h] [rbp+60h]
unsigned __int64 v261; // [rsp+170h] [rbp+68h]
result = FLAlertLayer::init_1(a1, 150);
if ( !result )
return result;
if ( a3 )
{
*(_QWORD *)(a1 + 704) = a3;
cocos2d::CCObject::retain(a3);
*(_DWORD *)(a1 + 884) = 1;
}
else if ( a4 )
{
*(_QWORD *)(a1 + 712) = a4;
cocos2d::CCObject::retain(a4);
*(_DWORD *)(a1 + 884) = 2;
}
else if ( a5 )
{
*(_QWORD *)(a1 + 720) = a5;
cocos2d::CCObject::retain(a5);
*(_DWORD *)(a1 + 884) = 3;
}
else
{
*(_QWORD *)(a1 + 696) = a2;
cocos2d::CCObject::retain(a2);
*(_DWORD *)(a1 + 884) = 0;
}
v10 = InfoLayer::parentalCommentsDisabled(a1);
v237 = v10;
v11 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v240 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v240);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v11 = qword_14090BFD0;
}
v12 = GameManager::getGameVariable(v11, "0089") && !v10 || *(_QWORD *)(a1 + 704);
v233 = v12;
v13 = -53;
v14 = 4294967292LL;
if ( v12 )
v13 = -4;
v242 = (float)v13;
v15 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v240 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v240);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v15 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v15 + 1376) = a1 + 672;
v16 = cocos2d::CCDirector::sharedDirector(v14);
cocos2d::CCDirector::getWinSize(v16, &v235);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v250, 0.0, 0.0, 80.0, 80.0);
v18 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v17);
LOBYTE(v19) = -1;
(*(void (__fastcall **)(__int64 *, __int64))(v18[40] + 40))(v18 + 40, v19);
v20 = *v18;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v240, 440.0, 290.0);
(*(void (__fastcall **)(__int64 *, __int64))(v20 + 312))(v18, v21);
v22 = -1;
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v18,
0xFFFFFFFFLL);
v23 = *v18;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v240, v235 * 0.5, v236 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v23 + 184))(v18, v24);
v26 = cocos2d::CCMenu::create(v25);
*(_QWORD *)(a1 + 552) = v26;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v26, 10);
v27 = 1060320051;
if ( !*(_QWORD *)(a1 + 704) )
{
*(_OWORD *)v257 = 0;
v258.m128i_i64[0] = 0;
v258.m128i_i64[1] = 15;
LOBYTE(v257[0]) = 0;
v31 = *(_QWORD *)(a1 + 720);
if ( v31 )
{
v32 = v31 + 384;
}
else
{
v33 = *(_QWORD *)(a1 + 712);
if ( v33 )
v32 = v33 + 440;
else
v32 = *(_QWORD *)(a1 + 696) + 344LL;
}
sub_14003F4F0((__int64)Buf1, v32);
if ( v258.m128i_i64[1] > 0xFuLL )
{
v34 = v257[0];
if ( (unsigned __int64)(v258.m128i_i64[1] + 1) >= 0x1000 )
{
v34 = *((void **)v257[0] - 1);
if ( (unsigned __int64)((char *)v257[0] - (char *)v34 - 8) > 0x1F )
LABEL_128:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v34);
}
*(_OWORD *)v257 = *(_OWORD *)Buf1;
v258 = v254;
v254.m128i_i64[0] = 0;
v254.m128i_i64[1] = 15;
LOBYTE(Buf1[0]) = 0;
sub_14003D310((__int64)Buf1);
v35 = v257;
if ( v258.m128i_i64[1] > 0xFuLL )
v35 = (void **)v257[0];
v36 = cocos2d::CCLabelBMFont::create((const char *)v35, (const char *)&qword_140704F78);
v37 = *(_QWORD *)v36;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v240,
v235 * 0.5,
(float)((float)(v236 * 0.5) + 145.0) - (float)(4 * !v12 + 16));
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v37 + 184))(v36, v38);
v39 = 300;
if ( v12 )
v39 = 150;
v40 = (float)v39;
if ( v12 )
v41 = 0.60000002;
else
v41 = 1.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v36, v40, v41, 0.0);
v42 = *(_QWORD *)(a1 + 720);
if ( v42 )
{
v43 = *(_DWORD *)(v42 + 344);
}
else
{
v44 = *(_QWORD *)(a1 + 712);
if ( v44 )
{
v43 = *(_DWORD *)(v44 + 364);
}
else
{
v45 = *(_DWORD **)(a1 + 696);
v43 = v45[165] - v45[166];
if ( !v43 )
{
v46 = v45[162] - v45[163];
v47 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v240 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v240);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v47 = *(_QWORD *)&qword_14090BFB0;
}
v48 = cocos2d::CCDictionary::valueForKey(*(cocos2d::CCDictionary **)(v47 + 1080), v46);
v43 = cocos2d::CCString::intValue(v48);
}
}
}
*(_OWORD *)Block = 0;
v256.m128i_i64[0] = 0;
v256.m128i_i64[1] = 15;
LOBYTE(Block[0]) = 0;
v49 = *(_QWORD *)(a1 + 720);
if ( v49 )
{
v50 = v49 + 480;
}
else
{
v51 = *(_QWORD *)(a1 + 712);
if ( v51 )
v50 = v51 + 408;
else
v50 = *(_QWORD *)(a1 + 696) + 440LL;
}
sub_14003F4F0((__int64)Buf1, v50);
if ( v256.m128i_i64[1] > 0xFuLL )
{
v52 = Block[0];
if ( (unsigned __int64)(v256.m128i_i64[1] + 1) >= 0x1000 )
{
v52 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v52 - 8) > 0x1F )
LABEL_67:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v52);
}
*(_OWORD *)Block = *(_OWORD *)Buf1;
v256 = v254;
v254.m128i_i64[0] = 0;
v254.m128i_i64[1] = 15;
LOBYTE(Buf1[0]) = 0;
sub_14003D310((__int64)Buf1);
v53 = *(_QWORD *)(a1 + 696);
if ( !v53 || *(_DWORD *)(v53 + 1220) != 1 )
{
LABEL_71:
v60 = Block;
if ( v256.m128i_i64[1] > 0xFuLL )
v60 = (void **)Block[0];
v61 = cocos2d::CCString::createWithFormat("By %s", (const char *)v60);
CString = cocos2d::CCString::getCString(v61);
v63 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt");
v64 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v36 + 200LL))(v36);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v244, v235 * 0.5, *(float *)(v64 + 4) - 26.0);
if ( v12 )
{
cocos2d::CCLabelBMFont::limitLabelWidth(v63, v40, 0.5, 0.0);
v65 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v63 + 328LL))(
v63,
&v240);
v66 = (float)(*(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v36 + 328LL))(
v36,
v243)
+ *v65)
+ 15.0;
v67 = *(_QWORD *)v36;
v68 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v36 + 200LL))(v36) + 4);
v69 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v36 + 328LL))(
v36,
&v240);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v243,
(float)((float)(v235 * 0.5) - (float)(v66 * 0.5)) + (float)(v69 * 0.5),
v68);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v67 + 184))(v36, v70);
v71 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v63 + 328LL))(
v63,
&v240)
* 0.5;
v72 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v36 + 328LL))(
v36,
&v241);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, (float)((float)(*v72 * 0.5) + v71) + 15.0, 0.0);
v74 = v73;
v75 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v36 + 200LL))(v36);
cocos2d::CCPoint::operator+(v75, v243, v74);
cocos2d::CCPoint::operator=(v244, v243);
}
else
{
cocos2d::CCLabelBMFont::limitLabelWidth(v63, v40, 0.80000001, 0.0);
}
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v36,
20);
v76 = CCMenuItemSpriteExtra::create((int)v63, 0, a1, (__int64)InfoLayer::onMore);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v76);
v77 = *(_QWORD *)v76;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &Buf2, v244);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v77 + 184))(v76, v78);
if ( !v43 )
{
v238 = -166;
v239 = -1;
(**((void (__fastcall ***)(__int64, __int16 *))v63 + 46))((__int64)v63 + 368, &v238);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v76 + 936LL))(v76, 0);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, v235 * 0.5, (float)(v236 * 0.5) + 52.0);
if ( v233 )
{
InfoLayer::setupLevelInfo(a1);
goto LABEL_123;
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v250, 0.0, 0.0, 80.0, 80.0);
v79 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&Buf2, (const struct cocos2d::CCRect *)v250);
v80 = (void (__fastcall ***)(_QWORD, _QWORD))cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v79);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v243, 340.0, 55.0);
((void (__fastcall **)(_QWORD, char *))*v80)[39](v80, v243);
(*(void (__fastcall **)(_QWORD, void (__fastcall ***)(_QWORD, _QWORD), __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v80,
0xFFFFFFFFLL);
((void (__fastcall **)(_QWORD, char *))*v80)[23](v80, v245);
v238 = 16514;
v239 = 33;
(*v80[40])(v80 + 40, &v238);
v259 = 0;
v260 = 0;
v261 = 0;
*(_QWORD *)&v259 = sub_14003D460(0x20u);
v260 = 25;
v261 = 31;
strcpy((char *)v259, "(No description provided)");
*(_OWORD *)Buf1 = 0;
v254.m128i_i64[0] = 0;
v254.m128i_i64[1] = 15;
LOBYTE(Buf1[0]) = 0;
v81 = *(_QWORD *)(a1 + 720);
if ( v81 )
{
if ( *(_QWORD *)(v81 + 432) )
{
v82 = sub_14003F4F0((__int64)&v246, v81 + 416);
LevelTools::base64DecodeString(&Buf2, v82);
}
else
{
Buf2 = 0;
v252.m128i_i64[0] = 0;
v252.m128i_i64[1] = 15;
LOBYTE(Buf2) = 0;
}
v83 = (void **)Buf2;
*(_OWORD *)Buf1 = Buf2;
v84 = v252;
v254 = v252;
goto LABEL_92;
}
v85 = *(_QWORD *)(a1 + 712);
if ( v85 )
{
if ( *(_QWORD *)(v85 + 552) )
{
v86 = v85 + 536;
LABEL_90:
v88 = sub_14003F4F0((__int64)&v246, v86);
LevelTools::base64DecodeString(&Buf2, v88);
goto LABEL_91;
}
}
else
{
v87 = *(_QWORD *)(a1 + 696);
if ( *(_QWORD *)(v87 + 392) )
{
v86 = v87 + 376;
goto LABEL_90;
}
}
Buf2 = 0;
v252.m128i_i64[0] = 0;
v252.m128i_i64[1] = 15;
LOBYTE(Buf2) = 0;
LABEL_91:
v83 = (void **)Buf2;
v84 = v252;
*(_OWORD *)Buf1 = Buf2;
v254 = v252;
v252.m128i_i64[0] = 0;
v252.m128i_i64[1] = 15;
LOBYTE(Buf2) = 0;
sub_14003D310((__int64)&Buf2);
LABEL_92:
Buf2 = 0;
v252.m128i_i64[0] = 0;
v252.m128i_i64[1] = 15;
LOBYTE(Buf2) = 0;
v89 = sub_14003D160(Buf1, &Buf2);
sub_14003D310((__int64)&Buf2);
if ( v89 )
{
v90 = Buf1;
if ( _mm_srli_si128(v84, 8).m128i_u64[0] > 0xF )
v90 = v83;
v91 = -1;
do
++v91;
while ( *((_BYTE *)v90 + v91) );
sub_1400405A0((void **)&v259, v90, v91);
}
GameToolbox::stripNonBreakingSpaces((unsigned __int64 *)&v259);
v95 = 1.0;
v96 = 180;
if ( *(_QWORD *)(a1 + 712) )
v96 = 280;
ensureEmotesAreLoaded(v93, v92, v94, COERCE_DOUBLE(1117782016));
v97 = dword_1408FE3A4;
if ( (int)EmoteSprite::effectiveLength(&v259, dword_1408FE3A4, v98, COERCE_DOUBLE(1117782016)) >= v96 )
v100 = v96;
else
v100 = EmoteSprite::effectiveLength(&v259, v97, v99, COERCE_DOUBLE(1117782016));
if ( v100 > 70 )
v95 = (float)((float)((float)(180 - v100) / (float)v96) * 0.30000001) + 0.69999999;
*(_QWORD *)&Buf2 = &v246;
v101 = &v259;
if ( v261 > 0xF )
v101 = (__int128 *)v259;
v246 = 0;
v247 = 0;
v248 = 0;
v102 = -1;
do
++v102;
while ( *((_BYTE *)v101 + v102) );
sub_14003D230(&v246, v101, v102);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v241, 0.5, 0.5);
v104 = TextArea::create((__int64)&v246, "chatFont.fnt", 1.0, 324.5 / v95, v103, 1101004800, 1, v97);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v104);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, 0.0, 1.0);
cocos2d::CCPoint::operator+(v245, &v240, v105);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v104 + 184LL))(v104, &v240);
(*(void (__fastcall **)(char *))(*(_QWORD *)v104 + 160LL))(v104);
sub_14003D310((__int64)Buf1);
sub_14003D310((__int64)&v259);
InfoLayer::setupLevelInfo(a1);
v106 = *(_QWORD *)(a1 + 696);
if ( v106 && *(_DWORD *)(v106 + 1060) != *(_DWORD *)(v106 + 1064) )
{
v107 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&Buf2 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(Buf2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v107 = qword_14090BFD0;
}
if ( !GameManager::getGameVariable(v107, "0218")
&& !GameManager::getGameVariable(v107, "0219")
&& !GameManager::getGameVariable(v107, "0077")
&& *(_DWORD *)(*(_QWORD *)(a1 + 696) + 1060LL) - *(_DWORD *)(*(_QWORD *)(a1 + 696) + 1064LL) != *(_DWORD *)(*(_QWORD *)(a1 + 696) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 696) + 332LL) )
{
*(_QWORD *)&Buf2 = operator new(0x2C8u);
v108 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(Buf2);
if ( v108 )
{
if ( ButtonSprite::init_1(
(__int64)v108,
(__int64)"Original",
220,
0,
1055286886,
0,
&qword_140704F78,
(__int64)"GJ_button_01.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v108);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v108 + 8LL))(v108, 1);
v108 = nullptr;
}
}
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v108 + 160LL))(v108);
v109 = CCMenuItemSpriteExtra::create((int)v108, 0, a1, (__int64)InfoLayer::onOriginal);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v109);
*((_DWORD *)v109 + 93) = 1067030938;
v110 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v63 + 320LL))(v63)
* 0.5;
v111 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v63 + 168LL))(v63);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, (float)(*(float *)&v111 * v110) + 70.0, 0.0);
v113 = v112;
v114 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v76 + 200LL))(v76);
cocos2d::CCPoint::operator+(v114, &v240, v113);
(*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v109 + 184LL))(v109, &v240);
}
}
LABEL_123:
v115 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png");
v116 = CCMenuItemSpriteExtra::create(v115, 0, a1, (__int64)InfoLayer::onComment);
*((_DWORD *)v116 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v116);
v117 = *(_QWORD *)v116;
v118 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&Buf2,
(float)((float)(v235 * 0.5) + 220.0) - 10.0,
(float)((float)(v236 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace(v118, &v241, v119);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v117 + 184))(v116, v120);
v121 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_reportBtn_001.png");
v122 = CCMenuItemSpriteExtra::create(v121, 0, a1, (__int64)InfoLayer::confirmReport);
*(_QWORD *)(a1 + 840) = v122;
*((_DWORD *)v122 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
*(_QWORD *)(a1 + 840));
v123 = **(_QWORD **)(a1 + 840);
v124 = *(_QWORD *)(a1 + 552);
v125 = *(_QWORD *)(a1 + 840);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&Buf2,
(float)((float)(v235 * 0.5) - 220.0) + 10.0,
(float)((float)(v236 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace(v124, &v241, v126);
(*(void (__fastcall **)(__int64, __int64))(v123 + 184))(v125, v127);
if ( v237 )
{
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v116 + 336LL))(v116, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v116 + 936LL))(v116, 0);
}
if ( v256.m128i_i64[1] > 0xFuLL )
{
v128 = Block[0];
if ( (unsigned __int64)(v256.m128i_i64[1] + 1) >= 0x1000 )
{
v128 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v128 - 8) > 0x1F )
goto LABEL_128;
}
j_j_free(v128);
}
v256.m128i_i64[0] = 0;
v256.m128i_i64[1] = 15;
LOBYTE(Block[0]) = 0;
if ( v258.m128i_i64[1] > 0xFuLL )
{
v129 = v257[0];
if ( (unsigned __int64)(v258.m128i_i64[1] + 1) >= 0x1000 )
{
v129 = *((void **)v257[0] - 1);
if ( (unsigned __int64)((char *)v257[0] - (char *)v129 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v129);
}
v12 = v233;
goto LABEL_136;
}
v54 = v256.m128i_u64[1];
if ( v256.m128i_i64[1] >= 6uLL )
{
v55 = Block;
if ( v256.m128i_i64[1] > 0xFuLL )
v55 = (void **)Block[0];
v256.m128i_i64[0] = 6;
memmove(v55, "RobTop", 6u);
*((_BYTE *)v55 + 6) = 0;
goto LABEL_70;
}
v56 = (unsigned __int64)v256.m128i_i64[1] >> 1;
v57 = 0x7FFFFFFFFFFFFFFFLL;
if ( v256.m128i_i64[1] <= 0x7FFFFFFFFFFFFFFFLL - ((unsigned __int64)v256.m128i_i64[1] >> 1) )
{
v57 = 15;
if ( v56 + v256.m128i_i64[1] > 0xF )
v57 = v56 + v256.m128i_i64[1];
}
v58 = (char *)sub_14003D460(v57 + 1);
v256.m128i_i64[0] = 6;
v256.m128i_i64[1] = v57;
strcpy(v58, "RobTop");
if ( v54 > 0xF )
{
v59 = Block[0];
if ( v54 + 1 >= 0x1000 )
{
v59 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v59 - 8) > 0x1F )
goto LABEL_67;
}
j_j_free(v59);
}
Block[0] = v58;
LABEL_70:
v43 = 71;
goto LABEL_71;
}
v28 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 896) = v28;
v29 = *(_QWORD *)v28;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v240, v235 * 0.5, (float)((float)(v236 * 0.5) + 145.0) - 16.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v29 + 184))(v28, v30);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 896));
InfoLayer::refreshUserTitle(a1);
LABEL_136:
v130 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v131 = CCMenuItemSpriteExtra::create(v130, 0, a1, (__int64)InfoLayer::onClose);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v131);
*((_DWORD *)v131 + 93) = 1070386381;
v132 = *(_QWORD *)v131;
v133 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&Buf2,
(float)((float)(v235 * 0.5) - 220.0) + 10.0,
(float)((float)(v236 * 0.5) + 145.0) - 10.0);
cocos2d::CCNode::convertToNodeSpace(v133, &v241, v134);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v132 + 184))(v131, v135);
v136 = LoadingCircle::create();
*(_QWORD *)(a1 + 760) = v136;
*((_QWORD *)v136 + 69) = *(_QWORD *)(a1 + 584);
*(_BYTE *)(*(_QWORD *)(a1 + 760) + 560LL) = 0;
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 760));
LoadingCircle::show(*(_QWORD *)(a1 + 760));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 760) + 336LL))(*(_QWORD *)(a1 + 760), 0);
v137 = *(__int64 **)(*(_QWORD *)(a1 + 760) + 544LL);
v138 = *v137;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, v235 * 0.5, (float)(v236 * 0.5) + v242);
(*(void (__fastcall **)(__int64 *, __int64))(v138 + 184))(v137, v139);
v141 = cocos2d::CCMenu::create(v140);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v141, 10);
v142 = (float)(v236 * 0.5) - 53.0;
v143 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
LODWORD(v138) = (_DWORD)v143;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v143 + 160LL))(v143);
v144 = CCMenuItemSpriteExtra::create(v138, 0, a1, (__int64)InfoLayer::onPrevPage);
*(_QWORD *)(a1 + 800) = v144;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v141 + 464LL))(v141, v144);
v145 = **(_QWORD **)(a1 + 800);
v146 = *(_QWORD *)(a1 + 800);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, (float)(v235 * 0.5) - 195.0, v142);
cocos2d::CCNode::convertToNodeSpace(v141, &v241, v147);
(*(void (__fastcall **)(__int64, __int64))(v145 + 184))(v146, v148);
*(_DWORD *)(*(_QWORD *)(a1 + 800) + 372LL) = 0x40000000;
v149 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v149, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v149 + 160LL))(v149);
v150 = CCMenuItemSpriteExtra::create((int)v149, 0, a1, (__int64)InfoLayer::onNextPage);
*(_QWORD *)(a1 + 792) = v150;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v141 + 464LL))(v141, v150);
v151 = **(_QWORD **)(a1 + 792);
v152 = *(_QWORD *)(a1 + 792);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, (float)(v235 * 0.5) + 195.0, v142);
cocos2d::CCNode::convertToNodeSpace(v141, &v241, v153);
(*(void (__fastcall **)(__int64, __int64))(v151 + 184))(v152, v154);
*(_DWORD *)(*(_QWORD *)(a1 + 792) + 372LL) = 0x40000000;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 800) + 336LL))(*(_QWORD *)(a1 + 800), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 792) + 336LL))(*(_QWORD *)(a1 + 792), 0);
v155 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt");
*(_QWORD *)(a1 + 768) = v155;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v155,
10);
v156 = **(_QWORD **)(a1 + 768);
v158 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v157);
v159 = cocos2d::CCDirector::getScreenTop(v158) - 2.0;
v161 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v160);
v162 = (float)(cocos2d::CCDirector::getScreenRight(v161) - 7.0) - 0.0;
v163 = *(_QWORD *)(a1 + 768);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, v162, v159);
(*(void (__fastcall **)(__int64, __int64))(v156 + 184))(v163, v164);
v165 = **(_QWORD **)(a1 + 768);
v166 = *(_QWORD *)(a1 + 768);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v240, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v165 + 288))(v166, v167);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 768) + 160LL))(*(_QWORD *)(a1 + 768));
v169 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v168);
(*(void (__fastcall **)(_QWORD, cocos2d::CCMenu *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v169,
10);
v170 = v237;
if ( v237 || !(unsigned __int8)InfoLayer::canToggleModRoom(a1) )
{
v171 = 0;
}
else
{
v171 = 1;
v27 = 1057971241;
}
v234 = v171;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, 0.0, -0.5);
SpriteButton = InfoLayer::getSpriteButton(
a1,
(unsigned int)"GJ_likesIcon_001.png",
(unsigned int)InfoLayer::toggleCommentMode,
(_DWORD)v169,
v27,
v172);
*(_QWORD *)(a1 + 808) = SpriteButton;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)SpriteButton + 64LL))(SpriteButton, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v241, 0.0, -1.0);
v175 = InfoLayer::getSpriteButton(
a1,
(unsigned int)"GJ_timeIcon_001.png",
(unsigned int)InfoLayer::toggleCommentMode,
(_DWORD)v169,
v27,
v174);
*(_QWORD *)(a1 + 816) = v175;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v175 + 64LL))(v175, 1);
if ( !v170 )
{
if ( !*(_QWORD *)(a1 + 704) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, 0.0, -1.0);
v177 = InfoLayer::getSpriteButton(
a1,
(unsigned int)"GJ_extendedIcon_001.png",
(unsigned int)InfoLayer::toggleExtendedMode,
(_DWORD)v169,
v27,
v176);
v178 = "GJ_button_01.png";
if ( v12 )
v178 = "GJ_button_02.png";
v179 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v177 + 952LL))(v177);
ButtonSprite::updateBGImage(v179, v178);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, 0.0, -1.5);
v181 = InfoLayer::getSpriteButton(
a1,
(unsigned int)"GJ_smallModeIcon_001.png",
(unsigned int)InfoLayer::toggleSmallCommentMode,
(_DWORD)v169,
v27,
v180);
v182 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v241 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v241);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v182 = qword_14090BFD0;
}
v183 = "GJ_button_01.png";
if ( GameManager::getGameVariable(v182, "0088") )
v183 = "GJ_button_02.png";
v184 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v181 + 952LL))(v181);
ButtonSprite::updateBGImage(v184, v183);
}
if ( v171 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, 0.0, -2.0);
v186 = InfoLayer::getSpriteButton(
a1,
(unsigned int)"modBadge_01_001.png",
(unsigned int)InfoLayer::toggleModRoom,
(_DWORD)v169,
v27,
v185);
*(_QWORD *)(a1 + 824) = v186;
v187 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 952LL))(v186);
ButtonSprite::updateBGImage(v187, "GJ_button_01.png");
}
v188 = *(_QWORD *)(a1 + 704);
if ( v188 && *(int *)(v188 + 392) > 0 )
{
v189 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&Buf2 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(Buf2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v189 = qword_14090BFD0;
}
if ( *(_DWORD *)(v189 + 1064) - *(_DWORD *)(v189 + 1068) > 0 )
{
v190 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png");
v191 = CCMenuItemSpriteExtra::create(v190, 0, a1, (__int64)InfoLayer::onComment);
*(_QWORD *)(a1 + 832) = v191;
*((_DWORD *)v191 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
*(_QWORD *)(a1 + 832));
v192 = **(_QWORD **)(a1 + 832);
v193 = *(_QWORD *)(a1 + 552);
v194 = *(_QWORD *)(a1 + 832);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&Buf2,
(float)((float)(v235 * 0.5) + 220.0) - 10.0,
(float)((float)(v236 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace(v193, &v241, v195);
(*(void (__fastcall **)(__int64, __int64))(v192 + 184))(v194, v196);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 832) + 336LL))(*(_QWORD *)(a1 + 832), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 832) + 936LL))(*(_QWORD *)(a1 + 832), 0);
v171 = v234;
}
}
InfoLayer::updateCommentModeButtons(a1);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v249,
(float)(v235 * 0.5) - 195.0,
(float)(v171 != 0 ? 6 : 0) + (float)((float)((float)(v236 * 0.5) + 145.0) - 110.0));
(*(void (__fastcall **)(cocos2d::CCMenu *, char *))(*(_QWORD *)v169 + 184LL))(v169, v249);
cocos2d::CCMenu::alignItemsVerticallyWithPadding(v169, 4.0);
*(_QWORD *)&Buf2 = operator new(0x2C8u);
v197 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite(Buf2);
if ( v197 )
{
if ( ButtonSprite::init_1(
(__int64)v197,
(__int64)"Load Comments",
220,
0,
1058642330,
0,
&qword_140704F78,
(__int64)"GJ_button_01.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v197);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v197 + 8LL))(v197, 1);
LODWORD(v197) = 0;
}
}
v198 = CCMenuItemSpriteExtra::create((int)v197, 0, a1, (__int64)InfoLayer::onGetComments);
*(_QWORD *)(a1 + 848) = v198;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v198);
*(_DWORD *)(*(_QWORD *)(a1 + 848) + 372LL) = 0x40000000;
v199 = **(_QWORD **)(a1 + 848);
v200 = *(_QWORD *)(a1 + 552);
v201 = *(_QWORD *)(a1 + 848);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, v235 * 0.5, (float)(v236 * 0.5) + v242);
cocos2d::CCNode::convertToNodeSpace(v200, &v241, v202);
(*(void (__fastcall **)(__int64, __int64))(v199 + 184))(v201, v203);
v204 = cocos2d::CCLabelBMFont::create("No comments", "goldFont.fnt");
*(_QWORD *)(a1 + 776) = v204;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v204,
10);
v205 = **(_QWORD **)(a1 + 776);
v206 = *(_QWORD *)(a1 + 776);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v240, v235 * 0.5, (float)(v236 * 0.5) + v242);
(*(void (__fastcall **)(__int64, __int64))(v205 + 184))(v206, v207);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 776) + 160LL))(*(_QWORD *)(a1 + 776));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 776) + 336LL))(*(_QWORD *)(a1 + 776), 0);
v208 = *(_DWORD *)(a1 + 884);
v209 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&Buf2 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(Buf2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v209 = qword_14090BFD0;
}
GameVariable = GameManager::getGameVariable(v209, "0069");
ID = InfoLayer::getID(a1);
if ( !*(_QWORD *)&qword_14090BFB0 )
{
*(_QWORD *)&Buf2 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(Buf2);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
}
v212 = cocos2d::CCString::createWithFormat("comment_%i_%i_%i_%i", ID, 0, GameVariable, v208);
v213 = cocos2d::CCString::getCString(v212);
*(_OWORD *)Buf1 = 0;
v254 = 0u;
do
++v22;
while ( v213[v22] );
sub_14003D230(Buf1, v213, v22);
v214 = v237;
if ( v237 )
goto LABEL_178;
v215 = Buf1;
if ( v254.m128i_i64[1] > 0xFuLL )
v215 = (void **)Buf1[0];
v216 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
*(_QWORD *)&Buf2 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(Buf2);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v216 = *(_QWORD *)&qword_14090BFB0;
}
if ( GameLevelManager::getStoredLevelComments(v216, v215) )
goto LABEL_177;
v217 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
*(_QWORD *)&Buf2 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(Buf2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v217 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v217, "0090") )
LABEL_177:
InfoLayer::loadPage(a1, 0, 0);
else
LABEL_178:
InfoLayer::setupCommentsBrowser(a1, 0);
if ( !*(_QWORD *)(a1 + 704) )
{
v218 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
v219 = CCMenuItemSpriteExtra::create(v218, 0, a1, (__int64)InfoLayer::onLevelInfo);
*((_DWORD *)v219 + 93) = 0x40000000;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v219);
v220 = *(_QWORD *)v219;
v221 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&Buf2,
(float)((float)(v235 * 0.5) + 220.0) - 17.0,
(float)((float)(v236 * 0.5) + 145.0) - 17.0);
cocos2d::CCNode::convertToNodeSpace(v221, &v241, v222);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v220 + 184))(v219, v223);
}
v224 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
v225 = (int)v224;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v224 + 160LL))(v224);
v226 = CCMenuItemSpriteExtra::create(v225, 0, a1, (__int64)InfoLayer::onRefreshComments);
*(_QWORD *)(a1 + 856) = v226;
*((_DWORD *)v226 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
*(_QWORD *)(a1 + 856));
v227 = **(_QWORD **)(a1 + 856);
v228 = *(_QWORD *)(a1 + 552);
v229 = *(_QWORD *)(a1 + 856);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&Buf2, (float)(v235 * 0.5) + 195.0, (float)(v236 * 0.5) + 0.0);
cocos2d::CCNode::convertToNodeSpace(v228, &v241, v230);
(*(void (__fastcall **)(__int64, __int64))(v227 + 184))(v229, v231);
if ( v214 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 856) + 336LL))(*(_QWORD *)(a1 + 856), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 856) + 936LL))(*(_QWORD *)(a1 + 856), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 776) + 336LL))(*(_QWORD *)(a1 + 776), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 848) + 336LL))(*(_QWORD *)(a1 + 848), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 936LL))(*(_QWORD *)(a1 + 808), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 816) + 336LL))(*(_QWORD *)(a1 + 816), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 816) + 936LL))(*(_QWORD *)(a1 + 816), 0);
}
InfoLayer::setupBulkUI(a1);
if ( v254.m128i_i64[1] > 0xFuLL )
{
v232 = Buf1[0];
if ( (unsigned __int64)(v254.m128i_i64[1] + 1) >= 0x1000 )
{
v232 = *((void **)Buf1[0] - 1);
if ( (unsigned __int64)((char *)Buf1[0] - (char *)v232 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v232);
}
return 1;
}