//
// GJRequestCell::markAsRead from 0x10013a064 to 0x10013a0f8 (148 bytes)
//
// 1 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x10013a008
//
// 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 10:59:28 +0000
//
__int64 __fastcall GJRequestCell::markAsRead(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
int v5; // w8
if ( *(_BYTE *)(*(_QWORD *)(result + 552) + 724LL) == 1 )
{
v1 = result;
v2 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(result + 536) + 480LL))(
*(_QWORD *)(result + 536),
100);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);
*(_BYTE *)(*(_QWORD *)(v1 + 552) + 724LL) = 0;
v3 = GameLevelManager::sharedState();
v4 = GJAccountManager::sharedState(v3);
result = GameLevelManager::userInfoForAccountID(v3, *(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356));
if ( result )
{
v5 = *(_DWORD *)(result + 696);
if ( v5 <= 1 )
v5 = 1;
*(_DWORD *)(result + 696) = v5 - 1;
}
}
return result;
}