//
// ThreadViewPopup::onRefresh from 0x749718 to 0x749804 (236 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
//
unsigned __int8 *__fastcall ThreadViewPopup::onRefresh(unsigned __int8 *this, cocos2d::CCObject *a2)
{
size_t v2; // r4
unsigned __int8 *v3; // r5
GameLevelManager *v4; // r0
GameLevelManager *v5; // r0
int *v6; // r8
int v7; // r3
void (__fastcall *v8)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v9; // r0
GameLevelManager *v10; // r0
float v11; // r2
int v12; // r3
__int64 v13; // r2
int v14[3]; // [sp+Ch] [bp-20h] BYREF
int v15[3]; // [sp+18h] [bp-14h] BYREF
v2 = *(this + 808);
v3 = this;
if ( !*(this + 808) )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
v5 = (GameLevelManager *)(GameLevelManager::getTimeLeft(v4, "threadViewUpdate", 5.0) - 1);
if ( (unsigned int)v5 > 4 )
{
v10 = (GameLevelManager *)GameLevelManager::sharedState(v5);
GameLevelManager::makeTimeStamp(v10, "threadViewUpdate", v11, v12);
if ( v3[597] )
v13 = *((_QWORD *)v3 + 73);
else
v13 = 0;
this = (unsigned __int8 *)ThreadViewPopup::requestMessages((ThreadViewPopup *)v3, 0, v13);
if ( this )
return (unsigned __int8 *)ThreadViewPopup::showLoading((ThreadViewPopup *)v3);
}
else
{
v6 = *(int **)(cocos2d::CCDirector::sharedDirector(v5) + 220);
v7 = *v6;
v14[0] = v2;
v14[1] = v2;
v8 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v7 + 232);
v14[2] = v2;
std::string::__init(v14, "Already up to date", 0x12u);
v15[0] = v2;
v15[1] = v2;
v15[2] = v2;
std::string::__init(v15, &unk_B6B226, v2);
v9 = TextAlertPopup::create((int)v14, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v15);
v8(v6, v9, 1000);
std::string::~string((int)v15);
return (unsigned __int8 *)std::string::~string((int)v14);
}
}
return this;
}