// // ThreadViewPopup::threadMessagesFinished from 0xc8a234 to 0xc8b134 (3840 bytes) // // 3 xrefs: // > `non-virtual thunk to'ThreadViewPopup::threadMessagesFinished @ 0xc8b138 // > @ 0x67ab0 // > @ 0x14eca90 // // 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:05:44 +0000 // __int64 __fastcall ThreadViewPopup::threadMessagesFinished( ThreadViewPopup *this, int a2, cocos2d::CCArray *a3, unsigned __int8 a4) { unsigned int v6; // w24 GameLevelManager *v7; // x0 GameLevelManager *v9; // x0 int v10; // w28 cocos2d::CCNode **v11; // x0 __int64 refreshed; // x0 unsigned __int8 *v13; // x0 int v14; // w20 __int64 v15; // x20 __int64 v16; // x1 const char *v17; // x2 __int64 v18; // x0 __int64 v19; // x20 GameLevelManager *v20; // x0 __int64 v21; // x20 GameLevelManager *v22; // x0 __int64 v23; // x20 __int64 v24; // x0 __int64 *v25; // x20 const void *v26; // x1 size_t v27; // x2 __int64 v28; // x0 int v29; // w20 GameLevelManager *v30; // x0 __int64 v31; // x20 __int64 v32; // x1 const char *v33; // x2 int v34; // w20 GameLevelManager *v35; // x0 int v36; // w22 __int64 v37; // x22 unsigned __int8 v38; // w1 __int64 v39; // x1 const char *v40; // x2 bool v41; // w0 float v42; // s0 GameLevelManager *v43; // x0 unsigned __int8 *v44; // x2 __int64 v45; // x0 __int64 v46; // x1 unsigned int v47; // w27 int v48; // w20 unsigned int v49; // w22 unsigned int v50; // w25 int v51; // w26 GameLevelManager *v52; // x0 GameLevelManager *v53; // x0 float v54; // s1 float v55; // s0 GJAccountManager *v56; // x0 unsigned int v57; // w27 cocos2d::CCArray *v58; // x24 cocos2d::CCObject *v59; // x1 __int64 v60; // x0 int v61; // w20 int v62; // w23 unsigned int v63; // w1 cocos2d::CCObject *v64; // x0 bool v65; // cc cocos2d::CCArray *v66; // x0 int v67; // w20 unsigned int v68; // w1 cocos2d::CCArray *v69; // x27 cocos2d::CCObject *v70; // x0 GameLevelManager *v71; // x0 GameLevelManager *v72; // x0 int v73; // w23 __int64 v74; // x0 __int64 v75; // x4 __int64 v76; // x0 const char *v77; // x1 size_t v78; // x0 cocos2d::CCArray *v79; // x26 signed int v80; // w25 signed int v81; // w20 cocos2d::CCString *v82; // x0 const char *CString; // x0 __int64 v84; // x22 __int64 v85; // x0 GameLevelManager *v86; // x0 cocos2d::CCArray *v87; // x0 unsigned int v88; // w22 GameLevelManager *v89; // x0 unsigned int v90; // w1 cocos2d::CCArray *v91; // x24 cocos2d::CCObject *v92; // x0 _BOOL8 v93; // x0 int v94; // w0 _BOOL8 v95; // x0 GameLevelManager *v96; // x0 __int64 v97; // x0 int v98; // w1 float v99; // s0 unsigned __int8 v100; // w1 __int64 v101; // x2 __int64 v102; // x3 __int64 v103; // x20 unsigned __int64 v104; // x22 __int64 v105; // x23 unsigned int v106; // w1 __int64 v107; // x0 unsigned int v108; // w28 const void *v109; // x1 size_t v110; // x2 __int64 v111; // x5 __int64 v112; // x24 __int64 v113; // x1 __int64 v114; // x0 __int64 v115; // x0 __int64 *v116; // x0 cocos2d::CCArray *v117; // x0 unsigned int v118; // w24 GameLevelManager *v119; // x0 unsigned int v120; // w1 cocos2d::CCArray *v121; // x27 cocos2d::CCObject *v122; // x0 GameLevelManager *v123; // x0 bool v124; // w0 int v125; // w27 unsigned int v126; // w20 int v127; // w23 GJAccountManager *v128; // x0 int v129; // w28 GJAccountManager *v130; // x24 __int64 v131; // x0 unsigned int v132; // w1 __int64 v133; // x1 cocos2d::CCArray *v134; // x0 signed int v135; // w20 __int64 v136; // x0 __int64 v137; // x1 __int64 *v138; // x0 const void *v139; // x1 size_t v140; // x2 unsigned __int8 *v141; // x2 GameLevelManager *v142; // x0 __int64 v143; // x1 __int64 v144; // x20 __int64 v145; // x1 unsigned __int8 v146; // w0 int v147; // w3 size_t v148; // x2 unsigned __int8 *v149; // x0 __int64 v150; // x4 int v151; // w7 __int64 v152; // x6 __int64 v153; // x20 __int64 v154; // x0 __int64 *v155; // x20 const void *v156; // x1 size_t v157; // x2 __int64 v158; // x0 __int64 v159; // x2 __int64 v160; // x1 __int64 v161; // x2 cocos2d::CCArray *v162; // x0 float v163; // s0 float *v164; // x0 cocos2d::CCArray *v165; // x0 GameLevelManager *v166; // x0 __int64 v167; // x20 __int64 v168; // x5 int v169; // w4 GameLevelManager *ThreadMessages; // x0 int v171; // w20 unsigned __int8 v172; // w1 float v173; // s0 float v174; // s2 float v175; // s1 _BOOL4 v176; // w1 cocos2d::CCArray *v177; // x20 int v178; // w0 unsigned __int8 *v179; // x1 unsigned __int8 *v180; // x3 int v181; // t1 unsigned int v182; // [xsp+68h] [xbp+68h] cocos2d::CCObject *v183; // [xsp+70h] [xbp+70h] int v184; // [xsp+78h] [xbp+78h] unsigned int v185; // [xsp+78h] [xbp+78h] int v186; // [xsp+80h] [xbp+80h] int v187; // [xsp+8Ch] [xbp+8Ch] char *v188; // [xsp+90h] [xbp+90h] unsigned int v189; // [xsp+90h] [xbp+90h] __int64 v190; // [xsp+90h] [xbp+90h] float v191; // [xsp+90h] [xbp+90h] float v192; // [xsp+90h] [xbp+90h] __int64 v193; // [xsp+A0h] [xbp+A0h] BYREF __int64 v194; // [xsp+A8h] [xbp+A8h] void *v195; // [xsp+B0h] [xbp+B0h] v6 = a4; v7 = (GameLevelManager *)*(unsigned int *)(*((_QWORD *)this + 94) + 56LL); if ( (_DWORD)v7 != a2 ) return _stack_chk_guard; v9 = *(GameLevelManager **)(GameLevelManager::sharedState(v7) + 512); if ( (__int64)v9 > 0 || *(_BYTE *)(GameLevelManager::sharedState(v9) + 528) ) { v10 = 1; if ( !*((_QWORD *)this + 147) ) return _stack_chk_guard; } else { if ( *((_BYTE *)this + 1104) ) return _stack_chk_guard; v86 = (GameLevelManager *)*((unsigned __int8 *)this + 789); if ( !*((_BYTE *)this + 789) ) { if ( *(_QWORD *)(GameLevelManager::sharedState(v86) + 568) || *(_QWORD *)(GameLevelManager::sharedState(nullptr) + 576) ) { return _stack_chk_guard; } v86 = (GameLevelManager *)*((unsigned __int8 *)this + 789); } if ( v6 < (unsigned int)v86 ) { if ( *(_QWORD *)(GameLevelManager::sharedState(v86) + 568) != *((_QWORD *)this + 96) ) return _stack_chk_guard; v10 = 0; } else { v10 = 0; } } v11 = *((cocos2d::CCNode ***)this + 104); if ( v11 ) v11 = (cocos2d::CCNode **)LoadingCircle::fadeAndRemove(v11); refreshed = *(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v11) + 496); if ( (refreshed & 0x80000000) == 0 ) { v13 = *((unsigned __int8 **)this + 94); v14 = v13[272]; refreshed = *(unsigned __int8 *)(GameLevelManager::sharedState((GameLevelManager *)v13) + 648); if ( (_DWORD)refreshed != v14 ) { v15 = *((_QWORD *)this + 94); v16 = *(unsigned __int8 *)(GameLevelManager::sharedState((GameLevelManager *)refreshed) + 648); *(_BYTE *)(v15 + 272) = v16; refreshed = ThreadViewPopup::refreshLockNotice(this, v16, v17); } } v18 = *(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)refreshed) + 492); if ( (int)v18 > 0 ) { v19 = *((_QWORD *)this + 94); v20 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v18) + 484); *(_DWORD *)(v19 + 200) = (_DWORD)v20; v21 = *((_QWORD *)this + 94); v22 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState(v20) + 488); *(_DWORD *)(v21 + 208) = (_DWORD)v22; v23 = *((_QWORD *)this + 94); v24 = GameLevelManager::sharedState(v22); v25 = (__int64 *)(v23 + 216); if ( v25 != (__int64 *)(v24 + 600) ) { if ( (*(_BYTE *)(v24 + 600) & 1) != 0 ) { v26 = *(const void **)(v24 + 616); v27 = *(_QWORD *)(v24 + 608); } else { v26 = (const void *)(v24 + 601); v27 = *(_BYTE *)(v24 + 600) >> 1; } std::string::assign(v25, v26, v27); } v28 = *((_QWORD *)this + 94); if ( *(_BYTE *)(v28 + 264) ) goto LABEL_16; v141 = (unsigned __int8 *)(GameLevelManager::sharedState((GameLevelManager *)v28) + 624); v142 = (GameLevelManager *)*v141; v143 = (unsigned __int8)v142 >> 1; if ( ((unsigned __int8)v142 & 1) != 0 ) v143 = *((_QWORD *)v141 + 1); if ( !v143 ) { LABEL_186: v28 = *((_QWORD *)this + 94); goto LABEL_16; } v144 = *((_QWORD *)this + 94); v145 = GameLevelManager::sharedState(v142); v146 = *(_BYTE *)(v144 + 88); v147 = v146 & 1; v148 = v146 >> 1; if ( (v146 & 1) != 0 ) v148 = *(_QWORD *)(v144 + 96); v149 = (unsigned __int8 *)*(unsigned __int8 *)(v145 + 624); v150 = v145 + 624; v151 = (unsigned __int8)v149 & 1; v152 = (unsigned __int8)v149 >> 1; if ( ((unsigned __int8)v149 & 1) != 0 ) v152 = *(_QWORD *)(v145 + 632); if ( v148 == v152 ) { v149 = (unsigned __int8 *)(v144 + 89); if ( v147 ) v149 = *(unsigned __int8 **)(v144 + 104); v179 = (unsigned __int8 *)(v145 + 625); if ( v151 ) v179 = *(unsigned __int8 **)(v150 + 16); if ( v147 ) { if ( !v148 ) goto LABEL_186; v149 = (unsigned __int8 *)memcmp(v149, v179, v148); if ( !(_DWORD)v149 ) { v28 = *((_QWORD *)this + 94); goto LABEL_16; } } else { if ( !v148 ) goto LABEL_186; if ( *v149 == *v179 ) { v180 = v149 + 1; v149 += v148; while ( 1 ) { ++v179; if ( v180 == v149 ) break; v181 = *v180++; if ( *v179 != v181 ) goto LABEL_192; } v28 = *((_QWORD *)this + 94); LABEL_16: v29 = *(_DWORD *)(v28 + 168); v30 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v28) + 492); if ( v29 != (_DWORD)v30 ) { v31 = *((_QWORD *)this + 94); *(_DWORD *)(v31 + 168) = *(_DWORD *)(GameLevelManager::sharedState(v30) + 492); ThreadViewPopup::buildMemberButton(this); ThreadViewPopup::refreshLockNotice(this, v32, v33); } v18 = *(unsigned __int8 *)(*((_QWORD *)this + 94) + 264LL); if ( !*(_BYTE *)(*((_QWORD *)this + 94) + 264LL) ) { v18 = *(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v18) + 652); if ( (_DWORD)v18 == 8 || (v18 = *((_QWORD *)this + 94), *(_DWORD *)(v18 + 268) == 8) ) { v34 = 1; goto LABEL_20; } v18 = *(unsigned __int8 *)(v18 + 264); if ( !(_DWORD)v18 ) goto LABEL_28; } v34 = 0; LABEL_20: v18 = *(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v18) + 652); if ( (v18 & 0x80000000) == 0 ) { v35 = *((GameLevelManager **)this + 94); v36 = *((_DWORD *)v35 + 67); v18 = *(unsigned int *)(GameLevelManager::sharedState(v35) + 652); if ( v36 != (_DWORD)v18 ) { v37 = *((_QWORD *)this + 94); *(_DWORD *)(v37 + 268) = *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v18) + 652); *(_BYTE *)(*((_QWORD *)this + 94) + 265LL) = *(_DWORD *)(*((_QWORD *)this + 94) + 268LL) == 2; ThreadViewPopup::refreshDMSubLabel((__int64)this); v38 = ThreadViewPopup::dmSendBlocked(this); if ( !v38 ) v38 = *((_BYTE *)this + 790); ThreadViewPopup::setSendPending((__int64)this, v38); v18 = ThreadViewPopup::refreshLockNotice(this, v39, v40); if ( v34 ) { ThreadViewPopup::buildMemberButton(this); v41 = ThreadViewPopup::removedView(this); v42 = 0.0; if ( !v41 ) v42 = *((float *)this + 236); v18 = ThreadViewPopup::setPollInterval((__int64)this, v42); } } } goto LABEL_28; } } } LABEL_192: v153 = *((_QWORD *)this + 94); v154 = GameLevelManager::sharedState((GameLevelManager *)v149); v155 = (__int64 *)(v153 + 88); if ( v155 != (__int64 *)(v154 + 624) ) { if ( (*(_BYTE *)(v154 + 624) & 1) != 0 ) { v156 = *(const void **)(v154 + 640); v157 = *(_QWORD *)(v154 + 632); } else { v156 = (const void *)(v154 + 625); v157 = *(_BYTE *)(v154 + 624) >> 1; } std::string::assign(v155, v156, v157); } v158 = *((_QWORD *)this + 111); if ( v158 ) { v159 = *((_QWORD *)this + 94); v160 = v159 + 89; if ( (*(_BYTE *)(v159 + 88) & 1) != 0 ) v160 = *(_QWORD *)(v159 + 104); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v158 + 928LL))(v158, v160); } ThreadViewPopup::layoutTitleRow(this); v28 = *((_QWORD *)this + 94); goto LABEL_16; } LABEL_28: v43 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v18) + 496); if ( ((unsigned int)v43 & 0x80000000) == 0 ) { v43 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState(v43) + 496); *((_DWORD *)this + 234) = (_DWORD)v43; } v44 = (unsigned __int8 *)(GameLevelManager::sharedState(v43) + 656); v45 = *v44; v46 = (unsigned __int8)v45 >> 1; if ( (v45 & 1) != 0 ) v46 = *((_QWORD *)v44 + 1); if ( v46 ) { v45 = GameLevelManager::sharedState((GameLevelManager *)v45); v75 = *(_BYTE *)(v45 + 656) >> 1; if ( (*(_BYTE *)(v45 + 656) & 1) != 0 ) v75 = *(_QWORD *)(v45 + 664); if ( v75 != 1 || (v45 = std::string::compare(v45 + 656, 0, 0xFFFFFFFFFFFFFFFFLL, "0", 1u), (_DWORD)v45) ) { v76 = GameLevelManager::sharedState((GameLevelManager *)v45); v77 = (const char *)(v76 + 657); if ( (*(_BYTE *)(v76 + 656) & 1) != 0 ) v77 = *(const char **)(v76 + 672); v188 = (char *)v77; v193 = 0; v194 = 0; v195 = nullptr; v78 = strlen(v77); std::string::__init(&v193, v188, v78); v79 = sub_C70D14((unsigned __int8 *)&v193, &byte_1169BE0); if ( (v193 & 1) != 0 ) operator delete(v195); v80 = 0; v47 = 0; LABEL_84: while ( 1 ) { v45 = v79 ? cocos2d::CCArray::count(v79) : 0LL; if ( v80 >= (int)v45 ) break; v81 = 0; v82 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v79, v80); CString = (const char *)cocos2d::CCString::getCString(v82); v84 = atoll(CString); while ( 1 ) { if ( v81 >= (int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 95)) ) { ++v80; goto LABEL_84; } v85 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), v81); if ( v84 == *(_QWORD *)(v85 + 56) ) break; ++v81; } v47 = 1; if ( *((_BYTE *)this + 791) ) { *(_BYTE *)(v85 + 104) = 1; ++v80; } else { ++v80; cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 95), v81, 1); } } } else { v47 = 0; } } else { v47 = 0; } if ( a3 ) { v45 = cocos2d::CCArray::count(a3); v48 = v45; } else { v48 = 0; } v49 = *((unsigned __int8 *)this + 789); v50 = 0; if ( *((_BYTE *)this + 789) ) { v45 = *((_QWORD *)this + 97); if ( v45 ) v50 = v6 ^ 1; else v6 = 1; } v51 = *((unsigned __int8 *)this + 1168); if ( v6 && *((_BYTE *)this + 1168) ) { v45 = *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v45) + 508) > 0; *((_BYTE *)this + 1168) = v45; } v52 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v45) + 584); *((float *)this + 236) = (float)(int)v52; v53 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState(v52) + 588); *((float *)this + 237) = (float)(int)v53; v54 = (float)*(int *)(GameLevelManager::sharedState(v53) + 592); *((float *)this + 238) = v54; if ( v10 ) { v87 = *((cocos2d::CCArray **)this + 95); *((_QWORD *)this + 147) = 0; v88 = 0; *((_BYTE *)this + 789) = 1; v89 = (GameLevelManager *)cocos2d::CCArray::removeAllObjects(v87); if ( v48 > 0 ) { do { v90 = v88; v91 = *((cocos2d::CCArray **)this + 95); ++v88; v92 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v90); v89 = (GameLevelManager *)cocos2d::CCArray::addObject(v91, v92); } while ( v88 != v48 ); } v93 = *(_DWORD *)(GameLevelManager::sharedState(v89) + 504) > 0; *((_BYTE *)this + 788) = v93; v94 = *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v93) + 508); *((_QWORD *)this + 120) = 0; v95 = v94 > 0; *((_BYTE *)this + 1168) = v95; v96 = *(GameLevelManager **)(GameLevelManager::sharedState((GameLevelManager *)v95) + 520); if ( (__int64)v96 > 0 ) *((_QWORD *)this + 148) = *(_QWORD *)(GameLevelManager::sharedState(v96) + 520); *((_BYTE *)this + 1192) = 0; if ( v48 > 0 ) { v161 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), 0) + 56); v162 = *((cocos2d::CCArray **)this + 95); *((_QWORD *)this + 96) = v161; v97 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(v162, v48 - 1) + 56); } else { *((_QWORD *)this + 96) = 0; v97 = 0; } v98 = *((unsigned __int8 *)this + 1168); *((_QWORD *)this + 97) = v97; v99 = 0.0; if ( !v98 ) { v99 = *((float *)this + 236); if ( v99 <= 0.0 || *((_BYTE *)this + 790) ) v99 = 0.0; } ThreadViewPopup::setPollInterval((__int64)this, v99); if ( *((_BYTE *)this + 1168) || (unsigned __int8)ThreadViewPopup::dmSendBlocked(this) ) v100 = 1; else v100 = *((_BYTE *)this + 790); ThreadViewPopup::setSendPending((__int64)this, v100); ThreadViewPopup::setUnseenBelow(this, 0); ThreadViewPopup::buildRows(this, 0); v101 = *((_QWORD *)this + 87); v102 = *((_QWORD *)this + 88); if ( !(0x6DB6DB6DB6DB6DB7LL * ((v102 - v101) >> 3)) ) return _stack_chk_guard; v103 = 0; v104 = 0; while ( 1 ) { v105 = v101 + v103; if ( *(_DWORD *)(v101 + v103) == 4 ) { v106 = *(_DWORD *)(v105 + 4); if ( (v106 & 0x80000000) == 0 ) { if ( *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), v106) + 56) == *((_QWORD *)this + 148) ) { v164 = *((float **)this + 103); v173 = *((float *)this + 211); v174 = v164[108] - v173; v175 = -(float)((float)(*(float *)(v105 + 8) - (float)(*(float *)(v105 + 12) * 0.5)) + (float)(v173 * 0.5)); if ( v175 <= v174 ) v176 = v175 > 0.0; else v176 = v174 > 0.0; v163 = 0.0; if ( v176 ) { v163 = v174; if ( v175 <= v174 ) { ScrollableContentLayer::scrollTo((ScrollableContentLayer *)v164, v175); return _stack_chk_guard; } } LABEL_204: ScrollableContentLayer::scrollTo((ScrollableContentLayer *)v164, v163); return _stack_chk_guard; } v101 = *((_QWORD *)this + 87); v102 = *((_QWORD *)this + 88); } } ++v104; v103 += 56; if ( v104 >= 0x6DB6DB6DB6DB6DB7LL * ((v102 - v101) >> 3) ) return _stack_chk_guard; } } v55 = *((float *)this + 236); if ( v55 <= 0.0 || *((_BYTE *)this + 790) || *((_BYTE *)this + 1168) ) { ThreadViewPopup::setPollInterval((__int64)this, 0.0); } else { if ( v49 > v50 && v48 <= 0 && !v47 ) { v55 = *((float *)this + 235) + *((float *)this + 237); if ( v54 < v55 ) v55 = v54; } ThreadViewPopup::setPollInterval((__int64)this, v55); } v56 = (GJAccountManager *)(v49 ^ 1); v187 = (int)v56; if ( (_DWORD)v56 ) { v117 = *((cocos2d::CCArray **)this + 95); *((_BYTE *)this + 789) = 1; v118 = 0; v119 = (GameLevelManager *)cocos2d::CCArray::removeAllObjects(v117); if ( v48 > 0 ) { do { v120 = v118; v121 = *((cocos2d::CCArray **)this + 95); ++v118; v122 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v120); v119 = (GameLevelManager *)cocos2d::CCArray::addObject(v121, v122); } while ( v118 != v48 ); } v123 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState(v119) + 504); if ( ((unsigned int)v123 & 0x80000000) != 0 ) v124 = v48 >= *(_DWORD *)(GameLevelManager::sharedState(v123) + 500); else v124 = *(_DWORD *)(GameLevelManager::sharedState(v123) + 504) != 0; *((_BYTE *)this + 788) = v124; v125 = *((_DWORD *)this + 196); if ( v48 > 0 && v125 > 0 ) { v126 = v48 - 1; v127 = -1; do { v128 = (GJAccountManager *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), v126); v129 = *((_DWORD *)v128 + 16); v130 = v128; v131 = GJAccountManager::sharedState(v128); if ( v129 == *(_DWORD *)(v131 + 352) - *(_DWORD *)(v131 + 356) ) break; if ( *((_DWORD *)v130 + 16) ) { --v125; v127 = v126; } --v126; if ( v125 <= 0 ) break; } while ( (v126 & 0x80000000) == 0 ); if ( v127 != -1 ) { v132 = v127; v73 = 0; *((_QWORD *)this + 120) = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), v132) + 56); goto LABEL_62; } } } else { if ( !v50 ) { v107 = GJAccountManager::sharedState(v56); v186 = *(_DWORD *)(v107 + 352) - *(_DWORD *)(v107 + 356); if ( v48 <= 0 ) { v189 = 0; v73 = 0; } else { v108 = 0; v189 = 0; v184 = 0; do { v112 = cocos2d::CCArray::objectAtIndex(a3, v108); v113 = *(_QWORD *)(v112 + 56); if ( v113 > *((_QWORD *)this + 97) ) { v114 = *((_QWORD *)this + 130); if ( v114 && !*(_QWORD *)(v114 + 56) && *(_DWORD *)(v112 + 64) == v186 ) { *(_QWORD *)(v114 + 56) = v113; v137 = *((_QWORD *)this + 130); v138 = (__int64 *)(v137 + 72); if ( v137 + 72 != v112 + 72 ) { if ( (*(_BYTE *)(v112 + 72) & 1) != 0 ) { v139 = *(const void **)(v112 + 88); v140 = *(_QWORD *)(v112 + 80); } else { v139 = (const void *)(v112 + 73); v140 = *(_BYTE *)(v112 + 72) >> 1; } std::string::assign(v138, v139, v140); v137 = *((_QWORD *)this + 130); } *(_QWORD *)(v137 + 96) = *(_QWORD *)(v112 + 96); v189 = 1; *((_QWORD *)this + 130) = 0; } else { v115 = ThreadViewPopup::messageWithID((cocos2d::CCArray **)this, v113); v111 = v115; if ( v115 ) { v116 = (__int64 *)(v115 + 72); if ( v116 != (__int64 *)(v112 + 72) ) { if ( (*(_BYTE *)(v112 + 72) & 1) != 0 ) { v109 = *(const void **)(v112 + 88); v110 = *(_QWORD *)(v112 + 80); } else { v109 = (const void *)(v112 + 73); v110 = *(_BYTE *)(v112 + 72) >> 1; } v190 = v111; std::string::assign(v116, v109, v110); v111 = v190; } *(_QWORD *)(v111 + 96) = *(_QWORD *)(v112 + 96); v189 = 1; } else { ++v184; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 95), (cocos2d::CCObject *)v112); } } } ++v108; } while ( v108 != v48 ); v73 = v184; if ( v184 > 0 || v189 ) ThreadViewPopup::sortMessagesByID((cocos2d::CCArray **)this); } if ( v51 && !*((_BYTE *)this + 1168) ) { v172 = ThreadViewPopup::dmSendBlocked(this); if ( !v172 ) v172 = *((_BYTE *)this + 790); ThreadViewPopup::setSendPending((__int64)this, v172); } if ( *((_BYTE *)this + 816) ) { v165 = *((cocos2d::CCArray **)this + 95); *((_BYTE *)this + 816) = 0; v166 = (GameLevelManager *)cocos2d::CCArray::count(v165); if ( (_DWORD)v166 ) { v177 = *((cocos2d::CCArray **)this + 95); v178 = cocos2d::CCArray::count(v177); v166 = (GameLevelManager *)cocos2d::CCArray::objectAtIndex(v177, v178 - 1); v167 = *((_QWORD *)v166 + 7); } else { v167 = *((_QWORD *)this + 97); } v168 = GameLevelManager::sharedState(v166); if ( v167 <= 0 ) v169 = -1; else v169 = *((_DWORD *)this + 234); v182 = *(_DWORD *)(*((_QWORD *)this + 94) + 56LL); v183 = (cocos2d::CCObject *)v168; v185 = v169; v193 = 0; v194 = 0; v195 = nullptr; std::string::__init(&v193, &byte_11B8890, 0); ThreadMessages = (GameLevelManager *)GameLevelManager::getThreadMessages( v183, (char *)v182, 0, v167, v185, nullptr, (char *)&v193); v171 = (unsigned __int8)ThreadMessages; if ( (v193 & 1) != 0 ) operator delete(v195); if ( v171 ) *(_QWORD *)(GameLevelManager::sharedState(ThreadMessages) + 1264) = (char *)this + 672; } if ( (v73 == 0) > v47 && (v51 ^ 1u) > v189 ) return _stack_chk_guard; goto LABEL_62; } v57 = 0; v58 = (cocos2d::CCArray *)cocos2d::CCArray::create(v56); if ( v48 > 0 ) { do { v59 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v57); v60 = *((_QWORD *)this + 96); if ( !v60 || v60 > *((_QWORD *)v59 + 7) ) cocos2d::CCArray::addObject(v58, v59); ++v57; } while ( v57 != v48 ); } v61 = 0; v62 = cocos2d::CCArray::count(v58); while ( 1 ) { v65 = v61 < (int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 95)); v66 = *((cocos2d::CCArray **)this + 95); if ( !v65 ) break; v63 = v61++; v64 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v66, v63); cocos2d::CCArray::addObject(v58, v64); } v67 = 0; cocos2d::CCArray::removeAllObjects(v66); while ( 1 ) { v71 = (GameLevelManager *)cocos2d::CCArray::count(v58); if ( v67 >= (int)v71 ) break; v68 = v67; v69 = *((cocos2d::CCArray **)this + 95); ++v67; v70 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v58, v68); cocos2d::CCArray::addObject(v69, v70); } v72 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState(v71) + 504); if ( ((unsigned int)v72 & 0x80000000) != 0 ) *((_BYTE *)this + 788) = *(_DWORD *)(GameLevelManager::sharedState(v72) + 500) <= v62; else *((_BYTE *)this + 788) = *(_DWORD *)(GameLevelManager::sharedState(v72) + 504) != 0; } v73 = 0; LABEL_62: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 95)) ) { v133 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), 0) + 56); v134 = *((cocos2d::CCArray **)this + 95); *((_QWORD *)this + 96) = v133; v135 = cocos2d::CCArray::count(v134) - 1; if ( v135 >= 0 ) { while ( 1 ) { v136 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), v135) + 56); if ( v136 > 0 ) break; if ( --v135 == -1 ) goto LABEL_63; } *((_QWORD *)this + 97) = v136; } } LABEL_63: v74 = *((_QWORD *)this + 103); if ( v50 ) { ThreadViewPopup::buildRows(this, 0); } else { if ( v51 ) { v192 = *(float *)(v74 + 436); ThreadViewPopup::buildRows(this, 0); v163 = v192; v164 = *((float **)this + 103); goto LABEL_204; } if ( ((float)((float)(*(float *)(v74 + 432) - *(float *)(v74 + 436)) - *((float *)this + 211)) < 24.0) < v49 ) { v191 = *(float *)(v74 + 436); ThreadViewPopup::buildRows(this, 0); ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 103), v191); if ( v73 ) ThreadViewPopup::setUnseenBelow(this, 1u); } else { ThreadViewPopup::buildRows(this, 1u); ThreadViewPopup::setUnseenBelow(this, 0); if ( v187 && *((int *)this + 196) > 0 ) ThreadViewPopup::scrollToUnreadLine((__int64)this); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source