//
// GJRequestCell::markAsRead from 0x3396c4 to 0x339722 (94 bytes)
//
// 2 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x33974c
// > GJRequestCell::FLAlert_Clicked @ 0x3397a0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJRequestCell::markAsRead(GJRequestCell *a1)
{
cocos2d::CCNode *v2; // r0
GameLevelManager *v3; // r4
GJAccountManager *v4; // r0
GJUserScore *v5; // r0
if ( a1->m_score->m_newFriendRequest )
{
v2 = a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 100);
if ( v2 )
v2->setVisible(v2, 0);
a1->m_score->m_newFriendRequest = 0;
v3 = GameLevelManager::sharedState();
v4 = GJAccountManager::sharedState();
v5 = GameLevelManager::userInfoForAccountID(v3, v4->m_accountID - v4->m_unkInt1);
if ( v5 )
v5->m_friendReqCount = (v5->m_friendReqCount - 1) & ~((v5->m_friendReqCount - 1) >> 31);
}
}