//
// FRequestProfilePage::removeFromNewCount from 0xa4c530 to 0xa4c58c (92 bytes)
//
// 3 xrefs:
// > FRequestProfilePage::deleteSelected @ 0xa4d478
// > FRequestProfilePage::onMarkRead @ 0xa4f48c
// > ??> @ 0xd69f0
//
// 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:03 +0000
//
GameLevelManager *__fastcall FRequestProfilePage::removeFromNewCount(GameLevelManager *this, int a2)
{
GJAccountManager *v3; // x20
__int64 v4; // x0
int v5; // w1
if ( a2 > 0 )
{
v3 = (GJAccountManager *)GameLevelManager::sharedState(this);
v4 = GJAccountManager::sharedState(v3);
this = (GameLevelManager *)GameLevelManager::userInfoForAccountID(
(cocos2d::CCDictionary **)v3,
*(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356));
if ( this )
{
v5 = *((_DWORD *)this + 174) - a2;
if ( v5 < 0 )
v5 = 0;
*((_DWORD *)this + 174) = v5;
}
}
return this;
}