//
// GJRequestCell::markAsRead from 0x61c980 to 0x61ca20 (160 bytes)
//
// 3 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x61ca60
// > GJRequestCell::FLAlert_Clicked @ 0x61cb10
// > ??> @ 0xc8910
//
// 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; // x0
GameLevelManager *v3; // x19
GJAccountManager *v4; // x0
GJUserScore *v5; // x0
int v6; // w1
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 )
{
v6 = v5->m_friendReqCount - 1;
if ( v6 < 0 )
v6 = 0;
v5->m_friendReqCount = v6;
}
}
}