// // NewsPopup::rebuildPage from 0x6c1b44 to 0x6c2704 (3008 bytes) // // 6 xrefs: // > NewsPopup::onPrevPage @ 0x6c271e // > NewsPopup::onNextPage @ 0x6c2740 // > NewsPopup::newsImageFailed @ 0x6c27c6 // > NewsPopup::onBlockClicked @ 0x6c28c2 // > NewsPopup::newsImageDownloaded @ 0x6c2c02 // > NewsPopup::refreshFromManager @ 0x6c309a // // 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:56:52 +0000 // int __fastcall NewsPopup::rebuildPage(NewsPopup *this, int a2) { int v4; // r7 ScrollableContentLayer *v5; // r0 int v6; // r0 float v7; // s22 int v8; // r8 float v9; // s23 int v10; // r1 int *v11; // r6 int v12; // r3 const char *v13; // r2 int v14; // r0 int v15; // r6 void (__fastcall *v16)(int, int *); // r8 MusicDownloadManager *v17; // r0 MusicDownloadManager *v18; // r0 int (__fastcall *v20)(int *, int); // r9 cocos2d::CCString *v21; // r0 int CString; // r0 cocos2d::CCMenu *v23; // r0 int v24; // r8 int v25; // r6 int v26; // r0 _DWORD *v27; // r11 const char *v28; // r2 cocos2d::CCLabelBMFont *v29; // r0 int v30; // r10 void (__fastcall *v31)(int, int *); // r9 void (__fastcall *v32)(int, int *); // r9 const char *v33; // r1 int v34; // r6 void (__fastcall *v35)(int, int *); // r8 const char *v36; // r2 int v37; // r0 int v38; // r1 cocos2d::CCLabelBMFont *v39; // r2 cocos2d::CCLabelBMFont *v40; // r0 cocos2d::CCLabelBMFont *v41; // r6 void (__fastcall *v42)(cocos2d::CCLabelBMFont *, int *); // r9 void (__fastcall *v43)(cocos2d::CCLabelBMFont *, int *); // r9 float v44; // s16 float v45; // s16 float v46; // s19 float v47; // s18 const char *v48; // r2 const char *v49; // r5 int v50; // r3 int v51; // r8 int v52; // r3 unsigned __int8 *v53; // r2 unsigned __int8 *v54; // r3 unsigned __int8 *v55; // r1 unsigned __int8 *v56; // r6 int v57; // lr int v58; // r6 int v59; // r8 unsigned int v60; // r10 int v61; // r3 int v62; // r3 unsigned int v63; // r3 const char *v64; // r2 unsigned __int8 *v65; // r1 unsigned __int8 *v66; // r3 unsigned __int8 *v67; // r6 int v68; // r0 int i; // r6 unsigned __int8 *v70; // r1 int v71; // r3 int v72; // r3 float *v73; // r5 void (__fastcall *v74)(float *, _BYTE *); // r10 void (__fastcall *v75)(float *, _BYTE *); // r10 cocos2d::CCLabelBMFont *v76; // r0 cocos2d::CCLabelBMFont *v77; // r5 void (__fastcall *v78)(cocos2d::CCLabelBMFont *, int *); // r3 float v79; // s25 float v80; // s25 float v81; // s17 float v82; // r0 float v83; // s17 int v84; // r8 void (__fastcall *v85)(int, int *); // r9 void (__fastcall *v86)(cocos2d::CCLabelBMFont *, int *); // r9 _BYTE *v87; // r5 void (__fastcall *v88)(_BYTE *, int *); // r8 void (__fastcall *v89)(_BYTE *, int *); // r8 float v90; // s17 int v91; // r2 int v92; // r3 float v93; // s17 cocos2d::CCSprite *v94; // r0 int v95; // r6 void (__fastcall *v96)(int, int *); // r8 MusicDownloadManager *v97; // r0 unsigned __int8 *v98; // r10 MusicDownloadManager *v99; // r0 const char *v100; // r1 cocos2d::CCSprite *v101; // r0 int v102; // r8 const char *v103; // r0 int v104; // r8 void (__fastcall *v105)(int, _DWORD); // r9 float *v106; // r0 void (__fastcall *v107)(int, _DWORD); // r9 int v108; // r0 const char *v109; // r1 int v110; // r5 void (__fastcall *v111)(int, int *); // r9 int v112; // r0 const char *v113; // r2 int v114; // r8 char *v115; // r0 int v116; // r5 MusicDownloadManager *v117; // r0 int v118; // r8 int v119; // r3 int v120; // r2 int v121; // r3 _BYTE *v122; // r5 void (__fastcall *v123)(_BYTE *, int *); // r9 float v124; // s16 float v125; // r1 int v126; // r8 int v127; // [sp+10h] [bp-D4h] cocos2d::CCFileUtils *v128; // [sp+18h] [bp-CCh] int isNewsImageDownloaded; // [sp+18h] [bp-CCh] int v130; // [sp+1Ch] [bp-C8h] float v131[2]; // [sp+3Ch] [bp-A8h] BYREF _BYTE v132[8]; // [sp+44h] [bp-A0h] BYREF _BYTE v133[8]; // [sp+4Ch] [bp-98h] BYREF _DWORD (__fastcall *v134)(NewsPopup *__hidden, cocos2d::CCObject *); // [sp+54h] [bp-90h] int v135; // [sp+58h] [bp-8Ch] _DWORD (__fastcall *v136)(NewsPopup *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-88h] int v137; // [sp+60h] [bp-84h] _BYTE v138[8]; // [sp+64h] [bp-80h] BYREF int v139; // [sp+6Ch] [bp-78h] BYREF int v140; // [sp+70h] [bp-74h] cocos2d::CCLabelBMFont *v141; // [sp+74h] [bp-70h] void *v142; // [sp+78h] [bp-6Ch] BYREF _BYTE *v143; // [sp+7Ch] [bp-68h] int v144; // [sp+80h] [bp-64h] int v145; // [sp+84h] [bp-60h] BYREF int v146; // [sp+88h] [bp-5Ch] cocos2d::CCLabelBMFont *v147; // [sp+8Ch] [bp-58h] int v148[3]; // [sp+90h] [bp-54h] BYREF int v149[3]; // [sp+9Ch] [bp-48h] BYREF int v150[3]; // [sp+A8h] [bp-3Ch] BYREF int v151[3]; // [sp+B4h] [bp-30h] BYREF int v152[2]; // [sp+C0h] [bp-24h] BYREF char *filename; // [sp+C8h] [bp-1Ch] int v154; // [sp+CCh] [bp-18h] BYREF int *v155; // [sp+D0h] [bp-14h] int *v156; // [sp+D4h] [bp-10h] v4 = *(_DWORD *)(*((_DWORD *)this + 137) + 320); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 292))(v4, 1); v5 = *((ScrollableContentLayer **)this + 137); *((_DWORD *)this + 138) = 0; *((_BYTE *)this + 556) = 0; *((_DWORD *)this + 141) = 0; ScrollableContentLayer::scrollTo(v5, 0.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v131, (const cocos2d::CCSize *)(*((_DWORD *)this + 137) + 324)); v6 = *((_DWORD *)this + 142); v7 = v131[0]; v8 = -858993459 * ((*((_DWORD *)this + 133) - *((_DWORD *)this + 132)) >> 3); v9 = v131[1]; if ( v8 <= 0 ) v10 = 0; else v10 = v8 - 1; if ( v10 >= (a2 & ~(a2 >> 31)) ) v10 = a2 & ~(a2 >> 31); *((_DWORD *)this + 135) = v10; (*(void (__fastcall **)(int, bool))(*(_DWORD *)v6 + 172))(v6, v10 > 0); (*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 143) + 172))( *((_DWORD *)this + 143), *((_DWORD *)this + 135) < v8 - 1); v11 = *((int **)this + 140); v12 = *v11; if ( !v8 ) { (*(void (__fastcall **)(_DWORD, void *))(v12 + 464))(*((_DWORD *)this + 140), &unk_B6B226); v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Loading news...", "bigFont.fnt", v13); *((_DWORD *)this + 141) = v14; (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1057803469); v15 = *((_DWORD *)this + 141); v16 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, v7 * 0.5, -(float)(v9 * 0.5)); v16(v15, &v154); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v4 + 228))(v4, *((_DWORD *)this + 141)); ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 137), v9); v18 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v17); return MusicDownloadManager::tryUpdateNewsFeed(v18); } v20 = *(int (__fastcall **)(int *, int))(v12 + 464); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i of %i", (const char *)(*((_DWORD *)this + 135) + 1), v8); CString = cocos2d::CCString::getCString(v21); v23 = (cocos2d::CCMenu *)v20(v11, CString); v24 = *((_DWORD *)this + 132); v25 = 40 * *((_DWORD *)this + 135); v26 = cocos2d::CCMenu::create(v23); v27 = (_DWORD *)(v24 + v25); *((_DWORD *)this + 138) = v26; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v26 + 148))(v26, &unk_D2D7C8); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 138) + 160))(*((_DWORD *)this + 138), &unk_D2D7D0); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 138) + 92))(*((_DWORD *)this + 138), &unk_D2D7C8); (*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v4 + 232))(v4, *((_DWORD *)this + 138), 5); if ( (*(_BYTE *)(v24 + v25 + 4) & 1) != 0 ) v29 = (cocos2d::CCLabelBMFont *)v27[3]; else v29 = (cocos2d::CCLabelBMFont *)((char *)v27 + 5); v30 = cocos2d::CCLabelBMFont::create(v29, "goldFont.fnt", v28); (*(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 80))(v30, 1055286886); v31 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v30 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 0.0, 1.0); v31(v30, &v154); v32 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v30 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 20.0, -10.0); v32(v30, &v154); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 228))(v4, v30); if ( *(_DWORD *)(v24 + v25) > *((_DWORD *)this + 136) ) { v34 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"newMusicIcon_001.png", v33); v35 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v34 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, v7 - 20.0, -20.0); v35(v34, &v154); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v4 + 232))(v4, v34, 6); } std::string::basic_string(&v139, (int)(v27 + 4)); v142 = nullptr; v143 = nullptr; v144 = 0; EmoteSprite::parseTokens((unsigned __int8 *)&v139, (int)&v142, 3); v36 = (const char *)v142; if ( v142 != v143 ) { EmoteSprite::replaceTokens(&v145, (unsigned __int8 *)&v139, &v142, 0.0); if ( (v139 & 1) != 0 ) { *(_BYTE *)v141 = 0; v140 = 0; } else { LOWORD(v139) = 0; } std::string::reserve(&v139, 0); v37 = v145; v38 = v146; v39 = v147; v145 = 0; v146 = 0; v147 = nullptr; v139 = v37; v140 = v38; v141 = v39; std::string::~string((int)&v145); } if ( (v139 & 1) != 0 ) v40 = v141; else v40 = (cocos2d::CCLabelBMFont *)((char *)&v139 + 1); v41 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v40, "bigFont.fnt", v36); cocos2d::CCLabelBMFont::limitLabelWidth(v41, (float)(v7 - 40.0) - 30.0, 0.62, 0.3); v42 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v41 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 0.0, 1.0); v42(v41, &v154); v43 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v41 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 20.0, -32.0); v43(v41, &v154); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v4 + 228))(v4, v41); EmoteSprite::attachToLabel((int)v41, v4, &v142, 0.0); v44 = *(float *)((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v41 + 164))(v41) + 4); v127 = 0; v45 = -32.0 - (float)((float)(v44 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v41 + 84))(v41)) + 12.0); v46 = (float)(v7 - 40.0) - 20.0; v47 = (float)(v7 - 40.0) - 10.0; while ( 1 ) { v48 = (const char *)v27[7]; if ( v127 >= -991146299 * ((v27[8] - (int)v48) >> 2) ) break; v49 = &v48[52 * v127]; v50 = *(_DWORD *)v49; if ( !*(_DWORD *)v49 ) { v154 = 0; v155 = nullptr; v156 = nullptr; v51 = *((unsigned __int8 *)v49 + 4); if ( (v51 & 1) != 0 ) { v52 = *((_DWORD *)v49 + 2); v53 = *((unsigned __int8 **)v49 + 3); if ( v52 ) goto LABEL_29; v58 = -1; goto LABEL_37; } v52 = v51 >> 1; if ( v51 >> 1 ) { v53 = (unsigned __int8 *)(v49 + 5); LABEL_29: v54 = &v53[v52]; v55 = v53; while ( 1 ) { v56 = v55; if ( v55 == v54 ) break; v57 = *v55++; if ( v57 == 10 ) { v58 = v56 - v53; goto LABEL_34; } } v58 = -1; LABEL_34: if ( (v51 & 1) != 0 ) { LABEL_37: v59 = *((_DWORD *)v49 + 2); goto LABEL_40; } } else { v58 = -1; } v59 = v51 >> 1; LABEL_40: v60 = 0; while ( 1 ) { std::string::basic_string(v152, (unsigned __int8 *)v49 + 4, v60, v58 - v60); if ( (v152[0] & 1) != 0 ) v61 = v152[1]; else v61 = (int)LOBYTE(v152[0]) >> 1; if ( v61 || v60 != v59 ) { if ( v155 == v156 ) { std::vector::__push_back_slow_path(&v154, (int)v152); } else { if ( v155 ) std::string::basic_string(v155, (int)v152); v155 += 3; } } if ( v58 == -1 ) break; v62 = *((unsigned __int8 *)v49 + 4); v60 = v58 + 1; if ( (v62 & 1) != 0 ) { v63 = *((_DWORD *)v49 + 2); v64 = *((const char **)v49 + 3); } else { v63 = v62 >> 1; v64 = v49 + 5; } if ( v60 < v63 ) { v65 = (unsigned __int8 *)&v64[v60]; v66 = (unsigned __int8 *)&v64[v63]; while ( 1 ) { v67 = v65; if ( v65 == v66 ) break; v68 = *v65++; if ( v68 == 10 ) { v58 = v67 - (unsigned __int8 *)v64; goto LABEL_60; } } } v58 = -1; LABEL_60: std::string::~string((int)v152); } std::string::~string((int)v152); for ( i = 0; i < -1431655765 * (((int)v155 - v154) >> 2); ++i ) { v70 = (unsigned __int8 *)(v154 + 12 * i); v71 = *v70; if ( (v71 & 1) != 0 ) v72 = *((_DWORD *)v70 + 1); else v72 = v71 >> 1; if ( v72 ) { std::string::basic_string(v148, (int)v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 0.0, 1.0); v73 = (float *)TextArea::create( (int)v148, "chatFont.fnt", 1065353216, COERCE_INT(v46 / 0.75), (const cocos2d::CCPoint *)v138, COERCE_INT(20.0), 0, 10); std::string::~string((int)v148); v74 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v73 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 0.0, 1.0); v74(v73, v138); (*(void (__fastcall **)(float *, float))(*(_DWORD *)v73 + 80))(v73, 0.75); v75 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v73 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, 20.0, v45); v75(v73, v138); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v4 + 228))(v4, v73); v45 = v45 - (float)((float)((float)(v73[87] + 20.0) * 0.75) + 4.0); } else { v45 = v45 - 10.0; } } v45 = v45 - 4.0; std::__vector_base::~__vector_base((int)&v154); goto LABEL_107; } if ( v50 == 2 ) { if ( (v49[4] & 1) != 0 ) v76 = *((cocos2d::CCLabelBMFont **)v49 + 3); else v76 = (cocos2d::CCLabelBMFont *)(v49 + 5); v77 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v76, "chatFont.fnt", v48); v78 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v77 + 536); LOWORD(v154) = -14286; BYTE2(v154) = -1; v78(v77, &v154); cocos2d::CCLabelBMFont::limitLabelWidth(v77, v46, 0.75, 0.3); v79 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v77 + 164))(v77); v80 = v79 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v77 + 84))(v77)); v81 = *(float *)((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v77 + 164))(v77) + 4); v82 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v77 + 84))(v77); v83 = v81 * v82; v84 = cocos2d::CCSprite::create((cocos2d::CCSprite *)LODWORD(v82)); v85 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v84 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v154, v80, v83); v85(v84, &v154); (*(void (__fastcall **)(int, int))(*(_DWORD *)v84 + 492))(v84, 1); v86 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v77 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, v80 * 0.5, v83 * 0.5); v86(v77, &v154); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v84 + 228))(v84, v77); v135 = 0; v134 = NewsPopup::onBlockClicked; v87 = (_BYTE *)CCMenuItemSpriteExtra::create(v84, 0, (int)this, (int)NewsPopup::onBlockClicked, 0); (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v87 + 36))(v87, v127); v88 = *(void (__fastcall **)(_BYTE *, int *))(*(_DWORD *)v87 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v154, v80, v83); v88(v87, &v154); CCMenuItemSpriteExtra::setSizeMult((int)v87, 1.2); v87[320] = 0; v89 = *(void (__fastcall **)(_BYTE *, int *))(*(_DWORD *)v87 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, (float)(v80 * 0.5) + 20.0, v45 - (float)(v83 * 0.5)); v89(v87, &v154); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 138) + 228))(*((_DWORD *)this + 138), v87); v90 = v83 + 8.0; goto LABEL_106; } if ( v50 == 1 ) { v91 = *((_DWORD *)v49 + 7); if ( v91 > 0 ) { v92 = *((_DWORD *)v49 + 8); if ( v92 > 0 ) { v93 = v47 * (float)((float)v92 / (float)v91); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v132, v7 * 0.5, v45 - (float)(v93 * 0.5)); v94 = (cocos2d::CCSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, v47 * 0.5, v93 * 0.5); v95 = cocos2d::CCSprite::create(v94); v96 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v95 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v154, v47, v93); v96(v95, &v154); v97 = (MusicDownloadManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v95 + 492))(v95, 1); v98 = (unsigned __int8 *)(v49 + 16); v128 = (cocos2d::CCFileUtils *)MusicDownloadManager::sharedState(v97); std::string::basic_string(v149, (int)(v49 + 16)); isNewsImageDownloaded = MusicDownloadManager::isNewsImageDownloaded(v128, (int)v149); v99 = (MusicDownloadManager *)std::string::~string((int)v149); if ( !isNewsImageDownloaded ) goto LABEL_80; v130 = MusicDownloadManager::sharedState(v99); std::string::basic_string(v150, (int)(v49 + 16)); MusicDownloadManager::pathForNewsImage((MusicDownloadManager *)v152, v130, (unsigned __int8 *)v150); std::string::~string((int)v150); v101 = (v152[0] & 1) != 0 ? (cocos2d::CCSprite *)filename : (cocos2d::CCSprite *)((char *)v152 + 1); v102 = cocos2d::CCSprite::create(v101, v100); if ( v102 ) { std::__tree::__emplace_unique_key_args( (int)&v154, (int **)this + 150, (unsigned __int8 *)v152, (int)v152); v105 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v102 + 64); v106 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v102 + 164))(v102); v105(v102, v47 / *v106); v107 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v102 + 72); v108 = (*(int (__fastcall **)(int))(*(_DWORD *)v102 + 164))(v102); v107(v102, v93 / *(float *)(v108 + 4)); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v102 + 92))(v102, v133); (*(void (__fastcall **)(int, int))(*(_DWORD *)v95 + 228))(v95, v102); if ( v49[36] ) { v126 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"youtubePlayButton_001.png", v109); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v126 + 92))(v126, v133); (*(void (__fastcall **)(int, int))(*(_DWORD *)v126 + 80))(v126, 1067450368); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v95 + 232))(v95, v126, 2); } v104 = 1; } else { v103 = (v152[0] & 1) != 0 ? filename : (char *)v152 + 1; remove(v103); std::__tree::__emplace_unique_key_args( (int)v138, (int **)this + 147, (unsigned __int8 *)v49 + 16, (int)(v49 + 16)); v104 = 0; } std::string::~string((int)v152); if ( v104 ) { v119 = *((unsigned __int8 *)v49 + 40); v120 = v119 << 31; if ( (v119 & 1) != 0 ) v121 = *((_DWORD *)v49 + 11); else v121 = v119 >> 1; if ( v121 ) goto LABEL_104; (*(void (__fastcall **)(int, _BYTE *, int))(*(_DWORD *)v95 + 92))(v95, v132, v120); (*(void (__fastcall **)(int))(*(_DWORD *)v4 + 228))(v4); } else { LABEL_80: cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v154, 0.0, 0.0, 40.0, 40.0); v110 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v154); v111 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v110 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v154, v47, v93); v111(v110, &v154); (*(void (__fastcall **)(int, int))(*(_DWORD *)v110 + 456))(v110, 90); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v110 + 92))(v110, v133); (*(void (__fastcall **)(int, int))(*(_DWORD *)v95 + 228))(v95, v110); v112 = std::__tree::__count_unique((int)this + 588, v98); v114 = v112; if ( v112 ) v114 = 1; if ( v114 ) v115 = "Tap to retry"; else v115 = "Loading..."; v116 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v115, "bigFont.fnt", v113); (*(void (__fastcall **)(int, int))(*(_DWORD *)v116 + 80))(v116, 1056964608); (*(void (__fastcall **)(int, int))(*(_DWORD *)v116 + 512))(v116, 150); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v116 + 92))(v116, v133); v117 = (MusicDownloadManager *)(*(int (__fastcall **)(int, int, int))(*(_DWORD *)v95 + 232))(v95, v116, 2); if ( !v114 ) { v118 = MusicDownloadManager::sharedState(v117); std::string::basic_string(v151, (int)v98); MusicDownloadManager::downloadNewsImage(v118, (unsigned __int8 *)v151); std::string::~string((int)v151); } LABEL_104: v137 = 0; v136 = NewsPopup::onBlockClicked; v122 = (_BYTE *)CCMenuItemSpriteExtra::create(v95, 0, (int)this, (int)NewsPopup::onBlockClicked, 0); (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)v122 + 36))(v122, v127); v123 = *(void (__fastcall **)(_BYTE *, int *))(*(_DWORD *)v122 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v154, v47, v93); v123(v122, &v154); CCMenuItemSpriteExtra::setSizeMult((int)v122, 1.0); v122[320] = 0; (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v95 + 92))(v95, v133); (*(void (__fastcall **)(_BYTE *, _BYTE *))(*(_DWORD *)v122 + 92))(v122, v132); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 138) + 228))(*((_DWORD *)this + 138)); } v90 = v93 + 10.0; LABEL_106: v45 = v45 - v90; } } } LABEL_107: ++v127; } v124 = 6.0 - v45; if ( v124 >= v9 ) v125 = v124; else v125 = v9; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 137), v125); NewsPopup::prefetchPageImages(this, *((_DWORD *)this + 135) - 1); NewsPopup::prefetchPageImages(this, *((_DWORD *)this + 135) + 1); if ( v142 ) { v143 -= 12 * ((715827883 * ((unsigned int)(v143 - (_BYTE *)v142) >> 2)) & 0x3FFFFFFF); operator delete(v142); } return std::string::~string((int)&v139); }
GD Web Decomp Icon

GD Web Decomp

Raw Source