//
// FRequestProfilePage::onUpdate from 0x14013e650 to 0x14013e750 (256 bytes)
//
// 2 xrefs:
// > FRequestProfilePage::init @ 0x14013e46d
// > ??> @ 0x1406ca1c4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=3
void FRequestProfilePage::onUpdate(FRequestProfilePage *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // rcx
GameLevelManager *v4; // rcx
GameLevelManager *v5; // rcx
void *v6; // [rsp+40h] [rbp+18h]
void *v7; // [rsp+40h] [rbp+18h]
void *v8; // [rsp+40h] [rbp+18h]
v3 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v6 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v3 = (GameLevelManager *)qword_1406C2EC0;
}
if ( (unsigned int)(GameLevelManager::getTimeLeft(v3, "upd_requests", 5.0) - 1) > 4 )
{
v4 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v7 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v4 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::makeTimeStamp(v4, "upd_requests");
v5 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v8 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v5 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::invalidateRequests(v5, a1->m_sent, 1);
}
}