// // ThreadViewPopup::threadMessagesFinished from 0x75e22c to 0x75ed82 (2902 bytes) // // 1 xrefs: // > `non-virtual thunk to'ThreadViewPopup::threadMessagesFinished @ 0x75ed8c // // 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:59:02 +0000 // void __fastcall ThreadViewPopup::threadMessagesFinished(ThreadViewPopup *this, int a2, cocos2d::CCArray *a3, int a4) { __int64 v7; // r0 __int64 v8; // r2 int v9; // r10 ThreadViewPopup *refreshed; // r0 int v11; // r6 ThreadViewPopup *v12; // r0 int v13; // r6 GameLevelManager *v14; // r0 int v15; // r6 GameLevelManager *v16; // r0 unsigned __int8 *v17; // r6 int v18; // r0 unsigned __int8 *v19; // r0 int v20; // r3 int v22; // r6 int v23; // r2 int v24; // r7 size_t v25; // r2 int v26; // r3 unsigned __int8 *v27; // r1 int v28; // lr int v29; // r3 char *v30; // r0 unsigned __int8 *v31; // r1 unsigned __int8 *v32; // r2 int v33; // t1 unsigned __int8 *v34; // r6 int v35; // r0 int v36; // r0 int v37; // r1 int v38; // r1 int v39; // r6 int v40; // r6 int v41; // r1 const char *v42; // r2 _BOOL4 v43; // r6 int v44; // r7 int v45; // r7 int v46; // r1 int v47; // r1 const char *v48; // r2 GameLevelManager *v49; // r0 int v50; // r0 int v51; // r3 int v52; // r3 int v53; // r3 int v54; // r3 int v55; // r0 const char *v56; // r6 size_t v57; // r0 cocos2d::CCArray *v58; // r7 signed int v59; // r6 cocos2d::CCString *v60; // r0 signed int v61; // r8 const char *CString; // r0 int v63; // lr int v64; // r7 int v65; // r8 int *v66; // r0 int *v67; // r0 float v68; // s14 signed int v69; // r5 cocos2d::CCArray *v70; // r0 GameLevelManager *v71; // r0 cocos2d::CCArray *v72; // r6 cocos2d::CCObject *v73; // r0 GameLevelManager *v74; // r0 GameLevelManager *v75; // r0 __int64 v76; // r2 __int64 v77; // r2 float v78; // s15 int v79; // r1 unsigned int v80; // r5 int v81; // r2 int v82; // r8 signed int v83; // r1 float *v84; // r0 float v85; // s12 float v86; // s13 float v87; // s14 float v88; // s15 bool v89; // fzf bool v90; // fnf float v92; // r1 float v93; // s15 int v94; // r6 ThreadViewPopup *v95; // r0 float v96; // r1 cocos2d::CCArray *v97; // r0 cocos2d::CCArray *v98; // r0 signed int v99; // r5 GameLevelManager *v100; // r0 cocos2d::CCArray *v101; // r8 cocos2d::CCObject *v102; // r0 int *v103; // r0 bool v104; // r3 int v105; // r5 unsigned int v106; // r7 unsigned int v107; // r8 GJAccountManager *v108; // r0 int v109; // r9 GJAccountManager *v110; // r10 int v111; // r0 int v113; // r5 signed int v114; // r8 cocos2d::CCArray *v115; // r5 cocos2d::CCObject *v116; // lr __int64 v117; // r0 signed int v118; // r8 int v119; // r7 bool v120; // cc cocos2d::CCArray *v121; // r0 unsigned int v122; // r1 cocos2d::CCObject *v123; // r0 signed int i; // r8 GameLevelManager *v125; // r0 cocos2d::CCArray *v126; // r9 cocos2d::CCObject *v127; // r0 int *v128; // r0 bool v129; // r3 int v130; // r0 signed int v131; // r8 int v132; // r10 int v133; // r11 int v134; // r1 int v135; // r0 int v136; // r1 cocos2d::CCArray *v137; // r0 GameLevelManager *v138; // r0 cocos2d::CCArray *v139; // r7 int v140; // r0 __int64 v141; // r8 int v142; // r0 const char *v143; // r3 int v144; // r3 GameManager *v145; // r11 int ThreadMessages; // r8 GameLevelManager *v147; // r0 signed int j; // r7 __int64 v149; // r2 int v150; // r3 float v151; // s16 GameLevelManager *v152; // r0 int v153; // r0 int v154; // r6 int v155; // r1 const char *v156; // r2 float v157; // r1 __int64 v158; // [sp+20h] [bp-34h] int v159; // [sp+20h] [bp-34h] int v160; // [sp+28h] [bp-2Ch] int v161; // [sp+2Ch] [bp-28h] __int64 v162; // [sp+30h] [bp-24h] int v163; // [sp+30h] [bp-24h] const char *v164; // [sp+30h] [bp-24h] int v165; // [sp+38h] [bp-1Ch] char *v166; // [sp+38h] [bp-1Ch] int v167; // [sp+40h] [bp-14h] BYREF int v168; // [sp+44h] [bp-10h] int v169; // [sp+48h] [bp-Ch] if ( a2 != *(_DWORD *)(*((_DWORD *)this + 141) + 52) ) return; LODWORD(v7) = GameLevelManager::sharedState(this) + 384; if ( *(__int64 *)v7 >= 1 || (LODWORD(v7) = GameLevelManager::sharedState((GameLevelManager *)v7), *(_BYTE *)(v7 + 400)) ) { v8 = *((_QWORD *)this + 108); if ( !v8 ) return; v9 = 1; } else { if ( *((_BYTE *)this + 808) ) return; if ( !*((_BYTE *)this + 597) ) { v152 = (GameLevelManager *)(GameLevelManager::sharedState((GameLevelManager *)v7) + 432); if ( *(_QWORD *)v152 ) return; LODWORD(v7) = GameLevelManager::sharedState(v152) + 440; v8 = *(_QWORD *)v7; if ( *(_QWORD *)v7 ) return; } if ( *((_BYTE *)this + 597) ) { if ( !a4 ) { v153 = GameLevelManager::sharedState((GameLevelManager *)v7); v8 = *((_QWORD *)this + 72); v7 = *(_QWORD *)(v153 + 432); if ( v7 != v8 ) return; } } v9 = 0; } LODWORD(v7) = *((_DWORD *)this + 156); if ( (_DWORD)v7 ) LODWORD(v7) = LoadingCircle::fadeAndRemove((cocos2d::CCNode **)v7, SHIDWORD(v7), v8); refreshed = (ThreadViewPopup *)GameLevelManager::sharedState((GameLevelManager *)v7); if ( *((int *)refreshed + 92) >= 0 ) { v11 = *(unsigned __int8 *)(*((_DWORD *)this + 141) + 176); refreshed = (ThreadViewPopup *)GameLevelManager::sharedState(refreshed); if ( *((unsigned __int8 *)refreshed + 484) != v11 ) { v154 = *((_DWORD *)this + 141); *(_BYTE *)(v154 + 176) = *(_BYTE *)(GameLevelManager::sharedState(refreshed) + 484); refreshed = ThreadViewPopup::refreshLockNotice(this, v155, v156); } } v12 = (ThreadViewPopup *)GameLevelManager::sharedState(refreshed); if ( *((int *)v12 + 91) > 0 ) { v13 = *((_DWORD *)this + 141); v14 = (GameLevelManager *)GameLevelManager::sharedState(v12); *(_DWORD *)(v13 + 132) = *((_DWORD *)v14 + 89); v15 = *((_DWORD *)this + 141); v16 = (GameLevelManager *)GameLevelManager::sharedState(v14); *(_DWORD *)(v15 + 140) = *((_DWORD *)v16 + 90); v17 = (unsigned __int8 *)(*((_DWORD *)this + 141) + 144); v18 = GameLevelManager::sharedState(v16); v19 = std::string::operator=(v17, (unsigned __int8 *)(v18 + 460)); if ( !*(_BYTE *)(*((_DWORD *)this + 141) + 168) ) { v19 = (unsigned __int8 *)GameLevelManager::sharedState((GameLevelManager *)v19); v20 = v19[472]; if ( (v20 & 1) != 0 ? *((_DWORD *)v19 + 119) : v20 >> 1 ) { v22 = *((_DWORD *)this + 141); v19 = (unsigned __int8 *)GameLevelManager::sharedState((GameLevelManager *)v19); v23 = *(unsigned __int8 *)(v22 + 72); v24 = v23 & 1; v25 = (v23 & 1) != 0 ? *(_DWORD *)(v22 + 76) : v23 >> 1; v26 = v19[472]; v27 = v19; v28 = v26 & 1; v29 = (v26 & 1) != 0 ? *((_DWORD *)v19 + 119) : v26 >> 1; if ( v25 != v29 ) goto LABEL_38; if ( v24 ) v30 = *(char **)(v22 + 80); else v30 = (char *)(v22 + 73); if ( v28 ) v31 = *((unsigned __int8 **)v27 + 120); else v31 = v27 + 473; if ( !v24 ) { v19 = (unsigned __int8 *)(v30 - 1); v32 = &v31[v25]; while ( v31 != v32 ) { v33 = *++v19; if ( v33 != *v31 ) goto LABEL_38; ++v31; } goto LABEL_44; } v19 = (unsigned __int8 *)std::char_traits::compare(v30, v31, v25); if ( v19 ) { LABEL_38: v34 = (unsigned __int8 *)(*((_DWORD *)this + 141) + 72); v35 = GameLevelManager::sharedState((GameLevelManager *)v19); std::string::operator=(v34, (unsigned __int8 *)(v35 + 472)); v36 = *((_DWORD *)this + 166); if ( v36 ) { v37 = *((_DWORD *)this + 141); if ( (*(_BYTE *)(v37 + 72) & 1) != 0 ) v38 = *(_DWORD *)(v37 + 80); else v38 = v37 + 73; (*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 464))(v36, v38); } v19 = (unsigned __int8 *)ThreadViewPopup::layoutTitleRow((int)this); } } } LABEL_44: v39 = *(_DWORD *)(*((_DWORD *)this + 141) + 116); v12 = (ThreadViewPopup *)GameLevelManager::sharedState((GameLevelManager *)v19); if ( v39 != *((_DWORD *)v12 + 91) ) { v40 = *((_DWORD *)this + 141); *(_DWORD *)(v40 + 116) = *(_DWORD *)(GameLevelManager::sharedState(v12) + 364); ThreadViewPopup::buildMemberButton((int)this); v12 = ThreadViewPopup::refreshLockNotice(this, v41, v42); } if ( *(_BYTE *)(*((_DWORD *)this + 141) + 168) ) { v43 = 0; } else { v12 = (ThreadViewPopup *)GameLevelManager::sharedState(v12); v43 = *((_DWORD *)v12 + 122) == 8 || *(_DWORD *)(*((_DWORD *)this + 141) + 172) == 8; } if ( *(_BYTE *)(*((_DWORD *)this + 141) + 168) || v43 ) { v12 = (ThreadViewPopup *)GameLevelManager::sharedState(v12); if ( *((int *)v12 + 122) >= 0 ) { v44 = *(_DWORD *)(*((_DWORD *)this + 141) + 172); v12 = (ThreadViewPopup *)GameLevelManager::sharedState(v12); if ( v44 != *((_DWORD *)v12 + 122) ) { v45 = *((_DWORD *)this + 141); *(_DWORD *)(v45 + 172) = *(_DWORD *)(GameLevelManager::sharedState(v12) + 488); *(_BYTE *)(*((_DWORD *)this + 141) + 169) = *(_DWORD *)(*((_DWORD *)this + 141) + 172) == 2; ThreadViewPopup::refreshDMSubLabel(this); v46 = ThreadViewPopup::dmSendBlocked(this); if ( !v46 ) v46 = *((unsigned __int8 *)this + 598); ThreadViewPopup::setSendPending(this, v46); v12 = ThreadViewPopup::refreshLockNotice(this, v47, v48); if ( v43 ) { ThreadViewPopup::buildMemberButton((int)this); if ( ThreadViewPopup::removedView(this) ) v157 = 0.0; else v157 = *((float *)this + 174); v12 = (ThreadViewPopup *)ThreadViewPopup::setPollInterval((int)this, v157); } } } } } v49 = (GameLevelManager *)GameLevelManager::sharedState(v12); if ( *((int *)v49 + 92) >= 0 ) { v49 = (GameLevelManager *)GameLevelManager::sharedState(v49); *((_DWORD *)this + 172) = *((_DWORD *)v49 + 92); } v50 = GameLevelManager::sharedState(v49); v51 = *(unsigned __int8 *)(v50 + 492); if ( (v51 & 1) != 0 ) v52 = *(_DWORD *)(v50 + 496); else v52 = v51 >> 1; if ( v52 && ((v50 = GameLevelManager::sharedState((GameLevelManager *)v50), v53 = *(unsigned __int8 *)(v50 + 492), (v53 & 1) != 0) ? (v54 = *(_DWORD *)(v50 + 496)) : (v54 = v53 >> 1), v54 != 1 || (v50 = std::string::compare((unsigned __int8 *)(v50 + 492), 0, 0xFFFFFFFF, "0", 1u)) != 0) ) { v55 = GameLevelManager::sharedState((GameLevelManager *)v50); if ( (*(_BYTE *)(v55 + 492) & 1) != 0 ) v56 = *(const char **)(v55 + 500); else v56 = (const char *)(v55 + 493); v167 = 0; v168 = 0; v169 = 0; v57 = strlen(v56); std::string::__init(&v167, v56, v57); v58 = sub_74EB30((cocos2d::CCArray *)&v167, ","); v59 = 0; std::string::~string((int)&v167); v160 = 0; while ( 1 ) { v50 = (int)v58; if ( v58 ) v50 = cocos2d::CCArray::count(v58); if ( v59 >= v50 ) break; v60 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v58, v59); v61 = 0; CString = (const char *)cocos2d::CCString::getCString(v60); v158 = atoll(CString); while ( v61 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)) ) { v63 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), v61); if ( *(_QWORD *)(v63 + 56) == v158 ) { if ( *((_BYTE *)this + 599) ) *(_BYTE *)(v63 + 88) = 1; else cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 142), v61, 1); v160 = 1; break; } ++v61; } ++v59; } } else { v160 = 0; } if ( a3 ) { v50 = cocos2d::CCArray::count(a3); v64 = v50; } else { v64 = 0; } v65 = *((unsigned __int8 *)this + 597); if ( *((_BYTE *)this + 597) ) { if ( !*((_QWORD *)this + 73) ) a4 = 1; v159 = (unsigned __int8)a4 ^ 1; } else { v159 = *((unsigned __int8 *)this + 597); } v161 = *((unsigned __int8 *)this + 856); if ( *((_BYTE *)this + 856) && a4 ) { v50 = GameLevelManager::sharedState((GameLevelManager *)v50); *((_BYTE *)this + 856) = *(_DWORD *)(v50 + 380) > 0; } v66 = (int *)GameLevelManager::sharedState((GameLevelManager *)v50); *((float *)this + 174) = (float)v66[112]; v67 = (int *)GameLevelManager::sharedState((GameLevelManager *)v66); *((float *)this + 175) = (float)v67[113]; v68 = (float)*(int *)(GameLevelManager::sharedState((GameLevelManager *)v67) + 456); *((float *)this + 176) = v68; if ( v9 ) { v69 = 0; *((_QWORD *)this + 108) = 0; v70 = *((cocos2d::CCArray **)this + 142); *((_BYTE *)this + 597) = 1; v71 = (GameLevelManager *)cocos2d::CCArray::removeAllObjects(v70); while ( v69 < v64 ) { v72 = *((cocos2d::CCArray **)this + 142); v73 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v69++); v71 = (GameLevelManager *)cocos2d::CCArray::addObject(v72, v73); } v74 = (GameLevelManager *)GameLevelManager::sharedState(v71); *((_BYTE *)this + 596) = *((_DWORD *)v74 + 94) > 0; *((_BYTE *)this + 856) = *(_DWORD *)(GameLevelManager::sharedState(v74) + 380) > 0; *((_QWORD *)this + 89) = 0; v75 = (GameLevelManager *)(GameLevelManager::sharedState(nullptr) + 392); if ( *(__int64 *)v75 >= 1 ) *((_QWORD *)this + 109) = *(_QWORD *)(GameLevelManager::sharedState(v75) + 392); *((_BYTE *)this + 880) = 0; if ( v64 <= 0 ) v76 = 0; else v76 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), 0) + 56); *((_QWORD *)this + 72) = v76; if ( v64 <= 0 ) v77 = 0; else v77 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), v64 - 1) + 56); *((_QWORD *)this + 73) = v77; if ( *((_BYTE *)this + 856) || (v78 = *((float *)this + 174), v78 <= 0.0) ) { v78 = 0.0; } else if ( *((_BYTE *)this + 598) ) { v78 = 0.0; } ThreadViewPopup::setPollInterval((int)this, v78); if ( *((_BYTE *)this + 856) || ThreadViewPopup::dmSendBlocked(this) ) v79 = 1; else v79 = *((unsigned __int8 *)this + 598); ThreadViewPopup::setSendPending(this, v79); v80 = 0; ThreadViewPopup::setUnseenBelow(this, 0); ThreadViewPopup::buildRows(this, 0); while ( 1 ) { v81 = *((_DWORD *)this + 134); if ( v80 >= 954437177 * ((*((_DWORD *)this + 135) - v81) >> 2) ) return; v82 = v81 + 36 * v80; if ( *(_DWORD *)v82 == 4 ) { v83 = *(_DWORD *)(v82 + 4); if ( v83 >= 0 && *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), v83) + 56) == *((_QWORD *)this + 109) ) { v84 = *((float **)this + 155); v85 = *(float *)(v82 + 12); v86 = *((float *)this + 158); v87 = (float)-(float)(v86 * 0.5) - (float)(*(float *)(v82 + 8) - (float)(v85 * 0.5)); v88 = v84[83] - v86; if ( v87 <= v88 ) { v89 = v87 == 0.0; v90 = v87 < 0.0; } else { v89 = v88 == 0.0; v90 = v88 < 0.0; } if ( !v90 && !v89 ) { if ( v87 > v88 ) v92 = v84[83] - v86; else v92 = (float)-(float)(v86 * 0.5) - (float)(*(float *)(v82 + 8) - (float)(v85 * 0.5)); } else { v92 = 0.0; } goto LABEL_228; } } ++v80; } } v93 = *((float *)this + 174); v94 = v65 ^ 1; if ( v93 <= 0.0 || *((_BYTE *)this + 598) || *((_BYTE *)this + 856) ) { v95 = this; v96 = 0.0; LABEL_149: v97 = (cocos2d::CCArray *)ThreadViewPopup::setPollInterval((int)v95, v96); if ( v94 ) { LABEL_147: v98 = *((cocos2d::CCArray **)this + 142); *((_BYTE *)this + 597) = 1; v99 = 0; v100 = (GameLevelManager *)cocos2d::CCArray::removeAllObjects(v98); while ( v99 < v64 ) { v101 = *((cocos2d::CCArray **)this + 142); v102 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v99++); v100 = (GameLevelManager *)cocos2d::CCArray::addObject(v101, v102); } v103 = (int *)GameLevelManager::sharedState(v100); if ( v103[94] < 0 ) v104 = v64 >= *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v103) + 372); else v104 = *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v103) + 376) != 0; v105 = *((_DWORD *)this + 148); *((_BYTE *)this + 596) = v104; if ( v105 > 0 && v64 > 0 ) { v106 = v64 - 1; v107 = -1; do { v108 = (GJAccountManager *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), v106); v109 = *((_DWORD *)v108 + 16); v110 = v108; v111 = GJAccountManager::sharedState(v108); if ( v109 == *(_DWORD *)(v111 + 280) - *(_DWORD *)(v111 + 284) ) break; if ( *((_DWORD *)v110 + 16) ) { --v105; v107 = v106; } if ( v106-- == 0 ) break; } while ( v105 ); if ( v107 != -1 ) *((_QWORD *)this + 89) = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), v107) + 56); } LABEL_167: v113 = 0; goto LABEL_218; } if ( v159 ) { v114 = v65 ^ 1; v115 = (cocos2d::CCArray *)cocos2d::CCArray::create(v97); while ( v114 < v64 ) { v116 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v114); v117 = *((_QWORD *)this + 72); if ( !v117 || *((_QWORD *)v116 + 7) < v117 ) cocos2d::CCArray::addObject(v115, v116); ++v114; } v118 = 0; v119 = cocos2d::CCArray::count(v115); while ( 1 ) { v120 = v118 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)); v121 = *((cocos2d::CCArray **)this + 142); if ( !v120 ) break; v122 = v118++; v123 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v121, v122); cocos2d::CCArray::addObject(v115, v123); } cocos2d::CCArray::removeAllObjects(v121); for ( i = 0; ; ++i ) { v125 = (GameLevelManager *)cocos2d::CCArray::count(v115); if ( i >= (int)v125 ) break; v126 = *((cocos2d::CCArray **)this + 142); v127 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v115, i); cocos2d::CCArray::addObject(v126, v127); } v128 = (int *)GameLevelManager::sharedState(v125); if ( v128[94] < 0 ) v129 = v119 >= *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v128) + 372); else v129 = *(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v128) + 376) != 0; *((_BYTE *)this + 596) = v129; goto LABEL_167; } goto LABEL_185; } if ( !v65 || v159 ) { v96 = *((float *)this + 174); v95 = this; goto LABEL_149; } if ( v64 <= 0 && !v160 ) { v93 = *((float *)this + 173) + *((float *)this + 175); if ( v93 > v68 ) v93 = v68; } v97 = (cocos2d::CCArray *)ThreadViewPopup::setPollInterval((int)this, v93); if ( v94 ) goto LABEL_147; LABEL_185: v130 = GJAccountManager::sharedState(v97); v131 = 0; v132 = 0; v113 = 0; v165 = *(_DWORD *)(v130 + 280) - *(_DWORD *)(v130 + 284); while ( v131 < v64 ) { v133 = cocos2d::CCArray::objectAtIndex(a3, v131); v162 = *(_QWORD *)(v133 + 56); if ( *((_QWORD *)this + 73) >= v162 ) goto LABEL_196; v134 = *((_DWORD *)this + 190); if ( v134 && !*(_QWORD *)(v134 + 56) && *(_DWORD *)(v133 + 64) == v165 ) { *(_QWORD *)(v134 + 56) = v162; std::string::operator=((unsigned __int8 *)(*((_DWORD *)this + 190) + 68), (unsigned __int8 *)(v133 + 68)); *(_QWORD *)(*((_DWORD *)this + 190) + 80) = *(_QWORD *)(v133 + 80); *((_DWORD *)this + 190) = 0; LABEL_194: v132 = 1; goto LABEL_196; } v135 = ThreadViewPopup::messageWithID((cocos2d::CCArray **)this, v162); if ( v135 ) { v163 = v135; std::string::operator=((unsigned __int8 *)(v135 + 68), (unsigned __int8 *)(v133 + 68)); *(_QWORD *)(v163 + 80) = *(_QWORD *)(v133 + 80); goto LABEL_194; } cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 142), (cocos2d::CCObject *)v133); ++v113; LABEL_196: ++v131; } if ( v113 || v132 ) ThreadViewPopup::sortMessagesByID((cocos2d::CCArray **)this); if ( v161 && !*((_BYTE *)this + 856) ) { v136 = ThreadViewPopup::dmSendBlocked(this); if ( !v136 ) v136 = *((unsigned __int8 *)this + 598); ThreadViewPopup::setSendPending(this, v136); } if ( *((_BYTE *)this + 616) ) { v137 = *((cocos2d::CCArray **)this + 142); *((_BYTE *)this + 616) = 0; v138 = (GameLevelManager *)cocos2d::CCArray::count(v137); if ( v138 ) { v139 = *((cocos2d::CCArray **)this + 142); v140 = cocos2d::CCArray::count(v139); v138 = (GameLevelManager *)cocos2d::CCArray::objectAtIndex(v139, v140 - 1); v141 = *((_QWORD *)v138 + 7); } else { v141 = *((_QWORD *)this + 73); } v142 = GameLevelManager::sharedState(v138); v143 = *(const char **)(*((_DWORD *)this + 141) + 52); v167 = 0; v168 = 0; v164 = v143; v169 = 0; v144 = v141 < 1 ? -1 : *((_DWORD *)this + 172); v166 = (char *)v144; v145 = (GameManager *)v142; std::string::__init(&v167, &unk_B6B226, 0); ThreadMessages = GameLevelManager::getThreadMessages( v145, v164, 0, 0, v141, SHIDWORD(v141), v166, 0, (unsigned __int8 *)&v167); v147 = (GameLevelManager *)std::string::~string((int)&v167); if ( ThreadMessages ) *(_DWORD *)(GameLevelManager::sharedState(v147) + 840) = (char *)this + 524; } if ( v113 || v160 || v132 || v161 ) { LABEL_218: if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)) ) { *((_QWORD *)this + 72) = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), 0) + 56); for ( j = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 142)) - 1; j >= 0; --j ) { v149 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 142), j) + 56); if ( v149 >= 1 ) { *((_QWORD *)this + 73) = v149; break; } } } v150 = *((_DWORD *)this + 155); v151 = *(float *)(v150 + 336); if ( v159 ) { ThreadViewPopup::buildRows(this, 0); } else if ( v161 ) { ThreadViewPopup::buildRows(this, 0); v92 = v151; v84 = *((float **)this + 155); LABEL_228: ScrollableContentLayer::scrollTo((ScrollableContentLayer *)v84, v92); } else if ( v94 || (float)((float)(*(float *)(v150 + 332) - v151) - *((float *)this + 158)) < 24.0 ) { ThreadViewPopup::buildRows(this, 1); ThreadViewPopup::setUnseenBelow(this, 0); if ( v94 && *((int *)this + 148) > 0 ) ThreadViewPopup::scrollToUnreadLine((int)this); } else { ThreadViewPopup::buildRows(this, 0); ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 155), v151); if ( v113 ) ThreadViewPopup::setUnseenBelow(this, 1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source