//
// FriendsProfilePage::onUpdate from 0xa4fa28 to 0xa4fa8c (100 bytes)
//
// 3 xrefs:
// > ??> @ 0xe3398
// > FriendsProfilePage::init @ 0xa50df8
// > ??> @ 0x1546d18
//
// This function is hookable on this platform (idp: arm, 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 13:00:04 +0000
//
__int64 __fastcall FriendsProfilePage::onUpdate(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
__int64 result; // x0
GameLevelManager *v5; // x0
GameLevelManager *TimeStamp; // x0
__int64 v7; // x0
v3 = (GameLevelManager *)GameLevelManager::sharedState(this);
result = (unsigned int)GameLevelManager::getTimeLeft(v3, "upd_friends", 5.0) - 1;
if ( (unsigned int)result > 4 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result);
TimeStamp = (GameLevelManager *)GameLevelManager::makeTimeStamp(v5, "upd_friends");
v7 = GameLevelManager::sharedState(TimeStamp);
return GameLevelManager::invalidateUserList(v7, *((_DWORD *)this + 204), 1u);
}
return result;
}