// // CommentCell::loadFromComment from 0x4326a0 to 0x433e94 (6132 bytes) // // 4 xrefs: // > CommentCell::onDelete @ 0x433efa // > CommentCell::onUndelete @ 0x433f68 // > CommentCell::onUnhide @ 0x433f7c // > CustomListView::loadCell @ 0x43415c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:18 +0000 // cocos2d::CCMenu *__fastcall CommentCell::loadFromComment(CommentCell *this, GJComment *a2) { cocos2d::CCObject *v4; // r0 bool v5; // r3 int v6; // r0 cocos2d::CCMenu *result; // r0 const cocos2d::CCPoint *v8; // r5 GameLevelManager *v9; // r0 int v10; // r0 GameLevelManager *v11; // r0 GameLevelManager *v12; // r0 int v13; // r0 int v14; // r1 ButtonSprite *v15; // r2 int v16; // r8 int v17; // r8 GameLevelManager *v18; // r0 const char *v19; // r2 cocos2d::CCLabelBMFont *v20; // r0 cocos2d::CCLabelBMFont *v21; // r7 cocos2d::CCLabelBMFont *v22; // r0 float v23; // r1 float v24; // r2 int v25; // r1 SimplePlayer *v26; // r6 int v27; // r1 float v28; // s15 int (__fastcall *v29)(SimplePlayer *, void **); // r11 GameManager *v30; // r0 int (__fastcall *v31)(SimplePlayer *, void **); // r11 GameManager *v32; // r0 int v33; // r0 GameManager *v34; // r0 GameManager *v35; // r0 int v36; // r0 int v37; // r3 char v38; // r3 int v39; // r3 int v40; // r10 void (__fastcall *v41)(SimplePlayer *, _DWORD); // r10 float v42; // r0 void (__fastcall *v43)(SimplePlayer *, _DWORD); // r10 float v44; // r0 float v45; // s15 float v46; // s16 float v47; // s19 float v48; // s14 const char *v49; // r1 float v50; // s20 float v51; // s19 float v52; // s20 float v53; // s19 int v54; // r0 int v55; // r1 int v56; // r6 void (__fastcall *v57)(int, void **); // r10 float v58; // s15 float v59; // s17 int v60; // r0 float v61; // r1 int v62; // r6 void (__fastcall *v63)(int, void **); // r10 float v64; // s15 const char *v65; // r1 cocos2d::CCString *v66; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v68; // r2 int v69; // r6 void (__fastcall *v70)(int, void **); // r11 int v71; // r1 void (__fastcall *v72)(int, void **); // r11 float v73; // s18 float v74; // s17 float v75; // s15 float v76; // s18 int v77; // r1 void (__fastcall *v78)(cocos2d::CCLabelBMFont *, void **); // r9 void (__fastcall *v79)(cocos2d::CCLabelBMFont *, void **); // r9 void (__fastcall *v80)(cocos2d::CCLabelBMFont *, void **); // r2 float v81; // s14 float v82; // s18 float v83; // s19 float v84; // s16 float v85; // s19 size_t v86; // r0 EmoteSprite *v87; // r0 cocos2d::CCLabelBMFont *v88; // r7 int v89; // r0 int v90; // r2 int v91; // r3 EmoteSprite *v92; // r0 int v93; // r0 int v94; // r2 int v95; // r3 int *v96; // r0 float v97; // s14 float v98; // s16 char *v99; // r1 int v100; // r0 const char *v101; // r2 int v102; // r0 int v103; // r1 cocos2d::CCLabelBMFont *v104; // r2 cocos2d::CCLabelBMFont *v105; // r0 cocos2d::CCLabelBMFont *v106; // r7 void (__fastcall *v107)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 void (__fastcall *v108)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 GameLevelManager *v109; // r0 void (__fastcall *v110)(cocos2d::CCLabelBMFont *, _DWORD *); // r2 char v111; // r3 GameLevelManager *v112; // r0 int SavedDailyLevelFromLevelID; // r0 GameLevelManager *v114; // r0 size_t v115; // r0 float v116; // s18 EmoteSprite *v117; // r0 char v118; // r7 int v119; // r0 int v120; // r7 void (__fastcall *v121)(int, void **); // r8 float v122; // s15 void (__fastcall *v123)(int, void **); // r8 GameLevelManager *v124; // r0 int v125; // r0 int v126; // r1 GameLevelManager *v127; // r0 GameManager *SavedLevel; // r0 const char *v129; // r1 GameLevelManager *v130; // r0 int v131; // r10 const cocos2d::CCPoint *v132; // r9 void (__fastcall *v133)(int, void **); // r8 float v134; // s19 float v135; // r0 void (__fastcall *v136)(cocos2d::CCLabelBMFont *, _DWORD *); // r3 int v137; // r3 int v138; // r3 GameManager *v139; // r0 int v140; // r3 int v141; // r7 char *v142; // r1 ButtonSprite *v143; // r0 const char *v144; // r1 char *v145; // r3 ButtonSprite *v146; // r7 int v147; // r1 int v148; // r7 GameManager *v149; // r0 int v150; // r0 _BOOL4 v151; // r3 int v152; // r2 int v153; // r3 const cocos2d::CCPoint *v154; // r10 float v155; // s14 int v156; // r3 ButtonSprite *v157; // r0 int v158; // r7 int v159; // r8 const cocos2d::CCPoint *v160; // r10 float v161; // s16 void (__fastcall *v162)(int, void **); // r9 float *v163; // r0 float v164; // s16 float v165; // s14 float v166; // s18 float v167; // r9 float v168; // s17 int v169; // r0 int v170; // r7 void (__fastcall *v171)(int, void **); // r8 float v172; // s14 float v173; // s14 float v174; // s15 float v175; // s15 float v176; // s14 cocos2d::CCSpriteFrameCache *v177; // r0 int v178; // r6 const char *v179; // r7 void (__fastcall *v180)(int, int); // r8 cocos2d::CCSpriteFrameCache *v181; // r0 const char *v182; // r1 int v183; // r0 cocos2d::CCString *v184; // r0 cocos2d::CCLabelBMFont *v185; // r0 const char *v186; // r2 int v187; // r0 int v188; // r7 void (__fastcall *v189)(int, void **); // r8 int v190; // r7 int v191; // r10 float v192; // s14 float v193; // s15 float v194; // r1 int v195; // r7 void (__fastcall *v196)(int, void **); // r9 int v197; // r10 const cocos2d::CCPoint *v198; // r0 int v199; // r0 int v200; // r7 int (__fastcall *v201)(int, void **); // r10 GameLevelManager *v202; // r0 int v203; // r3 int v204; // r2 GameLevelManager *v205; // r0 GameLevelManager *v206; // r6 int v207; // r6 unsigned int v208; // r9 GJAccountManager *v209; // r0 const char *v210; // r1 int v211; // r9 int v212; // r10 GameManager *v213; // r0 const char *v214; // r2 int v215; // r6 int v216; // r6 int v217; // r10 float v218; // r1 int v219; // r0 int v220; // r6 float v221; // r1 int v222; // r6 const cocos2d::CCPoint *v223; // r10 void (__fastcall *v224)(int, _DWORD *); // r9 float v225; // s14 float v226; // s15 int v227; // r5 cocos2d::CCLabelBMFont *v228; // r1 cocos2d::CCString *v229; // r0 cocos2d::CCLabelBMFont *v230; // r0 const char *v231; // r2 int v232; // r5 void (__fastcall *v233)(int, _DWORD *); // r7 int v234; // r1 void (__fastcall *v235)(int, _DWORD *); // r7 float v236; // s15 float v237; // r2 char v238; // r0 char v239; // r1 char v240; // r3 int v241; // r0 const char *v242; // r1 const char *v243; // r1 int v244; // r10 int v245; // r9 int v246; // s15 cocos2d::CCNodeRGBA *v247; // r0 int v248; // r3 const cocos2d::CCPoint *v249; // r0 int v250; // r7 void (__fastcall *v251)(int, void **); // r10 float v252; // r1 int v253; // [sp+0h] [bp-ECh] float v254; // [sp+10h] [bp-DCh] int v255; // [sp+14h] [bp-D8h] _BOOL4 v256; // [sp+1Ch] [bp-D0h] int (__fastcall *v257)(int, void **); // [sp+1Ch] [bp-D0h] void (__fastcall *v258)(SimplePlayer *, void **); // [sp+20h] [bp-CCh] void (__fastcall *v259)(int, void **); // [sp+20h] [bp-CCh] void (__fastcall *v260)(int, void **); // [sp+20h] [bp-CCh] int v261; // [sp+28h] [bp-C4h] int v262; // [sp+2Ch] [bp-C0h] int v263; // [sp+30h] [bp-BCh] _BYTE v264[8]; // [sp+34h] [bp-B8h] BYREF char v265[8]; // [sp+3Ch] [bp-B0h] BYREF char v266[8]; // [sp+44h] [bp-A8h] BYREF _BYTE v267[8]; // [sp+4Ch] [bp-A0h] BYREF int (__fastcall *v268)(int, cocos2d::CCObject *, bool); // [sp+54h] [bp-98h] int v269; // [sp+58h] [bp-94h] GameManager *(__fastcall *v270)(GameManager *, cocos2d::CCObject *); // [sp+5Ch] [bp-90h] int v271; // [sp+60h] [bp-8Ch] _DWORD v272[4]; // [sp+64h] [bp-88h] BYREF _DWORD v273[2]; // [sp+74h] [bp-78h] BYREF int v274; // [sp+7Ch] [bp-70h] BYREF int v275; // [sp+80h] [bp-6Ch] cocos2d::CCLabelBMFont *v276; // [sp+84h] [bp-68h] int v277; // [sp+88h] [bp-64h] BYREF int v278; // [sp+8Ch] [bp-60h] cocos2d::CCLabelBMFont *v279; // [sp+90h] [bp-5Ch] int v280[3]; // [sp+94h] [bp-58h] BYREF int v281; // [sp+A0h] [bp-4Ch] BYREF int v282; // [sp+A4h] [bp-48h] ButtonSprite *v283; // [sp+A8h] [bp-44h] int v284; // [sp+ACh] [bp-40h] BYREF int v285; // [sp+B0h] [bp-3Ch] ButtonSprite *v286; // [sp+B4h] [bp-38h] int v287[2]; // [sp+B8h] [bp-34h] BYREF cocos2d::CCLabelBMFont *v288; // [sp+C0h] [bp-2Ch] _DWORD v289[4]; // [sp+C4h] [bp-28h] BYREF void *v290; // [sp+D4h] [bp-18h] BYREF _BYTE *v291; // [sp+D8h] [bp-14h] int v292; // [sp+DCh] [bp-10h] (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 102) + 584))(*((_DWORD *)this + 102), 255); cocos2d::CCObject::retain(a2); v4 = *((cocos2d::CCObject **)this + 109); if ( v4 ) cocos2d::CCObject::release(v4); *((_DWORD *)this + 109) = a2; if ( *((_DWORD *)a2 + 75) ) v5 = 0; else v5 = *((_DWORD *)a2 + 77) > 0; v6 = *((_DWORD *)this + 103); *((_BYTE *)this + 440) = v5; result = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v6 + 292))(v6, 1); if ( !*(_BYTE *)(*((_DWORD *)this + 109) + 324) ) { v8 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(result); v9 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 103) + 232))( *((_DWORD *)this + 103), v8, 2); if ( !*(_BYTE *)(*((_DWORD *)this + 109) + 341) ) { v10 = GameLevelManager::sharedState(v9); v11 = (GameLevelManager *)GameLevelManager::userNameForUserID((GameLevelManager *)&v281, v10); if ( *((_BYTE *)this + 440) ) { v12 = (GameLevelManager *)GameLevelManager::sharedState(v11); GameLevelManager::tryGetUsername((GameLevelManager *)&v284, v12); if ( (v281 & 1) != 0 ) { *(_BYTE *)v283 = 0; v282 = 0; } else { LOWORD(v281) = 0; } std::string::reserve(&v281, 0); v13 = v284; v14 = v285; v15 = v286; v284 = 0; v285 = 0; v286 = nullptr; v281 = v13; v282 = v14; v283 = v15; std::string::~string((int)&v284); } v16 = *((_DWORD *)this + 109); std::string::basic_string(v287, (int)&v281); std::string::operator=((unsigned __int8 *)(v16 + 276), (unsigned __int8 *)v287); std::string::~string((int)v287); v9 = (GameLevelManager *)std::string::~string((int)&v281); } v17 = *(_DWORD *)(*((_DWORD *)this + 109) + 308); if ( !*((_BYTE *)this + 440) && !v17 ) { v18 = (GameLevelManager *)GameLevelManager::sharedState(v9); v17 = GameLevelManager::accountIDForUserID(v18, *(_DWORD *)(*((_DWORD *)this + 109) + 292)); *(_DWORD *)(*((_DWORD *)this + 109) + 308) = v17; } v256 = *(_DWORD *)(*((_DWORD *)this + 109) + 308) == 71; std::string::basic_string(v287, *((_DWORD *)this + 109) + 276); if ( (v287[0] & 1) != 0 ) v20 = v288; else v20 = (cocos2d::CCLabelBMFont *)((char *)v287 + 1); v21 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v20, "goldFont.fnt", v19); std::string::~string((int)v287); if ( *((_BYTE *)this + 442) ) { v22 = v21; v23 = 150.0; v24 = 0.5; } else { v22 = v21; v24 = 0.7; if ( *(_BYTE *)(*((_DWORD *)this + 109) + 340) ) v23 = 100.0; else v23 = 150.0; } cocos2d::CCLabelBMFont::limitLabelWidth(v22, v23, v24, 0.0); if ( *((_BYTE *)this + 440) ) { v46 = 0.0; goto LABEL_72; } if ( !*(_DWORD *)(*((_DWORD *)this + 109) + 356) ) { v46 = 0.0; LABEL_45: v47 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v21 + 164))(v21); v48 = 12.0; v50 = (float)(v46 + 10.0) + (float)(v47 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v21 + 84))(v21)); v51 = 19.5; if ( *((_BYTE *)this + 442) ) v48 = 8.0; v52 = v50 + v48; if ( *((_BYTE *)this + 442) ) v51 = 11.5; v53 = *((float *)this + 101) - v51; if ( *(_BYTE *)(*((_DWORD *)this + 109) + 336) ) { v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sFriendsIcon_001.png", v49); if ( *((_BYTE *)this + 442) ) v55 = 1059648963; else v55 = 1063675494; v56 = v54; (*(void (__fastcall **)(int, int))(*(_DWORD *)v54 + 80))(v54, v55); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v56, 10); v57 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v56 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, v52 + 0.0, v53); v57(v56, &v290); v58 = 15.0; if ( !*((_BYTE *)this + 442) ) v58 = 20.0; v59 = v58 + 0.0; } else { v59 = 0.0; } if ( *(_DWORD *)(*((_DWORD *)this + 109) + 332) == 2 ) { v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"modBadge_02_001.png", v49); if ( *((_BYTE *)this + 442) ) v61 = 0.55; else v61 = 0.75; v62 = v60; (*(void (__fastcall **)(int, float))(*(_DWORD *)v60 + 80))(v60, COERCE_FLOAT(LODWORD(v61))); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v62, 10); v63 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v62 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, v52 + v59, v53); v63(v62, &v290); v64 = 15.0; if ( !*((_BYTE *)this + 442) ) v64 = 22.0; v59 = v59 + v64; } v65 = *(const char **)(*((_DWORD *)this + 109) + 328); if ( (int)v65 > 0 ) { v66 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v65); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v66); v69 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v68); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v69); v70 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v69 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 0.0, 0.5); v70(v69, &v290); if ( *((_BYTE *)this + 442) ) v71 = 1056293520; else v71 = 1058642330; (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 80))(v69, v71); (*(void (__fastcall **)(int, char *))(*(_DWORD *)v69 + 536))(v69, &byte_BEB9C0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 512))(v69, 150); v72 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v69 + 92); v73 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v21 + 164))(v21); v74 = (float)((float)(v46 + 10.0) + v59) + (float)(v73 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v21 + 84))(v21))); v75 = 11.5; if ( !*((_BYTE *)this + 442) ) v75 = 19.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, v74 + 4.0, *((float *)this + 101) - v75); v72(v69, &v290); } LABEL_72: v76 = 18.0; if ( *((_BYTE *)this + 442) ) v76 = 10.0; if ( !v17 || *((_BYTE *)this + 440) || (v77 = *((unsigned __int8 *)a2 + 340), *((_BYTE *)a2 + 340)) ) { (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v21); v78 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v21 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 0.0, 0.5); v78(v21, &v290); v79 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, v46 + 10.0, *((float *)this + 101) - v76); v79(v21, &v290); if ( !v256 && !*((_BYTE *)this + 440) && v17 <= 0 ) { v80 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v21 + 536); LOWORD(v290) = -166; BYTE2(v290) = -1; v80(v21, &v290); } } else { v253 = *((unsigned __int8 *)a2 + 340); v269 = v253; v268 = CommentCell::onViewProfile; v131 = CCMenuItemSpriteExtra::create((int)v21, v77, (int)this, (int)CommentCell::onViewProfile, v253); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v8 + 228))(v8, v131); v132 = *((const cocos2d::CCPoint **)this + 103); v133 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v131 + 92); v134 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v21 + 164))(v21); v135 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v21 + 84))(v21); v21 = (cocos2d::CCLabelBMFont *)v273; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v273, (float)(v46 + 10.0) + (float)((float)(v134 * 0.5) * v135), *((float *)this + 101) - v76); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v289, v132); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v290, v8); v133(v131, &v290); } v81 = *((float *)this + 100); v82 = *((float *)this + 101); v83 = 10.0; v84 = 12.0; if ( *((_BYTE *)this + 442) ) { v83 = 8.0; v84 = 8.0; } v85 = v81 - v83; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v264, v81 * 0.5, v82 * 0.5); if ( !*((_BYTE *)this + 442) ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v289, 0.0, 0.0, 80.0, 80.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v290, (const cocos2d::CCRect *)v289); v21 = (cocos2d::CCLabelBMFont *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &v290); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v290, v85, v82 - v84); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v21 + 160))(v21, &v290); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**((_DWORD **)this + 103) + 232))( *((_DWORD *)this + 103), v21, -1); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v21 + 92))(v21, v264); v136 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v21 + 480); LOWORD(v273[0]) = 16514; BYTE2(v273[0]) = 33; v136(v21, v273); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v21 + 456))(v21, 100); } std::string::basic_string(v287, *((_DWORD *)this + 109) + 264); if ( (v287[0] & 1) == 0 ) v21 = (cocos2d::CCLabelBMFont *)((char *)v287 + 1); v274 = 0; if ( (v287[0] & 1) != 0 ) v21 = v288; v275 = 0; v276 = nullptr; v86 = strlen((const char *)v21); std::string::__init(&v274, v21, v86); std::string::~string((int)v287); v87 = (EmoteSprite *)GameToolbox::stripNonBreakingSpaces(&v274); if ( *((_BYTE *)this + 440) ) v88 = (cocos2d::CCLabelBMFont *)&dword_B4; else v88 = (cocos2d::CCLabelBMFont *)&dword_64; v89 = EmoteSprite::maxEmotesComment(v87); v92 = (EmoteSprite *)EmoteSprite::effectiveLength((unsigned __int8 *)&v274, v89, v90, v91); if ( (int)v92 > (int)v88 ) { v96 = (int *)v88; } else { v93 = EmoteSprite::maxEmotesComment(v92); v96 = (int *)EmoteSprite::effectiveLength((unsigned __int8 *)&v274, v93, v94, v95); } v97 = 0.7; v98 = 1.0; if ( *((_BYTE *)this + 442) ) v97 = 0.6; if ( (float)(int)v96 > (float)((float)(int)v88 * 0.5) ) v98 = v97 + (float)((float)((float)(v88 - (cocos2d::CCLabelBMFont *)v96) / (float)(int)v88) * (float)(1.0 - v97)); if ( *(_BYTE *)(*((_DWORD *)this + 109) + 304) ) { if ( *((_BYTE *)this + 442) ) v99 = "Comment flagged as spam"; else v99 = "Comment flagged as spam"; v96 = std::string::assign(&v274, v99); } if ( !*((_BYTE *)this + 442) ) { if ( (v274 & 1) == 0 ) v88 = (cocos2d::CCLabelBMFont *)((char *)&v274 + 1); v280[0] = 0; if ( (v274 & 1) != 0 ) v88 = v276; v280[1] = 0; v280[2] = 0; v115 = strlen((const char *)v88); std::string::__init(v280, v88, v115); if ( *((_BYTE *)this + 442) ) v116 = 9999.0; else v116 = (float)((float)(v85 - 45.0) * 1.1) / v98; v117 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 0.0, 1.0); v118 = *(_BYTE *)(*((_DWORD *)this + 109) + 304) ^ 1; v119 = EmoteSprite::maxEmotesComment(v117); v120 = TextArea::create( (int)v280, "chatFont.fnt", 1065353216, SLODWORD(v116), (const cocos2d::CCPoint *)&v290, 1101004800, v118, v119); std::string::~string((int)v280); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v120); v121 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v120 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 0.0, 0.5); v121(v120, &v290); v122 = 3.0; v123 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v120 + 92); if ( !*((_BYTE *)this + 442) ) v122 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 10.0, (float)(*((float *)this + 101) * 0.5) - v122); v123(v120, &v290); v124 = (GameLevelManager *)(*(int (__fastcall **)(int, float))(*(_DWORD *)v120 + 80))( v120, COERCE_FLOAT(LODWORD(v98))); if ( v256 ) { LOWORD(v261) = -206; BYTE2(v261) = -1; v125 = v120; v126 = v261; } else { v127 = (GameLevelManager *)GameLevelManager::sharedState(v124); SavedLevel = (GameManager *)GameLevelManager::getSavedLevel(v127, *(_DWORD *)(*((_DWORD *)this + 109) + 300)); if ( (SavedLevel || (v130 = (GameLevelManager *)GameLevelManager::sharedState(nullptr), (SavedLevel = (GameManager *)GameLevelManager::getSavedDailyLevelFromLevelID( v130, *(_DWORD *)(*((_DWORD *)this + 109) + 300))) != nullptr)) && *((_DWORD *)SavedLevel + 101) - *((_DWORD *)SavedLevel + 102) == *(_DWORD *)(*((_DWORD *)this + 109) + 292) ) { LOWORD(v262) = -1; BYTE2(v262) = 75; v125 = v120; v126 = v262; } else { v138 = *((_DWORD *)this + 109); if ( *(int *)(v138 + 332) <= 0 || *((_BYTE *)this + 440) ) goto LABEL_142; v125 = v120; BYTE1(v263) = *(_BYTE *)(v138 + 338); BYTE2(v263) = *(_BYTE *)(v138 + 339); LOBYTE(v263) = *(_BYTE *)(v138 + 337); v126 = v263; } } SavedLevel = (GameManager *)TextArea::colorAllCharactersTo(v125, v126); goto LABEL_142; } v290 = nullptr; v291 = nullptr; v292 = 0; v100 = EmoteSprite::maxEmotesComment((EmoteSprite *)v96); EmoteSprite::parseTokens((unsigned __int8 *)&v274, (int)&v290, v100); v101 = (const char *)v290; if ( v290 != v291 ) { EmoteSprite::replaceTokens(&v277, (unsigned __int8 *)&v274, &v290, 0.0); if ( (v274 & 1) != 0 ) { *(_BYTE *)v276 = 0; v275 = 0; } else { LOWORD(v274) = 0; } std::string::reserve(&v274, 0); v102 = v277; v103 = v278; v104 = v279; v277 = 0; v278 = 0; v279 = nullptr; v274 = v102; v275 = v103; v276 = v104; std::string::~string((int)&v277); } if ( (v274 & 1) != 0 ) v105 = v276; else v105 = (cocos2d::CCLabelBMFont *)((char *)&v274 + 1); v106 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v105, "chatFont.fnt", v101); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v106); v107 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v106 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, 0.0, 0.5); v107(v106, v289); v108 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v106 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, 10.0, (float)(*((float *)this + 101) * 0.5) - 9.0); v108(v106, v289); v109 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v106, 270.0, 0.7, 0.0); if ( v256 ) { v110 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v106 + 536); LOWORD(v289[0]) = -206; v111 = -1; } else { v112 = (GameLevelManager *)GameLevelManager::sharedState(v109); SavedDailyLevelFromLevelID = GameLevelManager::getSavedLevel(v112, *(_DWORD *)(*((_DWORD *)this + 109) + 300)); if ( !SavedDailyLevelFromLevelID && (v114 = (GameLevelManager *)GameLevelManager::sharedState(nullptr), (SavedDailyLevelFromLevelID = GameLevelManager::getSavedDailyLevelFromLevelID( v114, *(_DWORD *)(*((_DWORD *)this + 109) + 300))) == 0) || *(_DWORD *)(SavedDailyLevelFromLevelID + 404) - *(_DWORD *)(SavedDailyLevelFromLevelID + 408) != *(_DWORD *)(*((_DWORD *)this + 109) + 292) ) { v137 = *((_DWORD *)this + 109); if ( *(int *)(v137 + 332) <= 0 || *((_BYTE *)this + 440) ) { LABEL_139: EmoteSprite::attachToLabel((int)v106, *((_DWORD *)this + 103), &v290, 0.0); SavedLevel = (GameManager *)v290; if ( v290 ) { v291 -= 12 * ((715827883 * ((unsigned int)(v291 - (_BYTE *)v290) >> 2)) & 0x3FFFFFFF); operator delete(v290); } LABEL_142: if ( !*(_BYTE *)(*((_DWORD *)this + 109) + 340) ) goto LABEL_173; v139 = (GameManager *)GameManager::sharedState(SavedLevel); if ( *((_DWORD *)v139 + 101) || *(_DWORD *)(GameManager::sharedState(v139) + 408) ) goto LABEL_173; v287[0] = 0; v287[1] = 0; v288 = nullptr; std::string::__init(v287, "GJ_button_01.png", 0x10u); v140 = *((_DWORD *)this + 109); v141 = *(_DWORD *)(v140 + 300); if ( v141 >= 0 ) { if ( *(_DWORD *)(v140 + 344) != 3 ) goto LABEL_148; v142 = "GJ_button_05.png"; } else { v141 = -v141; v142 = "GJ_button_03.png"; } std::string::assign(v287, v142); LABEL_148: GameToolbox::intToString((GameToolbox *)&v281, v141); if ( (v281 & 1) != 0 ) v143 = v283; else v143 = (ButtonSprite *)((char *)&v281 + 1); if ( *((_BYTE *)this + 442) ) v144 = (const char *)&dword_78; else v144 = (const char *)&dword_64; if ( (v287[0] & 1) != 0 ) v145 = (char *)v288; else v145 = (char *)v287 + 1; v146 = ButtonSprite::create(v143, v144, 0, 1.0, 1, "bigFont.fnt", v145, (const char *)0x41F00000, v254); std::string::~string((int)&v281); if ( *((_BYTE *)this + 442) ) v147 = 1053609165; else v147 = 1058642330; (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v146 + 80))(v146, v147); v271 = 0; v270 = CommentCell::onGoToLevel; v148 = CCMenuItemSpriteExtra::create((int)v146, 0, (int)this, (int)CommentCell::onGoToLevel, 0); CCMenuItemSpriteExtra::setSizeMult(v148, 1.2); v149 = (GameManager *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v8 + 228))(v8, v148); if ( *((_BYTE *)this + 440) ) { v151 = 0; } else { v150 = GameManager::sharedState(v149); v151 = *(_DWORD *)(v150 + 820) - *(_DWORD *)(v150 + 824) == 2; } if ( *((_BYTE *)this + 442) ) v152 = 111; else v152 = 135; if ( v151 ) { if ( *((_BYTE *)this + 442) ) v153 = 20; else v153 = 25; v152 += v153; } v154 = *((const cocos2d::CCPoint **)this + 103); v259 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v148 + 92); v155 = 11.5; if ( !*((_BYTE *)this + 442) ) v155 = 19.5; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v273, *((float *)this + 100) - (float)v152, *((float *)this + 101) - v155); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v289, v154); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v290, v8); v259(v148, &v290); std::string::~string((int)v287); LABEL_173: v156 = *((_DWORD *)this + 109); if ( *(_BYTE *)(v156 + 304) ) { v157 = ButtonSprite::create( (ButtonSprite *)"Show", (const char *)&word_28, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41F00000, v254); v158 = (int)v157; if ( *((_BYTE *)this + 442) ) (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v157 + 80))(v157, 1061997773); v272[1] = 0; v272[0] = CommentCell::onUnhide; v159 = CCMenuItemSpriteExtra::create(v158, 0, (int)this, (int)CommentCell::onUnhide, 0); CCMenuItemSpriteExtra::setSizeMult(v159, 1.2); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v8 + 228))(v8, v159); v160 = *((const cocos2d::CCPoint **)this + 103); v161 = *((float *)this + 100); v162 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v159 + 92); v163 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v158 + 164))(v158); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v273, (float)(v161 - (float)(*v163 * 0.5)) - 9.0, *((float *)this + 101) * 0.5); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v289, v160); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v290, v8); v162(v159, &v290); return (cocos2d::CCMenu *)std::string::~string((int)&v274); } if ( *(_BYTE *)(v156 + 341) ) { LABEL_236: std::string::basic_string(&v284, *((_DWORD *)this + 109) + 312); if ( (v284 & 1) != 0 ) v227 = v285; else v227 = (int)(unsigned __int8)v284 >> 1; std::string::~string((int)&v284); if ( v227 ) { std::string::basic_string(v287, *((_DWORD *)this + 109) + 312); if ( (v287[0] & 1) != 0 ) v228 = v288; else v228 = (cocos2d::CCLabelBMFont *)((char *)v287 + 1); v229 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s ago", (const char *)v228); v230 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v229); v232 = cocos2d::CCLabelBMFont::create(v230, "chatFont.fnt", v231); std::string::~string((int)v287); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))( *((_DWORD *)this + 103), v232, 1); v233 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v232 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v272, 1.0, 0.5); v233(v232, v272); if ( *((_BYTE *)this + 442) ) v234 = 1053609165; else v234 = 1057803469; (*(void (__fastcall **)(int, int))(*(_DWORD *)v232 + 80))(v232, v234); (*(void (__fastcall **)(int, char *))(*(_DWORD *)v232 + 536))(v232, &byte_BEB9C0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v232 + 512))(v232, 140); v235 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v232 + 92); v236 = 8.0; if ( *((_BYTE *)this + 442) ) { v237 = 7.0; } else { v236 = 11.0; v237 = 14.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v272, *((float *)this + 100) - v236, v237); v235(v232, v272); } return (cocos2d::CCMenu *)std::string::~string((int)&v274); } v164 = 0.6; v165 = 20.0; if ( *((_BYTE *)this + 442) ) v165 = 14.0; v166 = *((float *)this + 101) - v165; if ( *((_BYTE *)this + 442) ) v167 = 0.3; else v167 = 0.4; v168 = 12.0; if ( !*((_BYTE *)this + 442) ) { v164 = 0.8; v168 = 13.0; } v169 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v129); *((_DWORD *)this + 107) = v169; v170 = v169; v171 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v169 + 92); v172 = 32.0; if ( !*((_BYTE *)this + 442) ) v172 = 35.0; v173 = *((float *)this + 100) - v172; v174 = 0.0; if ( !*((_BYTE *)this + 442) ) v174 = 4.0; v175 = v173 - v174; v176 = 16.0; if ( !*((_BYTE *)this + 442) ) v176 = 20.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, v175 - v176, v166); v171(v170, &v290); v177 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 107) + 80))( *((_DWORD *)this + 107), COERCE_FLOAT(LODWORD(v164))); v178 = *((_DWORD *)this + 107); v179 = *(const char **)(*((_DWORD *)this + 109) + 296); v180 = *(void (__fastcall **)(int, int))(*(_DWORD *)v178 + 580); v181 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v177); if ( (int)v179 < 0 ) v182 = "GJ_dislikesIcon_001.png"; else v182 = "GJ_likesIcon_001.png"; v183 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v181, v182); v180(v178, v183); v184 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v179); v185 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v184); v187 = cocos2d::CCLabelBMFont::create(v185, "bigFont.fnt", v186); *((_DWORD *)this + 108) = v187; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v187); v188 = *((_DWORD *)this + 108); v189 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v188 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 0.5, 0.5); v189(v188, &v290); v190 = *((_DWORD *)this + 108); v260 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v190 + 92); v191 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 107) + 96))(*((_DWORD *)this + 107)); v192 = 14.0; if ( *((_BYTE *)this + 442) ) v192 = 8.0; v193 = 1.0; if ( !*((_BYTE *)this + 442) ) v193 = 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, v168 + v192, v193 + 0.0); cocos2d::CCPoint::operator+(&v290, v191, v289); v260(v190, &v290); (*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 108) + 80))( *((_DWORD *)this + 108), COERCE_FLOAT(LODWORD(v167))); if ( *((_BYTE *)this + 442) ) v194 = 15.0; else v194 = 28.0; cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 108), v194, v167, 0.0); v195 = *((_DWORD *)this + 107); v196 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v195 + 92); v197 = (*(int (__fastcall **)(int))(*(_DWORD *)v195 + 96))(v195); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, 0.0, 2.0); cocos2d::CCPoint::operator+(&v290, v197, v289); v196(v195, &v290); v198 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 107) + 96))(*((_DWORD *)this + 107)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, v198); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 107) + 92))( *((_DWORD *)this + 107), &unk_D2B804); v199 = *((_DWORD *)this + 107); v272[2] = CommentCell::onLike; v272[3] = 0; v200 = CCMenuItemSpriteExtra::create(v199, 0, (int)this, (int)CommentCell::onLike, 0); CCMenuItemSpriteExtra::setSizeMult(v200, 2.0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v8 + 228))(v8, v200); v201 = *(int (__fastcall **)(int, void **))(*(_DWORD *)v200 + 92); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v289, *((const cocos2d::CCPoint **)this + 103)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v290, v8); v202 = (GameLevelManager *)v201(v200, &v290); v203 = *((_DWORD *)this + 109); v204 = *(_DWORD *)(v203 + 344); if ( v204 != 4 ) { if ( *(int *)(v203 + 300) <= 0 || v204 == 3 ) { if ( !v256 ) { v207 = *(unsigned __int8 *)(v203 + 342); goto LABEL_207; } } else { v205 = (GameLevelManager *)GameLevelManager::sharedState(v202); v202 = (GameLevelManager *)GameLevelManager::getSavedLevel( v205, *(_DWORD *)(*((_DWORD *)this + 109) + 300)); v206 = v202; if ( !v256 ) { if ( v202 ) { v202 = (GameLevelManager *)GameManager::sharedState(v202); if ( *((_DWORD *)v202 + 116) - *((_DWORD *)v202 + 117) == *((_DWORD *)v206 + 101) - *((_DWORD *)v206 + 102) ) { v202 = (GameLevelManager *)GameManager::sharedState(v202); v207 = *((_DWORD *)v202 + 116) - *((_DWORD *)v202 + 117) > 0; goto LABEL_207; } } } } } v207 = 0; LABEL_207: v208 = *(_DWORD *)(*((_DWORD *)this + 109) + 344) - 4; v209 = (GJAccountManager *)GameManager::sharedState(v202); if ( *((_DWORD *)v209 + 116) - *((_DWORD *)v209 + 117) > 0 && (v209 = (GJAccountManager *)GameManager::sharedState(v209), *((_DWORD *)v209 + 116) - *((_DWORD *)v209 + 117) == *(_DWORD *)(*((_DWORD *)this + 109) + 292)) ) { if ( v208 > 1 ) { v211 = 1; goto LABEL_213; } } else { if ( v208 > 1 ) { v211 = 0; LABEL_213: if ( *((_BYTE *)this + 440) ) { v212 = *(_DWORD *)(*((_DWORD *)this + 109) + 308); v209 = (GJAccountManager *)GJAccountManager::sharedState(v209); if ( v212 == *((_DWORD *)v209 + 70) - *((_DWORD *)v209 + 71) ) goto LABEL_223; } if ( v211 ) goto LABEL_223; if ( v207 ) goto LABEL_223; v213 = (GameManager *)GameManager::sharedState(v209); v214 = *((const char **)v213 + 206); if ( *((_DWORD *)v213 + 205) - (_DWORD)v214 == 2 ) goto LABEL_223; LABEL_267: v216 = 0; LABEL_227: *((_DWORD *)this + 111) = 0; if ( !*((_BYTE *)this + 440) && *(_DWORD *)(*((_DWORD *)this + 109) + 344) != 5 ) { v241 = GameManager::sharedState(v213); v214 = *(const char **)(v241 + 824); if ( *(_DWORD *)(v241 + 820) - (_DWORD)v214 == 2 ) { v244 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v242); v245 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_checkOff_001.png", v243); v246 = 1058642330; if ( *((_BYTE *)this + 442) ) v246 = 1055286886; (*(void (__fastcall **)(int, int))(*(_DWORD *)v244 + 80))(v244, v246); (*(void (__fastcall **)(int, int))(*(_DWORD *)v245 + 80))(v245, v246); v289[1] = 0; v289[0] = CommentCell::onBulkSelectToggle; v247 = CCMenuItemToggler::create(v245, v244, (int)this, (int)CommentCell::onBulkSelectToggle, 0); v248 = *((_DWORD *)this + 109); *((_DWORD *)this + 111) = v247; CCMenuItemToggler::toggle(v247, *(unsigned __int8 *)(v248 + 348)); CCMenuItemToggler::setSizeMult(*((CCMenuItemToggler **)this + 111), 1.3); *(_BYTE *)(*((_DWORD *)this + 111) + 309) = 1; (*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v8 + 228))( v8, *((_DWORD *)this + 111)); if ( v216 ) v249 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v216 + 96))(v216); else v249 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v200 + 96))(v200); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v267, v249); v250 = *((_DWORD *)this + 111); v251 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v250 + 92); if ( *((_BYTE *)this + 442) ) v252 = -21.0; else v252 = -24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v272, v252, 0.0); cocos2d::CCPoint::operator+(&v290, v267, v272); v251(v250, &v290); } } v219 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"...", "bigFont.fnt", v214); v220 = v219; if ( *((_BYTE *)this + 442) ) v221 = 0.4; else v221 = 0.5; (*(void (__fastcall **)(int, float))(*(_DWORD *)v219 + 80))(v219, COERCE_FLOAT(LODWORD(v221))); (*(void (__fastcall **)(int, int))(*(_DWORD *)v220 + 512))(v220, 120); v291 = nullptr; v290 = CommentCell::onMoreOptions; v222 = CCMenuItemSpriteExtra::create(v220, 0, (int)this, (int)CommentCell::onMoreOptions, 0); CCMenuItemSpriteExtra::setSizeMult(v222, 1.6); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v8 + 228))(v8, v222); v223 = *((const cocos2d::CCPoint **)this + 103); v224 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v222 + 92); v225 = 12.0; if ( *((_BYTE *)this + 442) ) v225 = 10.0; v226 = 7.0; if ( !*((_BYTE *)this + 442) ) v226 = 9.0; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v266, *((float *)this + 100) - v225, *((float *)this + 101) - v226); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v267, v223); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v272, v8); v224(v222, v272); goto LABEL_236; } v213 = (GameManager *)GameManager::sharedState(v209); v214 = *((const char **)v213 + 206); if ( *((_DWORD *)v213 + 205) - (_DWORD)v214 != 2 || *(_DWORD *)(*((_DWORD *)this + 109) + 332) == 2 ) goto LABEL_267; } LABEL_223: v215 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteIcon_001.png", v210); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v215 + 80))(v215, v164 * 0.95); v273[1] = 0; v273[0] = CommentCell::onConfirmDelete; v216 = CCMenuItemSpriteExtra::create(v215, 0, (int)this, (int)CommentCell::onConfirmDelete, 0); CCMenuItemSpriteExtra::setSizeMult(v216, 2.0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v8 + 228))(v8, v216); v257 = *(int (__fastcall **)(int, void **))(*(_DWORD *)v216 + 92); v217 = (*(int (__fastcall **)(int))(*(_DWORD *)v200 + 96))(v200); if ( *((_BYTE *)this + 442) ) v218 = -20.0; else v218 = -24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, v218, -1.0); cocos2d::CCPoint::operator+(&v290, v217, v289); v213 = (GameManager *)v257(v216, &v290); goto LABEL_227; } v238 = *(_BYTE *)(v137 + 338); v239 = *(_BYTE *)(v137 + 339); v240 = *(_BYTE *)(v137 + 337); v110 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v106 + 536); BYTE1(v289[0]) = v238; LOBYTE(v289[0]) = v240; BYTE2(v289[0]) = v239; LABEL_252: v110(v106, v289); goto LABEL_139; } v110 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v106 + 536); LOWORD(v289[0]) = -1; v111 = 75; } BYTE2(v289[0]) = v111; goto LABEL_252; } v26 = (SimplePlayer *)SimplePlayer::create((SimplePlayer *)((char *)&dword_0 + 1), v25); (*(void (__fastcall **)(_DWORD, SimplePlayer *, int))(**((_DWORD **)this + 103) + 232))( *((_DWORD *)this + 103), v26, 1); if ( *((_BYTE *)this + 442) ) v27 = 1055286887; else v27 = 1058642330; (*(void (__fastcall **)(SimplePlayer *, int))(*(_DWORD *)v26 + 80))(v26, v27); v28 = 11.0; v29 = *(int (__fastcall **)(SimplePlayer *, void **))(*(_DWORD *)v26 + 92); if ( !*((_BYTE *)this + 442) ) v28 = 19.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v290, 20.0, *((float *)this + 101) - v28); v30 = (GameManager *)v29(v26, &v290); v31 = *(int (__fastcall **)(SimplePlayer *, void **))(*(_DWORD *)v26 + 480); v32 = (GameManager *)GameManager::sharedState(v30); v33 = GameManager::colorForIdx(v32, *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 109) + 356) + 336)); LOWORD(v290) = v33; BYTE2(v290) = BYTE2(v33); v34 = (GameManager *)v31(v26, &v290); v35 = (GameManager *)GameManager::sharedState(v34); v36 = GameManager::colorForIdx(v35, *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 109) + 356) + 340)); LOWORD(v290) = v36; BYTE2(v290) = BYTE2(v36); SimplePlayer::setSecondColor(v26, &v290); SimplePlayer::tryEnableCustomGlowColor(v26, *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 109) + 356) + 344)); v37 = *(_DWORD *)(*((_DWORD *)this + 109) + 356); if ( *(_DWORD *)(v37 + 348) == 2 ) v38 = 1; else v38 = *(_BYTE *)(v37 + 504); *((_BYTE *)v26 + 540) = v38; v39 = *(_DWORD *)(*((_DWORD *)this + 109) + 356); v40 = *(_DWORD *)(v39 + 352); SimplePlayer::updatePlayerFrame(v26, *(_DWORD *)(v39 + 332), v40); SimplePlayer::updateColors(v26); switch ( v40 ) { case 4: v41 = *(void (__fastcall **)(SimplePlayer *, _DWORD))(*(_DWORD *)v26 + 80); v42 = COERCE_FLOAT((*(int (__fastcall **)(SimplePlayer *))(*(_DWORD *)v26 + 84))(v26)); v41(v26, v42 * 1.15); v258 = *(void (__fastcall **)(SimplePlayer *, void **))(*(_DWORD *)v26 + 92); v255 = (*(int (__fastcall **)(SimplePlayer *))(*(_DWORD *)v26 + 96))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, 1.0, 0.0); cocos2d::CCPoint::operator+(&v290, v255, v289); v258(v26, &v290); LABEL_44: v46 = 26.0; goto LABEL_45; case 6: case 1: v43 = *(void (__fastcall **)(SimplePlayer *, _DWORD))(*(_DWORD *)v26 + 80); v44 = COERCE_FLOAT((*(int (__fastcall **)(SimplePlayer *))(*(_DWORD *)v26 + 84))(v26)); v45 = 0.9; break; case 3: v43 = *(void (__fastcall **)(SimplePlayer *, _DWORD))(*(_DWORD *)v26 + 80); v44 = COERCE_FLOAT((*(int (__fastcall **)(SimplePlayer *))(*(_DWORD *)v26 + 84))(v26)); v45 = 0.95; break; default: goto LABEL_44; } v43(v26, v44 * v45); goto LABEL_44; } return result; }