//
// MessageThreadsPage::onRefresh from 0x7533dc to 0x7534ae (210 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:53 +0000
//
GameLevelManager *__fastcall MessageThreadsPage::onRefresh(MessageThreadsPage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // r0
GameLevelManager *v4; // r0
int *v5; // r8
int v6; // r3
void (__fastcall *v7)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v8; // r0
GameLevelManager *v10; // r0
float v11; // r2
int v12; // r3
int v13; // r1
int v14[3]; // [sp+Ch] [bp-20h] BYREF
int v15[3]; // [sp+18h] [bp-14h] BYREF
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
v4 = (GameLevelManager *)(GameLevelManager::getTimeLeft(v3, "threadInboxUpdate", 5.0) - 1);
if ( (unsigned int)v4 > 4 )
{
v10 = (GameLevelManager *)GameLevelManager::sharedState(v4);
GameLevelManager::makeTimeStamp(v10, "threadInboxUpdate", v11, v12);
if ( MessageThreadsPage::syncSearchFromBox(this) )
v13 = 0;
else
v13 = *((_DWORD *)this + 151);
return MessageThreadsPage::loadPage(this, v13, 0);
}
else
{
v5 = *(int **)(cocos2d::CCDirector::sharedDirector(v4) + 220);
v6 = *v5;
memset(v14, 0, sizeof(v14));
v7 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v6 + 232);
std::string::__init(v14, "Already up to date", 0x12u);
memset(v15, 0, sizeof(v15));
std::string::__init(v15, &unk_B6B226, 0);
v8 = TextAlertPopup::create((int)v14, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v15);
v7(v5, v8, 1000);
std::string::~string((int)v15);
return (GameLevelManager *)std::string::~string((int)v14);
}
}