//
// GJUserCell::onViewFriendRequest from 0x61bf1c to 0x61bfd0 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x79b78
//
// 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 GJUserCell::onViewFriendRequest(GJUserCell *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_userScore; // x1
GameLevelManager *v4; // x0
GJFriendRequest *v5; // x20
FriendRequestPopup *v6; // x0
cocos2d::CCNode *v7; // x0
FriendRequestPopup *v8; // x0
m_userScore = a1->m_userScore;
if ( m_userScore )
{
if ( m_userScore->m_accountID > 0 )
{
v4 = GameLevelManager::sharedState();
v5 = GameLevelManager::friendRequestFromAccountID(v4, a1->m_userScore->m_accountID);
if ( v5 )
{
if ( a1->m_userScore->m_newFriendRequest )
{
v7 = a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 100);
if ( v7 )
v7->setVisible(v7, 0);
a1->m_userScore->m_newFriendRequest = 0;
v8 = FriendRequestPopup::create(v5);
v8->show(v8);
}
else
{
v6 = FriendRequestPopup::create(v5);
v6->show(v6);
}
}
}
}
}