//
// GJRequestCell::markAsRead from 0x739910 to 0x7399b0 (160 bytes)
//
// 2 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x739a18
// > ??> @ 0x104c50
//
// 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 12:52:40 +0000
//
__int64 __fastcall GJRequestCell::markAsRead(__int64 this)
{
__int64 v1; // x19
__int64 v2; // x0
GameLevelManager *v3; // x0
GJAccountManager *v4; // x19
__int64 v5; // x0
int v6; // w1
if ( *(_BYTE *)(*(_QWORD *)(this + 552) + 724LL) )
{
v1 = this;
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(this + 536) + 480LL))(*(_QWORD *)(this + 536), 100);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
v3 = *(GameLevelManager **)(v1 + 552);
*((_BYTE *)v3 + 724) = 0;
v4 = (GJAccountManager *)GameLevelManager::sharedState(v3);
v5 = GJAccountManager::sharedState(v4);
this = GameLevelManager::userInfoForAccountID(v4, *(_DWORD *)(v5 + 352) - *(_DWORD *)(v5 + 356));
if ( this )
{
v6 = *(_DWORD *)(this + 696) - 1;
if ( v6 < 0 )
v6 = 0;
*(_DWORD *)(this + 696) = v6;
}
}
return this;
}