//
// ThreadDescPopup::init from 0xc7a668 to 0xc7a6dc (116 bytes)
//
// 2 xrefs:
// > ThreadDescPopup::create @ 0xc7a940
// > ??> @ 0xf40f0
//
// 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:35 +0000
//
__int64 __fastcall ThreadDescPopup::init(ThreadDescPopup *this, GJMessageThread *a2, ThreadViewPopup *a3)
{
GJAccountManager *v4; // x0
int v5; // w20
__int64 v6; // x4
if ( !a2 )
return 0;
*((_QWORD *)this + 130) = a3;
*((_QWORD *)this + 129) = a2;
cocos2d::CCObject::retain(a2);
v4 = *((GJAccountManager **)this + 129);
v5 = *((_DWORD *)v4 + 50);
v6 = GJAccountManager::sharedState(v4);
return ThreadDescPopup::buildUI(
(__int64)this,
v5 == *(_DWORD *)(v6 + 352) - *(_DWORD *)(v6 + 356),
(unsigned __int8 *)(*((_QWORD *)this + 129) + 216LL),
*((_QWORD *)this + 129) + 240LL);
}