//
// GJRequestCell::markAsRead from 0x100240820 to 0x1002408b5 (149 bytes)
//
// 0 xrefs:
//
// 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 12:27:17 +0000
//
__int64 __fastcall GJRequestCell::markAsRead(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // rsi
__int64 v6; // rax
__int64 v7; // rbx
__int64 v8; // rax
int v9; // edx
result = *(_QWORD *)(a1 + 552);
if ( *(_BYTE *)(result + 724) == 1 )
{
v4 = *(_QWORD *)(a1 + 536);
v5 = 100;
v6 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 100);
if ( v6 )
{
v4 = v6;
v5 = 0;
a2 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
}
*(_BYTE *)(*(_QWORD *)(a1 + 552) + 724LL) = 0;
v7 = GameLevelManager::sharedState(a2);
v8 = GJAccountManager::sharedState(v4, v5);
result = GameLevelManager::userInfoForAccountID(v7, (unsigned int)(*(_DWORD *)(v8 + 352) - *(_DWORD *)(v8 + 356)));
if ( result )
{
v9 = 1;
if ( *(int *)(result + 696) >= 2 )
v9 = *(_DWORD *)(result + 696);
*(_DWORD *)(result + 696) = v9 - 1;
}
}
return result;
}