//
// GJRequestCell::onViewFriendRequest from 0x1400bcbc0 to 0x1400bcc6b (171 bytes)
//
// 2 xrefs:
// > GJRequestCell::loadFromScore @ 0x1400bc7a6
// > ??> @ 0x1406c7dc4
//
// 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
//
// Hidden C++ exception states: #wind=1
void GJRequestCell::onViewFriendRequest(GJRequestCell *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_score; // rax
__int64 v4; // rcx
GJFriendRequest *v5; // rdi
FriendRequestPopup *v6; // rax
void *v7; // [rsp+30h] [rbp+8h]
m_score = a1->m_score;
if ( m_score && m_score->m_accountID > 0 )
{
v4 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v7 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v4 = qword_1406C2EC0;
}
v5 = (GJFriendRequest *)cocos2d::CCDictionary::objectForKey(
*(cocos2d::CCDictionary **)(v4 + 608),
a1->m_score->m_accountID);
if ( v5 )
{
GJRequestCell::markAsRead(a1);
v6 = FriendRequestPopup::create(v5);
v6->show(v6);
}
}
}