//
// MessageThreadsPage::onRefresh from 0x100929c20 to 0x100929d1a (250 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::init @ 0x1009291c6
//
// This function is hookable on this platform (idp: pc, 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 12:38:21 +0000
//
void __fastcall MessageThreadsPage::onRefresh(__int64 a1, double a2, __m128d a3)
{
__int64 v3; // rax
__int64 v4; // rbx
char *v5; // rax
__int64 v6; // rax
__int64 v7; // rsi
__int128 v8; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
__int128 v10[2]; // [rsp+20h] [rbp-20h] BYREF
v3 = GameLevelManager::sharedState();
if ( (unsigned int)GameLevelManager::getTimeLeft(v3, "threadInboxUpdate", COERCE_DOUBLE(1084227584), a3) - 1 > 4 )
{
v6 = GameLevelManager::sharedState();
GameLevelManager::makeTimeStamp(v6, "threadInboxUpdate");
v7 = 0;
if ( !(unsigned __int8)MessageThreadsPage::updateFilterButtons(a1) )
v7 = *(unsigned int *)(a1 + 832);
MessageThreadsPage::loadPage(a1, v7, 0);
}
else
{
v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
strcpy((char *)v10, "$Already up to date");
LOWORD(v8) = 0;
v5 = TextAlertPopup::create(v10, 0x96u, &v8, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v4 + 464LL))(v4, v5, 1000);
if ( (v8 & 1) == 0 )
{
if ( (v10[0] & 1) == 0 )
return;
LABEL_9:
operator delete(*(void **)&v10[1]);
return;
}
operator delete(__p);
if ( (v10[0] & 1) != 0 )
goto LABEL_9;
}
}