//
// GJRequestCell::onViewFriendRequest from 0x100111ff0 to 0x10011205c (108 bytes)
//
// 1 xrefs:
// > GJRequestCell::loadFromScore @ 0x10010a45c
//
// 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 __fastcall GJRequestCell::onViewFriendRequest(GJRequestCell *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_score; // x8
GameLevelManager *v4; // x0
GJFriendRequest *v5; // x0
GJFriendRequest *v6; // x20
FriendRequestPopup *v7; // x0
m_score = a1->m_score;
if ( m_score && m_score->m_accountID >= 1 )
{
v4 = GameLevelManager::sharedState();
v5 = GameLevelManager::friendRequestFromAccountID(v4, a1->m_score->m_accountID);
if ( v5 )
{
v6 = v5;
GJRequestCell::markAsRead(a1);
v7 = FriendRequestPopup::create(v6);
((void (__fastcall *)(FriendRequestPopup *))v7->show)(v7);
}
}
}