//
// FRequestProfilePage::onUpdate from 0x140210e90 to 0x140210fd5 (325 bytes)
//
// 3 xrefs:
// > FRequestProfilePage::init @ 0x1402100c5
// > ??> @ 0x14091b4dc
// > ??> @ 0x14091b4e8
//
// 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 11:28:19 +0000
//
// Hidden C++ exception states: #wind=3
__int64 __fastcall FRequestProfilePage::onUpdate(__int64 a1)
{
cocos2d::CCObject *v2; // rcx
__int64 v3; // rcx
__int64 result; // rax
__int64 v5; // rcx
__int64 v6; // r8
__int64 v7; // rcx
void *v8; // [rsp+30h] [rbp+8h]
void *v9; // [rsp+30h] [rbp+8h]
void *v10; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(a1 + 896) )
{
*(_BYTE *)(a1 + 896) = 0;
v2 = *(cocos2d::CCObject **)(a1 + 888);
if ( v2 )
{
cocos2d::CCObject::release(v2);
*(_QWORD *)(a1 + 888) = 0;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 792) + 336LL))(*(_QWORD *)(a1 + 792), 0);
}
v3 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v8 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v3 = *(_QWORD *)&qword_14090BFB0;
}
result = (unsigned int)GameLevelManager::getTimeLeft(v3, "upd_requests") - 1;
if ( (unsigned int)result > 4 )
{
v5 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v9 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::makeTimeStamp(v5, "upd_requests");
v7 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v10 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v10);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v7 = *(_QWORD *)&qword_14090BFB0;
}
LOBYTE(v6) = 1;
return GameLevelManager::invalidateRequests(v7, *(unsigned __int8 *)(a1 + 704), v6);
}
return result;
}