//
// FRequestProfilePage::removeFromNewCount from 0x140211610 to 0x1402116ae (158 bytes)
//
// 3 xrefs:
// > FRequestProfilePage::deleteSelected @ 0x1402115ee
// > FRequestProfilePage::onMarkRead @ 0x1402118e5
// > ??> @ 0x14091b50c
//
// 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=1
void __fastcall FRequestProfilePage::removeFromNewCount(__int64 a1, int a2)
{
__int64 v3; // rax
int v4; // ebx
__int64 v5; // rcx
struct cocos2d::CCObject *v6; // rax
int v7; // ecx
void *v8; // [rsp+30h] [rbp+8h]
if ( a2 > 0 )
{
v3 = GJAccountManager::sharedState(a1);
v4 = *(_DWORD *)(v3 + 360) - *(_DWORD *)(v3 + 364);
v5 = *(_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);
v5 = *(_QWORD *)&qword_14090BFB0;
}
v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v5 + 1232), v4);
if ( v6 )
{
v7 = 0;
if ( *((_DWORD *)v6 + 192) - a2 >= 0 )
v7 = *((_DWORD *)v6 + 192) - a2;
*((_DWORD *)v6 + 192) = v7;
}
}
}