//
// ThreadViewPopup::refetchLatest from 0xc65ed0 to 0xc65fc4 (244 bytes)
//
// 6 xrefs:
// > ThreadDescPopup::threadUpdateFinished @ 0xc7ae18
// > MemberListPopup::threadUpdateFinished @ 0xc7cd90
// > ThreadViewPopup::exitSearch @ 0xc86740
// > ThreadViewPopup::threadUpdateFinished @ 0xc895d0
// > ThreadViewPopup::threadSendFinished @ 0xc89e80
// > ??> @ 0xbf380
//
// 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:25 +0000
//
__int64 __fastcall ThreadViewPopup::refetchLatest(ThreadViewPopup *this)
{
ThreadViewPopup *v1; // x19
float v2; // s0
cocos2d::CCObject *v3; // x0
__int64 v4; // x3
char *v5; // x1
unsigned int v6; // w4
GameLevelManager *ThreadMessages; // x0
int v8; // w21
_QWORD v10[2]; // [xsp+30h] [xbp+30h] BYREF
void *v11; // [xsp+40h] [xbp+40h]
v1 = this;
if ( !*((_BYTE *)this + 790) )
{
v2 = *((float *)this + 236);
if ( v2 > 0.0 )
this = (ThreadViewPopup *)ThreadViewPopup::setPollInterval((__int64)this, v2);
v3 = (cocos2d::CCObject *)GameLevelManager::sharedState(this);
v4 = *((_QWORD *)v1 + 97);
v5 = (char *)*(unsigned int *)(*((_QWORD *)v1 + 94) + 56LL);
if ( v4 <= 0 )
v6 = -1;
else
v6 = *((_DWORD *)v1 + 234);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
ThreadMessages = (GameLevelManager *)GameLevelManager::getThreadMessages(v3, v5, 0, v4, v6, nullptr, (char *)v10);
v8 = (unsigned __int8)ThreadMessages;
if ( (v10[0] & 1) != 0 )
{
operator delete(v11);
if ( !v8 )
goto LABEL_8;
}
else if ( !(_BYTE)ThreadMessages )
{
LABEL_8:
*((_BYTE *)v1 + 816) = 1;
return _stack_chk_guard;
}
*(_QWORD *)(GameLevelManager::sharedState(ThreadMessages) + 1264) = (char *)v1 + 672;
}
return _stack_chk_guard;
}