//
// ThreadViewPopup::onAutoRefresh from 0x7499ec to 0x749ad6 (234 bytes)
//
// 0 xrefs:
//
// 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::onAutoRefresh(int this, float a2)
{
int v2; // r4
int v3; // r6
GameLevelManager *v4; // r0
int v5; // r0
int v6; // r3
const char *v7; // r8
__int64 v8; // r6
int v9; // r10
GameManager *v10; // r9
int v11[3]; // [sp+20h] [bp-10h] BYREF
v2 = this;
if ( *(_BYTE *)(this + 597) && !*(_BYTE *)(this + 598) && !*(_BYTE *)(this + 808) && !*(_BYTE *)(this + 856) )
{
v3 = this + 524;
v4 = *(GameLevelManager **)(GameLevelManager::sharedState((GameLevelManager *)this) + 840);
if ( !v4
|| (v4 = (GameLevelManager *)_dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'ThreadMessageDelegate,
(const struct __class_type_info *)&`typeinfo for'MessageThreadsPage,
520)) != nullptr )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(v4);
*((_DWORD *)v4 + 210) = v3;
}
this = GameLevelManager::sharedState(v4);
if ( *(_DWORD *)(this + 840) == v3 )
{
v5 = GameLevelManager::sharedState((GameLevelManager *)this);
v6 = *(_DWORD *)(v2 + 564);
memset(v11, 0, sizeof(v11));
v7 = *(const char **)(v6 + 52);
v8 = *(_QWORD *)(v2 + 584);
if ( v8 < 1 )
v9 = -1;
else
v9 = *(_DWORD *)(v2 + 688);
v10 = (GameManager *)v5;
std::string::__init(v11, &unk_B6B226, 0);
GameLevelManager::getThreadMessages(v10, v7, 0, 0, v8, SHIDWORD(v8), (char *)v9, 0, (unsigned __int8 *)v11);
return std::string::~string((int)v11);
}
}
return this;
}