// // ThreadViewPopup::layoutTitleRow from 0x1004f8fd0 to 0x1004f9330 (864 bytes) // // 4 xrefs: // > ThreadViewPopup::init @ 0x1004f8134 // > ThreadViewPopup::threadMessagesFinished @ 0x1004fd9a8 // > RenameThreadPopup::threadUpdateFinished @ 0x100511434 // > ThreadDescPopup::threadUpdateFinished @ 0x100513d90 // // 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 11:06:49 +0000 // __int64 __fastcall ThreadViewPopup::layoutTitleRow(__int64 result) { __int64 v1; // x19 __int64 v2; // x0 __int64 v3; // x8 unsigned __int64 v4; // x2 _QWORD *v5; // x0 __int64 v6; // x0 double WinSize; // d0 float v8; // s9 float v9; // s8 __int64 v10; // x0 float v11; // s10 float v12; // s10 __int64 v13; // x0 __int64 v14; // x0 float v15; // s11 __int64 v16; // x0 __int64 v17; // x0 float v18; // s11 float v19; // s12 float v20; // s0 float v21; // s9 float v22; // s9 __int64 v23; // x20 float v24; // s13 __int64 v25; // x20 float v26; // s0 __int64 v27; // x20 float v28; // s0 void *__p[2]; // [xsp+0h] [xbp-60h] BYREF __int64 v30; // [xsp+10h] [xbp-50h] if ( !*(_QWORD *)(result + 888) ) return result; v1 = result; v2 = *(_QWORD *)(result + 896); if ( v2 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 520LL))(v2); *(_QWORD *)(v1 + 896) = 0; } v3 = *(_QWORD *)(v1 + 752); if ( (*(_BYTE *)(v3 + 264) & 1) == 0 ) { if ( *(char *)(v3 + 263) < 0 ) { v4 = *(_QWORD *)(v3 + 248); if ( v4 ) { sub_1000097D0(__p, *(void **)(v3 + 240), v4); goto LABEL_11; } } else if ( *(_BYTE *)(v3 + 263) ) { *(_OWORD *)__p = *(_OWORD *)(v3 + 240); v30 = *(_QWORD *)(v3 + 256); goto LABEL_11; } sub_100009900(__p, "na"); LABEL_11: v5 = EmoteSprite::createWithName((__int64)__p); *(_QWORD *)(v1 + 896) = v5; if ( SHIBYTE(v30) < 0 ) { operator delete(__p[0]); v5 = *(_QWORD **)(v1 + 896); if ( !v5 ) goto LABEL_15; } else if ( !v5 ) { LABEL_15: sub_100009900(__p, "na"); v5 = EmoteSprite::createWithName((__int64)__p); *(_QWORD *)(v1 + 896) = v5; if ( SHIBYTE(v30) < 0 ) { operator delete(__p[0]); v5 = *(_QWORD **)(v1 + 896); } if ( !v5 ) goto LABEL_19; } EmoteSprite::fitToHeight(v5, 18.0, 0.0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v1 + 584) + 464LL))( *(_QWORD *)(v1 + 584), *(_QWORD *)(v1 + 896), 1); } LABEL_19: v6 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v6, __p); v8 = *(float *)__p; v9 = (*(float (__fastcall **)(_QWORD, double))(**(_QWORD **)(v1 + 888) + 240LL))(*(_QWORD *)(v1 + 888), WinSize); v10 = *(_QWORD *)(v1 + 896); if ( v10 ) { v11 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10); v12 = v11 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 896) + 168LL))(*(_QWORD *)(v1 + 896)); } else { v12 = 0.0; } v13 = *(_QWORD *)(v1 + 904); if ( v13 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 520LL))(v13); *(_QWORD *)(v1 + 904) = 0; } v14 = *(_QWORD *)(v1 + 752); v15 = 0.0; if ( *(_BYTE *)(v14 + 264) == 1 ) { v16 = sub_1000C705C(v14, 18.0); *(_QWORD *)(v1 + 904) = v16; if ( v16 ) { (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v1 + 584) + 464LL))( *(_QWORD *)(v1 + 584), v16, 1); v17 = *(_QWORD *)(v1 + 904); if ( v17 ) { v18 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17); v15 = (float)(v18 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 904) + 168LL))(*(_QWORD *)(v1 + 904))) + 6.0; } } } v19 = v8 * 0.5; (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v1 + 888) + 160LL))(*(_QWORD *)(v1 + 888), 0.7); v20 = 200.0; if ( v12 > 0.0 ) v20 = 200.0 - (float)(v12 + 6.0); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v1 + 888), v20 - v15, 0.7, 0.3); v21 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 888) + 328LL))(*(_QWORD *)(v1 + 888)); v22 = v21 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 888) + 168LL))(*(_QWORD *)(v1 + 888)); v23 = *(_QWORD *)(v1 + 896); if ( v23 ) { v24 = (float)((float)(v12 + 6.0) + v22) * 0.5; sub_1000262BC((float *)__p, (float)(v12 * 0.5) + (float)(v19 - v24), v9); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v23 + 184LL))(v23, __p); v25 = *(_QWORD *)(v1 + 888); v26 = (float)(v19 + v24) - (float)(v22 * 0.5); } else { v25 = *(_QWORD *)(v1 + 888); v26 = v19 + (float)(v15 * -0.5); } sub_1000262BC((float *)__p, v26, v9); result = (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v25 + 184LL))(v25, __p); v27 = *(_QWORD *)(v1 + 904); if ( v27 ) { v28 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 888) + 224LL))(*(_QWORD *)(v1 + 888)); sub_1000262BC((float *)__p, (float)((float)(v22 * 0.5) + v28) + 6.0, v9); return (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v27 + 184LL))(v27, __p); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source