//
// ThreadDescPopup::init from 0x100512c40 to 0x100512ca8 (104 bytes)
//
// 1 xrefs:
// > ThreadDescPopup::create @ 0x1004fc788
//
// 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:07:04 +0000
//
__int64 __fastcall ThreadDescPopup::init(__int64 a1, __int64 a2, __int64 a3)
{
int v4; // w20
__int64 v5; // x0
if ( !a2 )
return 0;
*(_QWORD *)(a1 + 1040) = a3;
*(_QWORD *)(a1 + 1032) = a2;
cocos2d::CCObject::retain(a2);
v4 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 200LL);
v5 = GJAccountManager::sharedState();
return ThreadDescPopup::buildUI(
a1,
v4 == *(_DWORD *)(v5 + 352) - *(_DWORD *)(v5 + 356),
*(_QWORD *)(a1 + 1032) + 216LL,
*(_QWORD *)(a1 + 1032) + 240LL);
}