//
// FriendRequestPopup::onAccept from 0x140296b40 to 0x140296c48 (264 bytes)
//
// 2 xrefs:
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1402967a6
// > ??> @ 0x1406d1bf8
//
// 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 FriendRequestPopup::onAccept(FriendRequestPopup *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // rcx
UploadActionPopup *v4; // rax
__int128 v5; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+30h] [rbp-18h]
__int64 v7; // [rsp+38h] [rbp-10h]
void *v8; // [rsp+50h] [rbp+8h]
v3 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v8 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v3 = (GameLevelManager *)qword_1406C2EC0;
}
if ( GameLevelManager::acceptFriendRequest(v3, a1->m_request->m_accountID, a1->m_request->m_requestID) )
{
v5 = 0;
*(_QWORD *)&v5 = sub_14003AA10(0x20u);
v6 = 27;
v7 = 31;
strcpy((char *)v5, "Accepting Friend Request...");
v4 = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, (__int64)&v5);
a1->m_popup = v4;
v4->show(v4);
}
}