//
// GJMessageCell::markAsRead from 0x4267b8 to 0x426810 (88 bytes)
//
// 2 xrefs:
// > GJMessageCell::onViewMessage @ 0x42681a
// > GJMessageCell::FLAlert_Clicked @ 0x4281d4
//
// 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 GJMessageCell::markAsRead(int this)
{
int v1; // r3
int v2; // r4
GameLevelManager *v3; // r0
GJAccountManager *v4; // r4
int v5; // r0
v1 = *(_DWORD *)(this + 432);
v2 = *(unsigned __int8 *)(v1 + 324);
if ( !*(_BYTE *)(v1 + 324) )
{
*(_BYTE *)(v1 + 324) = 1;
v3 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(this + 412) + 240))(
*(_DWORD *)(this + 412),
100);
if ( v3 )
v3 = (GameLevelManager *)(*(int (__fastcall **)(GameLevelManager *, int))(*(_DWORD *)v3 + 172))(v3, v2);
v4 = (GJAccountManager *)GameLevelManager::sharedState(v3);
v5 = GJAccountManager::sharedState(v4);
this = GameLevelManager::userInfoForAccountID(v4, *(_DWORD *)(v5 + 280) - *(_DWORD *)(v5 + 284));
if ( this )
*(_DWORD *)(this + 524) = (*(_DWORD *)(this + 524) - 1) & ~((*(_DWORD *)(this + 524) - 1) >> 31);
}
return this;
}