//
// ThreadViewPopup::refetchLatest from 0x749ae8 to 0x749baa (194 bytes)
//
// 5 xrefs:
// > ThreadDescPopup::threadUpdateFinished @ 0x754a1c
// > MemberListPopup::threadUpdateFinished @ 0x755c96
// > ThreadViewPopup::exitSearch @ 0x75be6a
// > ThreadViewPopup::threadUpdateFinished @ 0x75da40
// > ThreadViewPopup::threadSendFinished @ 0x75e082
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:45 +0000
//
int __fastcall ThreadViewPopup::refetchLatest(int this)
{
int v1; // r4
int v2; // r0
int v3; // r3
const char *v4; // r7
__int64 v5; // r8
int v6; // r11
GameManager *v7; // r10
int ThreadMessages; // r7
int v9[3]; // [sp+20h] [bp-14h] BYREF
v1 = this;
if ( !*(_BYTE *)(this + 598) )
{
if ( *(float *)(this + 696) > 0.0 )
this = ThreadViewPopup::setPollInterval(this, *(float *)(this + 696));
v2 = GameLevelManager::sharedState((GameLevelManager *)this);
v3 = *(_DWORD *)(v1 + 564);
memset(v9, 0, sizeof(v9));
v4 = *(const char **)(v3 + 52);
v5 = *(_QWORD *)(v1 + 584);
if ( v5 < 1 )
v6 = -1;
else
v6 = *(_DWORD *)(v1 + 688);
v7 = (GameManager *)v2;
std::string::__init(v9, &unk_B6B226, 0);
ThreadMessages = GameLevelManager::getThreadMessages(
v7,
v4,
0,
0,
v5,
SHIDWORD(v5),
(char *)v6,
0,
(unsigned __int8 *)v9);
this = std::string::~string((int)v9);
if ( ThreadMessages )
{
this = GameLevelManager::sharedState((GameLevelManager *)this);
*(_DWORD *)(this + 840) = v1 + 524;
}
else
{
*(_BYTE *)(v1 + 616) = 1;
}
}
return this;
}