// // ThreadViewPopup::layoutTitleRow from 0xc6d6e4 to 0xc6db20 (1084 bytes) // // 5 xrefs: // > RenameThreadPopup::threadUpdateFinished @ 0xc79b5c // > ThreadDescPopup::threadUpdateFinished @ 0xc7ae48 // > ThreadViewPopup::init @ 0xc86d54 // > ThreadViewPopup::threadMessagesFinished @ 0xc8ae34 // > @ 0x7d128 // // 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:28 +0000 // __int64 __fastcall ThreadViewPopup::layoutTitleRow(ThreadViewPopup *this) { __int64 v2; // x0 cocos2d::CCSprite *v3; // x0 int v4; // w1 __int64 v5; // x1 long double v6; // q1 char v7; // w1 cocos2d::CCDirector *v8; // x0 float v9; // s11 float v10; // s0 __int64 v11; // x0 float v12; // s13 float v13; // s10 float v14; // s10 __int64 v15; // x0 GJMessageThread *v16; // x0 __int64 RoleBadge; // x1 __int64 v18; // x0 float v19; // s8 float v20; // s8 float v21; // s0 float v22; // s9 float v23; // s0 __int64 v24; // x22 float v25; // s9 void (__fastcall *v26)(__int64, __int64 *); // x23 float v27; // s8 __int64 v28; // x22 void (__fastcall *v29)(__int64, __int64 *); // x23 __int64 v30; // x22 __int64 v31; // x0 void (__fastcall *v32)(__int64, __int64 *); // x19 float v33; // s0 size_t v35; // x2 char v36; // w1 __int64 v37; // [xsp+88h] [xbp+88h] BYREF __int64 v38; // [xsp+90h] [xbp+90h] BYREF __int64 v39; // [xsp+98h] [xbp+98h] void *v40; // [xsp+A0h] [xbp+A0h] if ( !*((_QWORD *)this + 111) ) return _stack_chk_guard; v2 = *((_QWORD *)this + 112); if ( v2 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 520LL))(v2); *((_QWORD *)this + 112) = 0; } v3 = *((cocos2d::CCSprite **)this + 94); if ( *((_BYTE *)v3 + 264) ) goto LABEL_12; v4 = *((unsigned __int8 *)v3 + 240); if ( (v4 & 1) != 0 ) { v35 = *((_QWORD *)v3 + 31); if ( v35 ) { v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, *((void **)v3 + 32), v35); goto LABEL_8; } LABEL_34: v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, "na", 2u); goto LABEL_8; } if ( !(v4 >> 1) ) goto LABEL_34; v5 = *((_QWORD *)v3 + 31); v38 = *((_QWORD *)v3 + 30); v39 = v5; v40 = *((void **)v3 + 32); LABEL_8: v3 = EmoteSprite::createWithName((char *)&v38); v7 = v38; *((_QWORD *)this + 112) = v3; if ( (v7 & 1) != 0 ) { operator delete(v40); v3 = *((cocos2d::CCSprite **)this + 112); } if ( !v3 ) { v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, "na", 2u); v3 = EmoteSprite::createWithName((char *)&v38); v36 = v38; *((_QWORD *)this + 112) = v3; if ( (v36 & 1) != 0 ) { operator delete(v40); v3 = *((cocos2d::CCSprite **)this + 112); if ( !v3 ) goto LABEL_12; } else if ( !v3 ) { goto LABEL_12; } } LODWORD(v6) = 0; EmoteSprite::fitToHeight(v3, 18.0, v6); v3 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 112), 1); LABEL_12: v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(&v37, v8); v9 = *(float *)&v37 * 0.5; v10 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 111) + 240LL))(*((_QWORD *)this + 111)); v11 = *((_QWORD *)this + 112); v12 = v10; if ( v11 ) { v13 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 328LL))(v11); v14 = v13 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 112) + 168LL))(*((_QWORD *)this + 112)); } else { v14 = 0.0; } v15 = *((_QWORD *)this + 113); if ( v15 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 520LL))(v15); *((_QWORD *)this + 113) = 0; } v16 = *((GJMessageThread **)this + 94); if ( *((_BYTE *)v16 + 264) ) { RoleBadge = GJMessageThread::createRoleBadge(v16, 18.0); *((_QWORD *)this + 113) = RoleBadge; } else { RoleBadge = *((_QWORD *)this + 113); } if ( RoleBadge && ((*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), RoleBadge, 1), (v18 = *((_QWORD *)this + 113)) != 0) ) { v19 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 328LL))(v18); v20 = (float)(v19 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 113) + 168LL))(*((_QWORD *)this + 113))) + 6.0; } else { v20 = 0.0; } (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 111) + 160LL))(*((_QWORD *)this + 111), 0.7); if ( v14 <= 0.0 ) v21 = 200.0; else v21 = 200.0 - (float)(v14 + 6.0); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 111), v21 - v20, 0.7, 0.3); v22 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 111) + 328LL))(*((_QWORD *)this + 111)); v23 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 111) + 168LL))(*((_QWORD *)this + 111)); v24 = *((_QWORD *)this + 112); v25 = v22 * v23; if ( v24 ) { v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); v27 = (float)(v14 + 6.0) + v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, (float)(v9 - (float)(v27 * 0.5)) + (float)(v14 * 0.5), v12); v26(v24, &v37); v28 = *((_QWORD *)this + 111); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, (float)(v9 + (float)(v27 * 0.5)) - (float)(v25 * 0.5), v12); } else { v28 = *((_QWORD *)this + 111); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, v9 - (float)(v20 * 0.5), v12); } v29(v28, &v37); v30 = *((_QWORD *)this + 113); if ( v30 ) { v31 = *((_QWORD *)this + 111); v32 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 184LL); v33 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v31 + 224LL))(v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, (float)(v33 + (float)(v25 * 0.5)) + 6.0, v12); v32(v30, &v37); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source