//
// ThreadViewPopup::openAt from 0xc869a8 to 0xc86ae0 (312 bytes)
//
// 3 xrefs:
// > ThreadViewPopup::init @ 0xc878e4
// > ThreadViewPopup::onJumpToMessage @ 0xc88d94
// > ??> @ 0xb3de8
//
// 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:42 +0000
//
__int64 __fastcall ThreadViewPopup::openAt(ThreadViewPopup *this, const char *a2)
{
unsigned int v4; // w21
GameLevelManager *v6; // x0
cocos2d::CCObject *v7; // x23
unsigned int v8; // w21
GameLevelManager *ThreadMessages; // x0
__int64 v10[2]; // [xsp+50h] [xbp+50h] BYREF
void *v11; // [xsp+60h] [xbp+60h]
if ( !*((_QWORD *)this + 130) && (__int64)a2 > 0 )
{
v6 = (GameLevelManager *)*((unsigned __int8 *)this + 790);
if ( !*((_BYTE *)this + 790) )
{
v7 = (cocos2d::CCObject *)GameLevelManager::sharedState(v6);
v8 = *(_DWORD *)(*((_QWORD *)this + 94) + 56LL);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &byte_11B8890, 0);
ThreadMessages = (GameLevelManager *)GameLevelManager::getThreadMessages(
v7,
(char *)v8,
0,
0,
0xFFFFFFFF,
a2,
(char *)v10);
v4 = (unsigned __int8)ThreadMessages;
if ( (v10[0] & 1) != 0 )
{
operator delete(v11);
if ( v4 )
goto LABEL_8;
}
else if ( (_BYTE)ThreadMessages )
{
LABEL_8:
*(_QWORD *)(GameLevelManager::sharedState(ThreadMessages) + 1264) = (char *)this + 672;
ThreadViewPopup::exitSearch((__int64)this, 0);
*((_QWORD *)this + 147) = a2;
*((_QWORD *)this + 148) = a2;
ThreadViewPopup::showLoading(this);
return v4;
}
}
}
return 0;
}