// // NewsPopup::rebuildPage from 0x14049e6c0 to 0x14049f91e (4702 bytes) // // 9 xrefs: // > NewsPopup::refreshFromManager @ 0x14049e6b1 // > NewsPopup::onPrevPage @ 0x14049fc3c // > NewsPopup::onNextPage @ 0x14049fc8b // > NewsPopup::onBlockClicked @ 0x14049fe5f // > NewsPopup::newsImageDownloaded @ 0x1404a04df // > NewsPopup::newsImageFailed @ 0x1404a0577 // > NewsPopup::keyDown @ 0x1404a05c8 // > NewsPopup::keyDown @ 0x1404a0614 // > @ 0x1409293c0 // // 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:32:56 +0000 // // Hidden C++ exception states: #wind=11 void __fastcall NewsPopup::rebuildPage(__int64 a1, __int64 a2, __int64 a3, double a4) { int v4; // ebx int v6; // r14d __int64 *v7; // r13 __int64 v8; // rcx __int64 v9; // rcx float v10; // xmm9_4 float v11; // xmm7_4 __int64 v12; // rcx __int64 v13; // rdx __int64 v14; // rsi int v15; // edi int v16; // r8d int v17; // eax __int64 v18; // rdx __int64 v19; // rdi struct cocos2d::CCLabelBMFont *v20; // rax __int64 v21; // rdi __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rbx __int64 v25; // rcx __int64 v26; // rcx void (__fastcall **v27)(__int64, const char *); // rdi __int64 v28; // rbx cocos2d::CCString *v29; // rax const char *CString; // rax __int64 v31; // r12 __int64 v32; // rsi __int64 v33; // rcx __int64 v34; // rax __int64 v35; // rcx struct cocos2d::CCLabelBMFont *v36; // rdi __int64 v37; // rbx __int64 v38; // rax __int64 v39; // rbx __int64 v40; // rax __int64 v41; // rcx struct cocos2d::CCSprite *v42; // rdi __int64 v43; // rbx __int64 v44; // rax _QWORD *v45; // rdi _OWORD *v46; // rsi unsigned __int64 v47; // rdi __int64 v48; // rbx __int64 v49; // r9 unsigned __int64 v50; // rbx unsigned __int64 v51; // rsi __int64 v52; // r8 __int64 v53; // rcx unsigned __int64 v54; // rdx __int64 v55; // rdi size_t v56; // r8 void **v57; // rdx bool v58; // al char v59; // dl __int64 v60; // rax size_t v61; // rax size_t v62; // r8 void **v63; // rdx void *v64; // rcx void **v65; // rcx cocos2d::CCLabelBMFont *v66; // rdi __int64 v67; // rbx __int64 v68; // rax __int64 v69; // rbx __int64 v70; // rax float v71; // xmm6_4 float v72; // xmm10_4 float v73; // xmm6_4 float v74; // xmm14_4 __int64 v75; // rbx __int64 v76; // rdi __int64 v77; // rdx __int64 v78; // r12 int v79; // eax int v80; // esi char *v81; // rdx char *v82; // rcx __int64 v83; // r14 __int64 v84; // rbx const struct cocos2d::CCPoint *v85; // rax float *v86; // rdi __int64 v87; // rbx __int64 v88; // rax __int64 v89; // rbx __int64 v90; // rax const char *v91; // rcx struct cocos2d::CCLabelBMFont *v92; // rsi float v93; // xmm6_4 double v94; // xmm0_8 float v95; // xmm8_4 float v96; // xmm6_4 double v97; // xmm0_8 float v98; // xmm9_4 _QWORD *v99; // rdi __int64 v100; // rbx __int64 v101; // rax __int64 v102; // rdx __int64 v103; // rbx __int64 v104; // rax cocos2d::CCObject *v105; // rdi __int64 v106; // rbx __int64 v107; // rax __int64 v108; // rbx __int64 v109; // rax int v110; // ecx int v111; // eax float v112; // xmm7_4 cocos2d::CCObject *v113; // rsi __int64 v114; // rbx __int64 v115; // rax __int64 v116; // rdx __int64 v117; // rcx __int64 v118; // r14 __int64 v119; // rcx void **v120; // r14 const char *v121; // rcx struct cocos2d::CCSprite *v122; // r14 const char *v123; // rcx __int64 v124; // rbx __int64 v125; // rbx struct cocos2d::CCSprite *v126; // rbx __int64 v127; // rax cocos2d::CCObject *v128; // rdx __int64 *v129; // rcx __int64 v130; // rax _QWORD *v131; // rdi __int64 v132; // rbx __int64 v133; // rax __int64 v134; // rdx _QWORD *v135; // r14 _BOOL8 v136; // rdi const char *v137; // rcx struct cocos2d::CCLabelBMFont *v138; // rbx __int64 v139; // rdx void **v140; // rbx cocos2d::CCObject *v141; // rcx cocos2d::CCObject *v142; // rdi __int64 v143; // rbx __int64 v144; // rax __int64 v145; // rbx __int64 v146; // rcx char v147; // [rsp+48h] [rbp-C0h] unsigned int v148; // [rsp+4Ch] [rbp-BCh] float v149; // [rsp+50h] [rbp-B8h] __int16 v150; // [rsp+58h] [rbp-B0h] BYREF char v151; // [rsp+5Ah] [rbp-AEh] _QWORD *v152; // [rsp+60h] [rbp-A8h] BYREF __int64 v153; // [rsp+68h] [rbp-A0h] BYREF __int64 v154; // [rsp+70h] [rbp-98h] __int128 v155; // [rsp+78h] [rbp-90h] BYREF __int64 v156; // [rsp+88h] [rbp-80h] float v157; // [rsp+90h] [rbp-78h] float v158; // [rsp+94h] [rbp-74h] __int64 v159; // [rsp+98h] [rbp-70h] BYREF float v160; // [rsp+A0h] [rbp-68h] BYREF float v161; // [rsp+A4h] [rbp-64h] char v162[8]; // [rsp+A8h] [rbp-60h] BYREF _BYTE *v163; // [rsp+B0h] [rbp-58h] _BYTE v164[32]; // [rsp+B8h] [rbp-50h] BYREF char v165[8]; // [rsp+D8h] [rbp-30h] BYREF char v166[8]; // [rsp+E0h] [rbp-28h] BYREF char v167[8]; // [rsp+E8h] [rbp-20h] BYREF char v168[8]; // [rsp+F0h] [rbp-18h] BYREF char v169[8]; // [rsp+F8h] [rbp-10h] BYREF char v170[8]; // [rsp+100h] [rbp-8h] BYREF void *v171; // [rsp+108h] [rbp+0h] void *v172; // [rsp+110h] [rbp+8h] char v173[8]; // [rsp+118h] [rbp+10h] BYREF void *v174; // [rsp+120h] [rbp+18h] char v175[8]; // [rsp+128h] [rbp+20h] BYREF char v176[8]; // [rsp+130h] [rbp+28h] BYREF char v177[8]; // [rsp+138h] [rbp+30h] BYREF char v178[16]; // [rsp+140h] [rbp+38h] BYREF char v179[16]; // [rsp+150h] [rbp+48h] BYREF char v180[16]; // [rsp+160h] [rbp+58h] BYREF char *FileName[2]; // [rsp+170h] [rbp+68h] BYREF __int128 v182; // [rsp+180h] [rbp+78h] void *Block[2]; // [rsp+190h] [rbp+88h] BYREF __int128 v184; // [rsp+1A0h] [rbp+98h] v4 = a2; v6 = 0; v7 = *(__int64 **)(*(_QWORD *)(a1 + 712) + 416LL); LOBYTE(a2) = 1; (*(void (__fastcall **)(__int64 *, __int64))(*v7 + 576))(v7, a2); *(_QWORD *)(a1 + 720) = 0; *(_BYTE *)(a1 + 728) = 0; *(_QWORD *)(a1 + 744) = 0; v8 = *(_QWORD *)(a1 + 712); *(_DWORD *)(v8 + 436) = 0; *(_DWORD *)(v8 + 476) = 0; ScrollableContentLayer::clampOffset(v8); ScrollableContentLayer::applyContentPosition(v9); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v160, (const struct cocos2d::CCSize *)(*(_QWORD *)(a1 + 712) + 424LL)); v10 = v160; v157 = v160; v11 = v161; v158 = v161; v12 = *(_QWORD *)(a1 + 688) - *(_QWORD *)(a1 + 680); v13 = (unsigned __int128)(v12 * (__int128)0x2AAAAAAAAAAAAAABLL) >> 64; v14 = v12 / 96; v15 = v12 / 96 - 1; v16 = 0; if ( v4 > 0 ) v16 = v4; v17 = v12 / 96 - 1; if ( v15 <= 0 ) v17 = 0; if ( v16 >= v17 ) { v16 = 0; if ( v15 > 0 ) v16 = v12 / 96 - 1; } *(_DWORD *)(a1 + 704) = v16; LOBYTE(v13) = v16 > 0; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 752) + 336LL))(*(_QWORD *)(a1 + 752), v13); LOBYTE(v18) = *(_DWORD *)(a1 + 704) < v15; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 760) + 336LL))(*(_QWORD *)(a1 + 760), v18); v19 = *(_QWORD *)(a1 + 736); if ( (_DWORD)v14 ) { v27 = *(void (__fastcall ***)(__int64, const char *))(v19 + 360); v28 = *(_QWORD *)(a1 + 736); v29 = cocos2d::CCString::createWithFormat("%i of %i", *(_DWORD *)(a1 + 704) + 1, v14); CString = cocos2d::CCString::getCString(v29); (*v27)(v28 + 360, CString); v159 = 96LL * *(int *)(a1 + 704); v31 = v159; v154 = *(_QWORD *)(a1 + 680); v32 = v154; v34 = cocos2d::CCMenu::create(v33); *(_QWORD *)(a1 + 720) = v34; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v34 + 288LL))(v34, &unk_14090B368); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 720) + 312LL))(*(_QWORD *)(a1 + 720), &unk_14090B380); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 720) + 184LL))(*(_QWORD *)(a1 + 720), &unk_14090B368); (*(void (__fastcall **)(__int64 *, _QWORD, __int64))(*v7 + 456))(v7, *(_QWORD *)(a1 + 720), 5); v35 = v31 + v32 + 8; if ( *(_QWORD *)(v35 + 24) > 0xFu ) v35 = *(_QWORD *)v35; v36 = cocos2d::CCLabelBMFont::create((const char *)v35, "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v36 + 160LL))(v36); v37 = *(_QWORD *)v36; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 0.0, 1.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v37 + 288))(v36, v38); v39 = *(_QWORD *)v36; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 20.0, -10.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v39 + 184))(v36, v40); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *))(*v7 + 464))(v7, v36); if ( *(_DWORD *)(v31 + v32) > *(_DWORD *)(a1 + 708) ) { v42 = cocos2d::CCSprite::createWithSpriteFrameName("newMusicIcon_001.png"); v43 = *(_QWORD *)v42; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, v10 - 20.0, -20.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v43 + 184))(v42, v44); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *, __int64))(*v7 + 456))(v7, v42, 6); } v45 = (_QWORD *)(v31 + v32); *(_OWORD *)Block = 0; v184 = 0u; v46 = (_OWORD *)(v31 + v32 + 40); if ( v45[8] > 0xFu ) v46 = (_OWORD *)v45[5]; v47 = v45[7]; v48 = 0x7FFFFFFFFFFFFFFFLL; if ( v47 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v41); if ( v47 > 0xF ) { if ( (v47 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v48 = v47 | 0xF; if ( (v47 | 0xF) < 0x16 ) v48 = 22; } Block[0] = sub_14003D460(v48 + 1); *(_QWORD *)&v184 = v47; *((_QWORD *)&v184 + 1) = v48; memcpy(Block[0], v46, v47 + 1); } else { *(_QWORD *)&v184 = v47; *((_QWORD *)&v184 + 1) = 15; *(_OWORD *)Block = *v46; } v155 = 0; v156 = 0; EmoteSprite::parseTokens(Block, (__int64)&v155, 3, a4); if ( (_QWORD)v155 != *((_QWORD *)&v155 + 1) ) { *(_OWORD *)FileName = 0; *(_QWORD *)&v182 = 0; *((_QWORD *)&v182 + 1) = 15; LOBYTE(FileName[0]) = 0; sub_140059AB0((void **)FileName, v184); v50 = 0; v51 = 0; v52 = v155; v53 = *((_QWORD *)&v155 + 1) - v155; v54 = (*((_QWORD *)&v155 + 1) - (_QWORD)v155) / 24LL; if ( v54 ) { v55 = 0; do { if ( (unsigned __int64)v184 < v50 ) goto LABEL_98; v56 = *(_QWORD *)(v55 + v52) - v50; if ( (unsigned __int64)v184 - v50 < v56 ) v56 = v184 - v50; v57 = Block; if ( *((_QWORD *)&v184 + 1) > 0xFu ) v57 = (void **)Block[0]; sub_140044D80(FileName, (char *)v57 + v50, v56); v50 = *(_QWORD *)(v55 + v155) + *(_QWORD *)(v55 + v155 + 8); *(_QWORD *)(v55 + v155) = v182; *(_QWORD *)(v55 + v155 + 8) = 1; v58 = sub_14007FD40(*(_QWORD *)(v55 + v155 + 16), 0.0); v59 = 127; if ( v58 ) v59 = 30; sub_14003DBD0((void **)FileName, v59); ++v51; v55 += 24; v52 = v155; v53 = *((_QWORD *)&v155 + 1) - v155; v54 = (*((_QWORD *)&v155 + 1) - (_QWORD)v155) / 24LL; } while ( v51 < v54 ); v60 = v184; if ( (unsigned __int64)v184 < v50 ) LABEL_98: sub_14003F4D0(v53, v54, v52, v49); } else { v60 = v184; } v61 = v60 - v50; v62 = -1; if ( v61 != -1 ) v62 = v61; v63 = Block; if ( *((_QWORD *)&v184 + 1) > 0xFu ) v63 = (void **)Block[0]; sub_140044D80(FileName, (char *)v63 + v50, v62); if ( *((_QWORD *)&v184 + 1) > 0xFu ) { v64 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v184 + 1) + 1LL) >= 0x1000 ) { v64 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v64 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v64); } *(_OWORD *)Block = *(_OWORD *)FileName; v184 = v182; } v65 = Block; if ( *((_QWORD *)&v184 + 1) > 0xFu ) v65 = (void **)Block[0]; v66 = cocos2d::CCLabelBMFont::create((const char *)v65, (const char *)&qword_140704F78); cocos2d::CCLabelBMFont::limitLabelWidth(v66, (float)(v10 - 40.0) - 30.0, 0.62, 0.30000001); v67 = *(_QWORD *)v66; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 0.0, 1.0); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v67 + 288))(v66, v68); v69 = *(_QWORD *)v66; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 20.0, -32.0); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v69 + 184))(v66, v70); (*(void (__fastcall **)(__int64 *, cocos2d::CCLabelBMFont *))(*v7 + 464))(v7, v66); EmoteSprite::attachToLabel(v66, v7, (__int64 *)&v155, 0.0); v71 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v66 + 320LL))(v66) + 4); v72 = -32.0 - (float)((float)((*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v66 + 168LL))(v66) * v71) + 12.0); v73 = (float)(v10 - 40.0) - 20.0; v149 = v73; v74 = (float)(v10 - 40.0) - 10.0; v148 = 0; v75 = v154; v76 = *(_QWORD *)(v31 + v154 + 72); v77 = (*(_QWORD *)(v31 + v154 + 80) - v76) / 120; if ( (int)v77 <= 0 ) { LABEL_96: v145 = *(_QWORD *)(a1 + 712); *(float *)(v145 + 432) = fmaxf(v11, 6.0 - v72); ScrollableContentLayer::clampOffset(v145); ScrollableContentLayer::ensureScrollThumb(v146); ScrollableContentLayer::applyContentPosition(v145); NewsPopup::prefetchPageImages(a1, (unsigned int)(*(_DWORD *)(a1 + 704) - 1)); NewsPopup::prefetchPageImages(a1, (unsigned int)(*(_DWORD *)(a1 + 704) + 1)); sub_140059CE0((__int64)&v155); sub_14003D310((__int64)Block); return; } v78 = 0; while ( 1 ) { v79 = *(_DWORD *)(v78 + v76); if ( !v79 ) { *(_OWORD *)FileName = 0; *(_QWORD *)&v182 = 0; sub_14049D830((__int64 *)(v78 + v76 + 8), v77, (__int64 *)FileName); v80 = 0; v81 = FileName[1]; v82 = FileName[0]; if ( (int)((FileName[1] - FileName[0]) >> 5) > 0 ) { v83 = 0; do { if ( *(_QWORD *)&v82[v83 + 16] ) { v152 = v164; v84 = sub_14003F4F0((__int64)v164, (__int64)&v82[32 * v80]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, 0.0, 1.0); v86 = (float *)TextArea::create(v84, "chatFont.fnt", 1.0, v73 / 0.75, v85, 1101004800, 0, 10); v87 = *(_QWORD *)v86; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, 0.0, 1.0); (*(void (__fastcall **)(float *, __int64))(v87 + 288))(v86, v88); (*(void (__fastcall **)(float *))(*(_QWORD *)v86 + 160LL))(v86); v89 = *(_QWORD *)v86; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v176, 20.0, v72); (*(void (__fastcall **)(float *, __int64))(v89 + 184))(v86, v90); (*(void (__fastcall **)(__int64 *, float *))(*v7 + 464))(v7, v86); v72 = v72 - (float)((float)((float)(v86[109] + 20.0) * 0.75) + 4.0); v81 = FileName[1]; v82 = FileName[0]; } else { v72 = v72 + -10.0; } ++v80; v83 += 32; } while ( v80 < (int)((v81 - v82) >> 5) ); v6 = v148; v75 = v154; } v72 = v72 + -4.0; sub_1400760C0((__int64 *)FileName); goto LABEL_94; } if ( v79 == 2 ) { v91 = (const char *)(v78 + v76 + 8); if ( *((_QWORD *)v91 + 3) > 0xFu ) v91 = *(const char **)v91; v92 = cocos2d::CCLabelBMFont::create(v91, "chatFont.fnt"); v150 = -14286; v151 = -1; (**((void (__fastcall ***)(__int64, __int16 *))v92 + 46))((__int64)v92 + 368, &v150); cocos2d::CCLabelBMFont::limitLabelWidth(v92, v73, 0.75, 0.30000001); v93 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v92 + 320LL))(v92); v94 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v92 + 168LL))(v92); v95 = *(float *)&v94 * v93; v96 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v92 + 320LL))(v92) + 4); v97 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v92 + 168LL))(v92); v98 = *(float *)&v97 * v96; v99 = (_QWORD *)cocos2d::CCSprite::create(); v100 = *v99; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v170, v95, *(float *)&v97 * v96); (*(void (__fastcall **)(_QWORD *, __int64))(v100 + 312))(v99, v101); LOBYTE(v102) = 1; (*(void (__fastcall **)(_QWORD *, __int64))(v99[40] + 72LL))(v99 + 40, v102); v103 = *(_QWORD *)v92; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v177, v95 * 0.5, v98 * 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v103 + 184))(v92, v104); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *))(*v99 + 464LL))(v99, v92); v105 = CCMenuItemSpriteExtra::create((int)v99, 0, a1, (__int64)NewsPopup::onBlockClicked); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v105 + 64LL))(v105, (unsigned int)v6); v106 = *(_QWORD *)v105; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v167, v95, v98); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v106 + 312))(v105, v107); *((_DWORD *)v105 + 93) = 1067030938; *((_BYTE *)v105 + 408) = 0; v108 = *(_QWORD *)v105; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, (float)(v95 * 0.5) + 20.0, v72 - (float)(v98 * 0.5)); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v108 + 184))(v105, v109); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 720) + 464LL))( *(_QWORD *)(a1 + 720), v105); v72 = v72 - (float)(v98 + 8.0); v10 = v157; goto LABEL_93; } if ( v79 != 1 ) goto LABEL_94; v110 = *(_DWORD *)(v78 + v76 + 72); if ( v110 <= 0 ) goto LABEL_94; v111 = *(_DWORD *)(v78 + v76 + 76); if ( v111 <= 0 ) goto LABEL_94; v112 = (float)((float)v111 / (float)v110) * v74; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162, v10 * 0.5, v72 - (float)(v112 * 0.5)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v153, v74 * 0.5, v112 * 0.5); v113 = (cocos2d::CCObject *)cocos2d::CCSprite::create(); v114 = *(_QWORD *)v113; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v169, v74, v112); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v114 + 312))(v113, v115); LOBYTE(v116) = 1; (*(void (__fastcall **)(_QWORD *, __int64))(*((_QWORD *)v113 + 40) + 72LL))((_QWORD *)v113 + 40, v116); v163 = v164; v152 = (_QWORD *)(v78 + v76 + 40); v118 = sub_14003F4F0((__int64)v164, (__int64)v152); if ( !qword_14090C070 ) { v171 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v171); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); } v147 = 0; if ( !(unsigned __int8)MusicDownloadManager::isNewsImageDownloaded(v117, v118) ) break; v163 = v164; v120 = (void **)sub_14003F4F0((__int64)v164, v78 + v76 + 40); if ( !qword_14090C070 ) { v172 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); } MusicDownloadManager::pathForNewsImage(v119, (CHAR *)FileName, v120); v121 = (const char *)FileName; if ( *((_QWORD *)&v182 + 1) > 0xFu ) v121 = FileName[0]; v122 = cocos2d::CCSprite::create(v121); if ( v122 ) { sub_1400CF4B0((__int64 *)(a1 + 816), (__int64)v179, FileName); v124 = *(_QWORD *)v122; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v122 + 320LL))(v122); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v124 + 120))(v122); v125 = *(_QWORD *)v122; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v122 + 320LL))(v122); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v125 + 136))(v122); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v122 + 184LL))(v122, &v153); (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCSprite *))(*(_QWORD *)v113 + 464LL))(v113, v122); v147 = 1; if ( *(_BYTE *)(v78 + v76 + 80) ) { v126 = cocos2d::CCSprite::createWithSpriteFrameName("youtubePlayButton_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v126 + 184LL))(v126, &v153); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v126 + 160LL))(v126); (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v113 + 456LL))( v113, v126, 2); } } else { v123 = (const char *)FileName; if ( *((_QWORD *)&v182 + 1) > 0xFu ) v123 = FileName[0]; remove(v123); sub_1400CF4B0((__int64 *)(a1 + 800), (__int64)v178, (_QWORD *)(v78 + v76 + 40)); } sub_14003D310((__int64)FileName); if ( !v147 ) break; if ( *(_QWORD *)(v78 + v76 + 104) ) goto LABEL_91; (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v113 + 184LL))(v113, v162); v127 = *v7; v128 = v113; v129 = v7; LABEL_92: (*(void (__fastcall **)(__int64 *, cocos2d::CCObject *))(v127 + 464))(v129, v128); v72 = v72 - (float)(v112 + 10.0); v6 = v148; LABEL_93: v75 = v154; v73 = v149; LABEL_94: v148 = ++v6; v78 += 120; v76 = *(_QWORD *)(v159 + v75 + 72); v77 = (*(_QWORD *)(v159 + v75 + 80) - v76) / 120; if ( v6 >= (int)v77 ) { v11 = v158; goto LABEL_96; } } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v180, 0.0, 0.0, 40.0, 40.0); v131 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v130); v132 = *v131; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v173, v74, v112); (*(void (__fastcall **)(_QWORD *, __int64))(v132 + 312))(v131, v133); LOBYTE(v134) = 90; (*(void (__fastcall **)(_QWORD *, __int64))(v131[40] + 40LL))(v131 + 40, v134); (*(void (__fastcall **)(_QWORD *, __int64 *))(*v131 + 184LL))(v131, &v153); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v113 + 464LL))(v113, v131); v135 = v152; v136 = sub_1400CF6A0((__int64 **)(a1 + 800), v152); v137 = "Loading..."; if ( v136 ) v137 = "Tap to retry"; v138 = cocos2d::CCLabelBMFont::create(v137, (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v138 + 160LL))(v138); LOBYTE(v139) = -106; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v138 + 46) + 40LL))((__int64)v138 + 368, v139); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v138 + 184LL))(v138, &v153); (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v113 + 456LL))( v113, v138, 2); if ( !v136 ) { v163 = v164; v140 = (void **)sub_14003F4F0((__int64)v164, (__int64)v135); v141 = (cocos2d::CCObject *)qword_14090C070; if ( !qword_14090C070 ) { v174 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v174); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v141 = (cocos2d::CCObject *)qword_14090C070; } MusicDownloadManager::downloadNewsImage(v141, v140); } LABEL_91: v142 = CCMenuItemSpriteExtra::create((int)v113, 0, a1, (__int64)NewsPopup::onBlockClicked); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v142 + 64LL))(v142, v148); v143 = *(_QWORD *)v142; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v175, v74, v112); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v143 + 312))(v142, v144); *((_DWORD *)v142 + 93) = 1065353216; *((_BYTE *)v142 + 408) = 0; (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v113 + 184LL))(v113, &v153); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v142 + 184LL))(v142, v162); v129 = *(__int64 **)(a1 + 720); v127 = *v129; v128 = v142; goto LABEL_92; } (**(void (__fastcall ***)(__int64, char *))(v19 + 360))(v19 + 360, &byte_1406ED6E0); v20 = cocos2d::CCLabelBMFont::create("Loading news...", (const char *)&qword_140704F78); *(_QWORD *)(a1 + 744) = v20; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v20 + 160LL))(v20); v21 = **(_QWORD **)(a1 + 744); v22 = *(_QWORD *)(a1 + 744); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v159, v10 * 0.5, (float)-v11 * 0.5); (*(void (__fastcall **)(__int64, __int64))(v21 + 184))(v22, v23); (*(void (__fastcall **)(__int64 *, _QWORD))(*v7 + 464))(v7, *(_QWORD *)(a1 + 744)); v24 = *(_QWORD *)(a1 + 712); *(float *)(v24 + 432) = v11; ScrollableContentLayer::clampOffset(v24); ScrollableContentLayer::ensureScrollThumb(v25); ScrollableContentLayer::applyContentPosition(v24); v26 = qword_14090C070; if ( !qword_14090C070 ) { v159 = (__int64)operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v159); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v26 = qword_14090C070; } MusicDownloadManager::tryUpdateNewsFeed(v26); }
GD Web Decomp Icon

GD Web Decomp

Raw Source