// // NewsPopup::rebuildPage from 0xb8af54 to 0xb8c284 (4912 bytes) // // 7 xrefs: // > NewsPopup::onPrevPage @ 0xb8c2b0 // > NewsPopup::onNextPage @ 0xb8c2e8 // > NewsPopup::newsImageFailed @ 0xb8c3a4 // > NewsPopup::onBlockClicked @ 0xb8c824 // > NewsPopup::newsImageDownloaded @ 0xb8cb5c // > NewsPopup::refreshFromManager @ 0xb8d494 // > @ 0xe1fd0 // // This function is hookable on this platform (idp: arm, 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 13:02:34 +0000 // __int64 __fastcall NewsPopup::rebuildPage(NewsPopup *this, int a2) { __int64 v4; // x25 ScrollableContentLayer *v5; // x0 unsigned __int64 v6; // x19 int v7; // w0 int v8; // w21 _QWORD *v9; // x1 bool v10; // cc _QWORD *v11; // x0 __int64 v12; // x2 __int64 v13; // x1 __int64 v14; // x20 __int64 v15; // x2 void (__fastcall *v16)(__int64, __int64); // x19 cocos2d::CCString *v17; // x0 __int64 CString; // x0 __int64 v19; // x21 cocos2d::CCMenu *v20; // x0 __int64 v21; // x20 __int64 v22; // x0 const char *v23; // x2 cocos2d::CCLabelBMFont *v24; // x0 __int64 v25; // x19 void (__fastcall *v26)(__int64, void **); // x22 void (__fastcall *v27)(__int64, void **); // x22 const char *v28; // x1 char v29; // w0 __int64 v30; // x0 __int64 v31; // x1 const char *v32; // x2 cocos2d::CCLabelBMFont *v33; // x0 cocos2d::CCLabelBMFont *v34; // x20 void (__fastcall *v35)(cocos2d::CCLabelBMFont *, void **); // x28 void (__fastcall *v36)(cocos2d::CCLabelBMFont *, void **); // x23 float v37; // s10 float v38; // s0 __int64 v39; // x20 __int64 v40; // x19 float v41; // s10 float v42; // s8 __int64 v43; // x26 int v44; // w0 __int64 v45; // x28 int v46; // w19 __int64 v47; // x22 _BYTE *v48; // x0 __int64 v49; // x23 __int64 v50; // x20 unsigned __int64 v51; // x19 int v52; // w1 __int64 v53; // x2 unsigned __int64 v54; // x0 __int64 v55; // x2 unsigned __int64 v56; // x0 _BYTE *v57; // x3 _BYTE *v58; // x0 _BYTE *v59; // x19 unsigned __int64 v60; // x1 __int64 v61; // x20 signed int v62; // w23 char *v63; // x2 __int64 v64; // x3 __int64 v65; // x1 float *v66; // x19 void (__fastcall *v67)(float *, _BYTE *); // x28 void (__fastcall *v68)(float *, _BYTE *); // x28 float v69; // s0 cocos2d::CCLabelBMFont *v70; // x0 cocos2d::CCLabelBMFont *v71; // x20 void (__fastcall *v72)(cocos2d::CCLabelBMFont *, void **); // x2 float v73; // s13 float v74; // s13 float v75; // s12 cocos2d::CCSprite *v76; // x0 float v77; // s0 float v78; // s12 __int64 v79; // x19 void (__fastcall *v80)(__int64, void **); // x23 void (__fastcall *v81)(cocos2d::CCLabelBMFont *, void **); // x23 _BYTE *v82; // x20 void (__fastcall *v83)(_BYTE *, void **); // x19 __int64 v84; // x1 void (__fastcall *v85)(_BYTE *, void **); // x19 int v86; // w1 int v87; // w0 float v88; // s12 cocos2d::CCSprite *v89; // x0 __int64 v90; // x23 void (__fastcall *v91)(__int64, void **); // x20 MusicDownloadManager *v92; // x0 MusicDownloadManager *v93; // x19 char v94; // w0 __int64 v95; // x0 __int64 v96; // x1 MusicDownloadManager *isNewsImageDownloaded; // x0 int v98; // w19 __int64 v99; // x20 void (__fastcall *v100)(__int64, void **); // x19 const char *v101; // x2 _BOOL4 v102; // w19 char *v103; // x0 __int64 v104; // x20 MusicDownloadManager *v105; // x0 _BYTE *v106; // x20 void (__fastcall *v107)(_BYTE *, void **); // x19 MusicDownloadManager *v108; // x20 char v109; // w0 __int64 v110; // x0 __int64 v111; // x1 cocos2d::CCSprite *v112; // x0 __int64 v113; // x19 void (__fastcall *v114)(__int64, float); // x20 float *v115; // x0 void (__fastcall *v116)(__int64, float); // x20 __int64 v117; // x0 const char *v118; // x1 unsigned __int8 v119; // w19 __int64 v120; // x28 __int64 v121; // x19 __int64 v122; // x22 _BYTE *v123; // x20 float v124; // s0 const char *v126; // x2 __int64 v127; // x0 __int64 v128; // x20 void (__fastcall *v129)(__int64, void **); // x19 MusicDownloadManager *v130; // x0 MusicDownloadManager *v131; // x0 __int64 v132; // x20 __int64 v133; // x19 void (__fastcall *v134)(__int64, void **); // x20 __int64 v135; // x19 char v136; // w0 __int64 v137; // x0 __int64 v138; // x1 const char *v139; // x0 float v140; // [xsp+ACh] [xbp+ACh] float v141; // [xsp+B0h] [xbp+B0h] float v142; // [xsp+B4h] [xbp+B4h] _QWORD *v143; // [xsp+B8h] [xbp+B8h] __int64 v144; // [xsp+C0h] [xbp+C0h] unsigned int v145; // [xsp+C8h] [xbp+C8h] _DWORD v146[2]; // [xsp+D8h] [xbp+D8h] BYREF _BYTE v147[8]; // [xsp+E0h] [xbp+E0h] BYREF _BYTE v148[8]; // [xsp+E8h] [xbp+E8h] BYREF __int64 v149; // [xsp+F0h] [xbp+F0h] BYREF __int64 v150; // [xsp+F8h] [xbp+F8h] void *v151; // [xsp+100h] [xbp+100h] void *v152; // [xsp+108h] [xbp+108h] BYREF char *v153; // [xsp+110h] [xbp+110h] __int64 v154; // [xsp+118h] [xbp+118h] __int64 v155[3]; // [xsp+120h] [xbp+120h] BYREF void *v156; // [xsp+138h] [xbp+138h] BYREF unsigned __int64 v157; // [xsp+140h] [xbp+140h] __int64 v158; // [xsp+148h] [xbp+148h] __int64 v159; // [xsp+150h] [xbp+150h] BYREF __int64 v160; // [xsp+158h] [xbp+158h] void *v161; // [xsp+160h] [xbp+160h] __int64 v162; // [xsp+168h] [xbp+168h] BYREF __int64 v163; // [xsp+170h] [xbp+170h] void *v164; // [xsp+178h] [xbp+178h] __int64 v165; // [xsp+180h] [xbp+180h] BYREF __int64 v166; // [xsp+188h] [xbp+188h] void *v167; // [xsp+190h] [xbp+190h] __int64 v168; // [xsp+198h] [xbp+198h] BYREF __int64 v169; // [xsp+1A0h] [xbp+1A0h] void *v170; // [xsp+1A8h] [xbp+1A8h] __int64 v171[2]; // [xsp+1B0h] [xbp+1B0h] BYREF void *v172; // [xsp+1C0h] [xbp+1C0h] v4 = *(_QWORD *)(*((_QWORD *)this + 89) + 416LL); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 584LL))(v4, 1); *((_QWORD *)this + 90) = 0; v5 = *((ScrollableContentLayer **)this + 89); *((_BYTE *)this + 728) = 0; *((_QWORD *)this + 93) = 0; ScrollableContentLayer::scrollTo(v5, 0.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v146, (const cocos2d::CCSize *)(*((_QWORD *)this + 89) + 424LL)); if ( a2 < 0 ) a2 = 0; v142 = *(float *)v146; v6 = 0xCCCCCCCCCCCCCCCDLL * ((__int64)(*((_QWORD *)this + 86) - *((_QWORD *)this + 85)) >> 4); v140 = *(float *)&v146[1]; if ( (int)v6 <= 0 ) { v8 = v6 - 1; v7 = 0; } else { v7 = v6 - 1; v8 = v6 - 1; } v9 = *((_QWORD **)this + 94); if ( v7 > a2 ) v7 = a2; *((_DWORD *)this + 176) = v7; v10 = v7 <= 0; v11 = v9; v12 = *v9; v13 = !v10; (*(void (__fastcall **)(_QWORD *, __int64))(v12 + 344))(v11, v13); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 95) + 344LL))( *((_QWORD *)this + 95), *((_DWORD *)this + 176) < v8); if ( (_DWORD)v6 ) { v14 = *((_QWORD *)this + 92); v15 = (unsigned int)v6; v16 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 928LL); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i of %i", (const char *)(unsigned int)(*((_DWORD *)this + 176) + 1), v15); CString = cocos2d::CCString::getCString(v17); v16(v14, CString); v19 = *((_QWORD *)this + 85); v20 = (cocos2d::CCMenu *)*((int *)this + 176); v21 = 80LL * (_QWORD)v20; v22 = cocos2d::CCMenu::create(v20); *((_QWORD *)this + 90) = v22; v144 = v19 + v21; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v22 + 296LL))(v22, &unk_155E6B8); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 90) + 320LL))(*((_QWORD *)this + 90), &unk_155E6C0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 90) + 184LL))(*((_QWORD *)this + 90), &unk_155E6B8); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v4 + 464LL))(v4, *((_QWORD *)this + 90), 5); v23 = (const char *)*(unsigned __int8 *)(v19 + v21 + 8); v24 = (cocos2d::CCLabelBMFont *)(v19 + v21 + 9); if ( ((unsigned __int8)v23 & 1) != 0 ) v24 = *(cocos2d::CCLabelBMFont **)(v19 + v21 + 24); v25 = cocos2d::CCLabelBMFont::create(v24, "goldFont.fnt", v23); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.45); v26 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v25 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, 0.0, 1.0); v26(v25, &v156); v27 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v25 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, 20.0, -10.0); v27(v25, &v156); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 456LL))(v4, v25); v28 = (const char *)*(unsigned int *)(v19 + v21); if ( (int)v28 > *((_DWORD *)this + 177) ) { v133 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"newMusicIcon_001.png", v28); v134 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v133 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, v142 - 20.0, -20.0); v134(v133, &v156); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, v133, 6); } v149 = 0; v150 = 0; v29 = *(_BYTE *)(v144 + 32); v151 = nullptr; if ( (v29 & 1) != 0 ) { std::string::__init(&v149, *(void **)(v144 + 48), *(_QWORD *)(v144 + 40)); } else { v30 = *(_QWORD *)(v144 + 32); v31 = *(_QWORD *)(v144 + 40); v151 = *(void **)(v144 + 48); v149 = v30; v150 = v31; } v152 = nullptr; v153 = nullptr; v154 = 0; EmoteSprite::parseTokens((char *)&v149, &v152, 3); if ( v152 != v153 ) { EmoteSprite::replaceTokens((__int64)&v149, (__int64 *)&v152, v155, 0.0); if ( (v149 & 1) != 0 ) { *(_BYTE *)v151 = 0; v150 = 0; } else { LOWORD(v149) = 0; } std::string::reserve(&v149, 0); v149 = v155[0]; v150 = v155[1]; v151 = (void *)v155[2]; } v33 = (cocos2d::CCLabelBMFont *)((char *)&v149 + 1); if ( (v149 & 1) != 0 ) v33 = (cocos2d::CCLabelBMFont *)v151; v34 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v33, "bigFont.fnt", v32); cocos2d::CCLabelBMFont::limitLabelWidth(v34, (float)(v142 - 40.0) - 30.0, 0.62, 0.3); v35 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v34 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, 0.0, 1.0); v35(v34, &v156); v36 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, 20.0, -32.0); v36(v34, &v156); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)v4 + 456LL))(v4, v34); EmoteSprite::attachToLabel((__int64)v34, v4, (__int64 *)&v152, 0.0); v37 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v34 + 328LL))(v34) + 4); v38 = (float)(v37 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v34 + 168LL))(v34)) + 12.0; v39 = *(_QWORD *)(v144 + 56); v40 = *(_QWORD *)(v144 + 64); v41 = (float)(v142 - 40.0) - 20.0; v42 = -32.0 - v38; v141 = (float)(v142 - 40.0) - 10.0; if ( (int)(-1431655765 * ((v40 - v39) >> 5)) > 0 ) { v43 = 0; v145 = 0; while ( 1 ) { v44 = *(_DWORD *)(v39 + v43); v45 = v39 + v43; if ( !v44 ) break; if ( v44 != 2 ) { if ( v44 != 1 ) goto LABEL_27; v86 = *(_DWORD *)(v45 + 56); if ( v86 <= 0 ) goto LABEL_27; v87 = *(_DWORD *)(v45 + 60); if ( v87 <= 0 ) goto LABEL_27; v88 = (float)((float)v87 / (float)v86) * v141; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v147, v142 * 0.5, v42 - (float)(v88 * 0.5)); v89 = (cocos2d::CCSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, v141 * 0.5, v88 * 0.5); v90 = cocos2d::CCSprite::create(v89); v91 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v90 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v156, v141, v88); v91(v90, &v156); v92 = (MusicDownloadManager *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v90 + 984LL))(v90, 1); v93 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v92); v94 = *(_BYTE *)(v45 + 32); v162 = 0; v143 = (_QWORD *)(v45 + 32); v163 = 0; v164 = nullptr; if ( (v94 & 1) != 0 ) { std::string::__init(&v162, *(void **)(v45 + 48), *(_QWORD *)(v45 + 40)); } else { v95 = *(_QWORD *)(v45 + 32); v96 = *(_QWORD *)(v45 + 40); v164 = *(void **)(v45 + 48); v162 = v95; v163 = v96; } isNewsImageDownloaded = (MusicDownloadManager *)MusicDownloadManager::isNewsImageDownloaded( v93, (char *)&v162); v98 = (unsigned __int8)isNewsImageDownloaded; if ( (v162 & 1) != 0 ) { operator delete(v164); if ( !v98 ) goto LABEL_87; } else if ( !(_BYTE)isNewsImageDownloaded ) { goto LABEL_87; } v108 = (MusicDownloadManager *)MusicDownloadManager::sharedState(isNewsImageDownloaded); v109 = *(_BYTE *)(v45 + 32); v165 = 0; v166 = 0; v167 = nullptr; if ( (v109 & 1) != 0 ) { std::string::__init(&v165, *(void **)(v45 + 48), *(_QWORD *)(v45 + 40)); } else { v110 = *(_QWORD *)(v45 + 32); v111 = *(_QWORD *)(v45 + 40); v167 = *(void **)(v45 + 48); v165 = v110; v166 = v111; } MusicDownloadManager::pathForNewsImage(v108, (__int64)&v165, (__int64)v171); if ( (v165 & 1) != 0 ) operator delete(v167); v112 = (cocos2d::CCSprite *)((char *)v171 + 1); if ( (v171[0] & 1) != 0 ) v112 = (cocos2d::CCSprite *)v172; v113 = cocos2d::CCSprite::create(v112, (const char *)LOBYTE(v171[0])); if ( v113 ) { std::__tree::__emplace_unique_key_args( (__int64)this + 816, (__int64)v171, v171); v114 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v113 + 128LL); v115 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v113 + 328LL))(v113); v114(v113, v141 / *v115); v116 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v113 + 144LL); v117 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v113 + 328LL))(v113); v116(v113, v88 / *(float *)(v117 + 4)); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v113 + 184LL))(v113, v148); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v90 + 456LL))(v90, v113); if ( *(_BYTE *)(v45 + 64) ) { v132 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"youtubePlayButton_001.png", v118); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v132 + 184LL))(v132, v148); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v132 + 160LL))(v132, 1.25); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v90 + 464LL))(v90, v132, 2); if ( (v171[0] & 1) != 0 ) LABEL_102: operator delete(v172); } else if ( (v171[0] & 1) != 0 ) { goto LABEL_102; } v119 = *(_BYTE *)(v45 + 72); v120 = v45 + 72; if ( (v119 & 1) != 0 ) v121 = *(_QWORD *)(v120 + 8); else v121 = v119 >> 1; if ( !v121 ) { (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v90 + 184LL))(v90, v147); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 456LL))(v4, v90); goto LABEL_91; } } else { v139 = (char *)v171 + 1; if ( (v171[0] & 1) != 0 ) v139 = (const char *)v172; remove(v139); std::__tree::__emplace_unique_key_args( (__int64)this + 792, (__int64)v143, v143); if ( (v171[0] & 1) != 0 ) operator delete(v172); LABEL_87: cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v156, 0.0, 0.0, 40.0, 40.0); v99 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v156); v100 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v99 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v156, v141, v88); v100(v99, &v156); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v99 + 912LL))(v99, 90); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v99 + 184LL))(v99, v148); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v90 + 456LL))(v90, v99); v102 = std::__tree::__count_unique((__int64)this + 792, (__int64)v143) != 0; if ( v102 ) v103 = "Tap to retry"; else v103 = "Loading..."; v104 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v103, "bigFont.fnt", v101); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 160LL))(v104, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v104 + 1024LL))(v104, 4294967190LL); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v104 + 184LL))(v104, v148); v105 = (MusicDownloadManager *)(*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v90 + 464LL))( v90, v104, 2); if ( !v102 ) { v135 = MusicDownloadManager::sharedState(v105); v136 = *(_BYTE *)(v45 + 32); v168 = 0; v169 = 0; v170 = nullptr; if ( (v136 & 1) != 0 ) { std::string::__init(&v168, *(void **)(v45 + 48), *(_QWORD *)(v45 + 40)); } else { v137 = *(_QWORD *)(v45 + 32); v138 = *(_QWORD *)(v45 + 40); v170 = *(void **)(v45 + 48); v168 = v137; v169 = v138; } MusicDownloadManager::downloadNewsImage(v135, (unsigned __int8 *)&v168); if ( (v168 & 1) != 0 ) operator delete(v170); } } v106 = (_BYTE *)CCMenuItemSpriteExtra::create(v90, 0, (__int64)this, (__int64)NewsPopup::onBlockClicked, 0); (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v106 + 72LL))(v106, v145); v107 = *(void (__fastcall **)(_BYTE *, void **))(*(_QWORD *)v106 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v156, v141, v88); v107(v106, &v156); CCMenuItemSpriteExtra::setSizeMult((__int64)v106, 1.0); v106[408] = 0; (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v90 + 184LL))(v90, v148); (*(void (__fastcall **)(_BYTE *, _BYTE *))(*(_QWORD *)v106 + 184LL))(v106, v147); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 90) + 456LL))(*((_QWORD *)this + 90), v106); LABEL_91: v39 = *(_QWORD *)(v144 + 56); v40 = *(_QWORD *)(v144 + 64); v42 = v42 - (float)(v88 + 10.0); goto LABEL_27; } v70 = (cocos2d::CCLabelBMFont *)(v45 + 9); if ( (*(_BYTE *)(v45 + 8) & 1) != 0 ) v70 = *(cocos2d::CCLabelBMFont **)(v45 + 24); v71 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v70, "chatFont.fnt", (const char *)(v45 + 8)); v72 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v71 + 1072LL); LOWORD(v156) = -14286; BYTE2(v156) = -1; v72(v71, &v156); cocos2d::CCLabelBMFont::limitLabelWidth(v71, v41, 0.75, 0.3); v73 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v71 + 328LL))(v71); v74 = v73 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v71 + 168LL))(v71); v75 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v71 + 328LL))(v71) + 4); v76 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v71 + 168LL))(v71); v78 = v75 * v77; v79 = cocos2d::CCSprite::create(v76); v80 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v79 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v156, v74, v78); v80(v79, &v156); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v79 + 984LL))(v79, 1); v81 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v71 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, v74 * 0.5, v78 * 0.5); v81(v71, &v156); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)v79 + 456LL))(v79, v71); v82 = (_BYTE *)CCMenuItemSpriteExtra::create(v79, 0, (__int64)this, (__int64)NewsPopup::onBlockClicked, 0); (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v82 + 72LL))(v82, v145); v83 = *(void (__fastcall **)(_BYTE *, void **))(*(_QWORD *)v82 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v156, v74, v78); v83(v82, &v156); CCMenuItemSpriteExtra::setSizeMult((__int64)v82, 1.2); v84 = *(_QWORD *)v82; v82[408] = 0; v85 = *(void (__fastcall **)(_BYTE *, void **))(v84 + 184); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, (float)(v74 * 0.5) + 20.0, v42 - (float)(v78 * 0.5)); v85(v82, &v156); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 90) + 456LL))(*((_QWORD *)this + 90), v82); v39 = *(_QWORD *)(v144 + 56); v40 = *(_QWORD *)(v144 + 64); v42 = v42 - (float)(v78 + 8.0); LABEL_27: v43 += 96; if ( (int)++v145 >= (int)(-1431655765 * ((v40 - v39) >> 5)) ) goto LABEL_118; } v156 = nullptr; v157 = 0; v158 = 0; v46 = *(unsigned __int8 *)(v45 + 8); if ( (v46 & 1) != 0 ) { v47 = *(_QWORD *)(v45 + 16); v48 = *(_BYTE **)(v45 + 24); if ( !v47 ) { LABEL_31: v49 = 0; v50 = -1; LABEL_32: v51 = 0; while ( 1 ) { std::string::basic_string(v171, v45 + 8, v51, v50 - v51); v52 = v171[0] & 1; v53 = LOBYTE(v171[0]) >> 1; if ( v52 ) v53 = v171[1]; if ( v53 || v51 != v49 ) { v54 = v157; if ( v157 == v158 ) { std::vector::__push_back_slow_path((__int64 *)&v156, v171); v52 = v171[0] & 1; if ( v50 == -1 ) { LABEL_58: if ( v52 ) operator delete(v172); v59 = v156; v60 = v157; v61 = 0; v62 = 0; if ( (int)(-1431655765 * ((__int64)(v157 - (_QWORD)v156) >> 3)) > 0 ) { do { v63 = &v59[v61]; v64 = v59[v61] >> 1; if ( (v59[v61] & 1) != 0 ) v64 = *((_QWORD *)v63 + 1); if ( v64 ) { v159 = 0; v160 = 0; v161 = nullptr; if ( (*v63 & 1) != 0 ) { std::string::__init(&v159, *((void **)v63 + 2), *((_QWORD *)v63 + 1)); } else { v65 = *((_QWORD *)v63 + 1); v159 = *(_QWORD *)v63; v160 = v65; v161 = *((void **)v63 + 2); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, 0.0, 1.0); v66 = (float *)TextArea::create( (char *)&v159, "chatFont.fnt", (const cocos2d::CCPoint *)v148, 0, 10, 1.0, v41 / 0.75, 20.0); if ( (v159 & 1) != 0 ) operator delete(v161); v67 = *(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v66 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, 0.0, 1.0); v67(v66, v148); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v66 + 160LL))(v66, 0.75); v68 = *(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v66 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v148, 20.0, v42); v68(v66, v148); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 456LL))(v4, v66); v69 = v66[109]; v60 = v157; v59 = v156; v42 = v42 - (float)((float)((float)(v69 + 20.0) * 0.75) + 4.0); } else { v42 = v42 - 10.0; } ++v62; v61 += 24; } while ( v62 < (int)(-1431655765 * ((__int64)(v60 - (_QWORD)v59) >> 3)) ); } v42 = v42 - 4.0; if ( v59 ) { while ( (_BYTE *)v157 != v59 ) { v157 -= 24LL; std::string::~string(v157); } operator delete(v156); } v39 = *(_QWORD *)(v144 + 56); v40 = *(_QWORD *)(v144 + 64); goto LABEL_27; } goto LABEL_42; } if ( v157 ) { std::string::basic_string(v157, v171); v54 = v157; v52 = v171[0] & 1; } v157 = v54 + 24; } if ( v50 == -1 ) goto LABEL_58; LABEL_42: v51 = v50 + 1; if ( (*(_BYTE *)(v45 + 8) & 1) != 0 ) { v55 = *(_QWORD *)(v45 + 24); v56 = *(_QWORD *)(v45 + 16); } else { v55 = v45 + 9; v56 = *(_BYTE *)(v45 + 8) >> 1; } v50 = -1; if ( v51 >= v56 || (v57 = (_BYTE *)(v55 + v51), v58 = (_BYTE *)(v55 + v56), (_BYTE *)(v55 + v51) == v58) ) { if ( v52 ) goto LABEL_46; } else if ( *(_BYTE *)(v55 + v51) == 10 ) { LABEL_55: v50 = (__int64)&v57[-v55]; if ( v52 ) goto LABEL_46; } else { while ( v58 != ++v57 ) { if ( *v57 == 10 ) goto LABEL_55; } v50 = -1; if ( v52 ) LABEL_46: operator delete(v172); } } } v122 = (__int64)&v48[v47]; v50 = -1; if ( v48 == (_BYTE *)v122 ) { LABEL_117: v49 = *(_QWORD *)(v45 + 16); goto LABEL_32; } } else { LODWORD(v49) = v46 >> 1; if ( !(v46 >> 1) ) goto LABEL_31; v48 = (_BYTE *)(v45 + 9); v122 = v45 + 9 + (int)v49; if ( v45 + 9 == v122 ) { v50 = -1; v49 = (int)v49; goto LABEL_32; } } v123 = v48; if ( *v48 == 10 ) { v50 = 0; goto LABEL_114; } do { if ( (_BYTE *)v122 == ++v123 ) { v50 = -1; goto LABEL_114; } } while ( *v123 != 10 ); v50 = v123 - v48; LABEL_114: LODWORD(v49) = v46 >> 1; if ( (v46 & 1) == 0 ) { v49 = (int)v49; goto LABEL_32; } goto LABEL_117; } LABEL_118: v124 = 6.0 - v42; if ( v140 > (float)(6.0 - v42) ) v124 = v140; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 89), v124); NewsPopup::prefetchPageImages(this, *((_DWORD *)this + 176) - 1); NewsPopup::prefetchPageImages(this, *((_DWORD *)this + 176) + 1); if ( v152 ) { if ( v152 != v153 ) v153 += -24 * ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v153 - 24 - (_BYTE *)v152) >> 3)) & 0x1FFFFFFFFFFFFFFFLL) - 24; operator delete(v152); } if ( (v149 & 1) != 0 ) operator delete(v151); return _stack_chk_guard; } else { (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 92) + 928LL))(*((_QWORD *)this + 92), &byte_11B8890); v127 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Loading news...", "bigFont.fnt", v126); *((_QWORD *)this + 93) = v127; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v127 + 160LL))(v127, 0.55); v128 = *((_QWORD *)this + 93); v129 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v128 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v156, v142 * 0.5, (float)-v140 * 0.5); v129(v128, &v156); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 456LL))(v4, *((_QWORD *)this + 93)); v130 = (MusicDownloadManager *)ScrollableContentLayer::setContentHeight( *((ScrollableContentLayer **)this + 89), v140); v131 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v130); MusicDownloadManager::tryUpdateNewsFeed(v131); return _stack_chk_guard; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source