//
// GJRequestCell::markAsRead from 0x426480 to 0x4264de (94 bytes)
//
// 1 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x42650e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:04 +0000
//
int __fastcall GJRequestCell::markAsRead(int this)
{
int v1; // r4
GameLevelManager *v2; // r0
GJAccountManager *v3; // r4
int v4; // r0
v1 = this;
if ( *(_BYTE *)(*(_DWORD *)(this + 420) + 556) )
{
v2 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(this + 412) + 240))(
*(_DWORD *)(this + 412),
100);
if ( v2 )
v2 = (GameLevelManager *)(*(int (__fastcall **)(GameLevelManager *, _DWORD))(*(_DWORD *)v2 + 172))(v2, 0);
*(_BYTE *)(*(_DWORD *)(v1 + 420) + 556) = 0;
v3 = (GJAccountManager *)GameLevelManager::sharedState(v2);
v4 = GJAccountManager::sharedState(v3);
this = GameLevelManager::userInfoForAccountID(v3, *(_DWORD *)(v4 + 280) - *(_DWORD *)(v4 + 284));
if ( this )
*(_DWORD *)(this + 528) = (*(_DWORD *)(this + 528) - 1) & ~((*(_DWORD *)(this + 528) - 1) >> 31);
}
return this;
}