//
// GJUserCell::onViewFriendRequest from 0x338fe0 to 0x33904a (106 bytes)
//
// 0 xrefs:
//
// 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; // r3
GameLevelManager *v4; // r0
GJFriendRequest *v5; // r5
cocos2d::CCNode *v6; // r0
FriendRequestPopup *v7; // r0
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 )
{
v6 = a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 100);
if ( v6 )
v6->setVisible(v6, 0);
a1->m_userScore->m_newFriendRequest = 0;
}
v7 = FriendRequestPopup::create(v5);
v7->show(v7);
}
}
}
}