//
// GJUserCell::onViewFriendRequest from 0x100256aa0 to 0x100256b4f (175 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 __fastcall GJUserCell::onViewFriendRequest(GJUserCell *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_userScore; // rax
GameLevelManager *v3; // rax
GJFriendRequest *v4; // rax
GJFriendRequest *v5; // r14
__int64 v6; // rax
FriendRequestPopup *v7; // rax
m_userScore = a1->m_userScore;
if ( m_userScore )
{
if ( m_userScore->m_accountID > 0 )
{
v3 = GameLevelManager::sharedState();
v4 = GameLevelManager::friendRequestFromAccountID(v3, a1->m_userScore->m_accountID);
if ( v4 )
{
if ( a1->m_userScore->m_newFriendRequest )
{
v5 = v4;
v6 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->getChildByTag)(
a1->m_mainLayer,
100);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 328LL))(v6, 0);
a1->m_userScore->m_newFriendRequest = 0;
v4 = v5;
}
v7 = FriendRequestPopup::create(v4);
((void (__fastcall *)(FriendRequestPopup *))v7->show)(v7);
}
}
}
}