//
// FriendRequestPopup::onAccept from 0x1002923f0 to 0x1002924a5 (181 bytes)
//
// 1 xrefs:
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x100292036
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:50 +0000
//
__int64 __fastcall FriendRequestPopup::onAccept(__int64 a1, double a2)
{
__int64 v2; // rax
__int64 result; // rax
char *v4; // r14
__int128 v5; // [rsp+0h] [rbp-30h] BYREF
char *v6; // [rsp+10h] [rbp-20h]
v2 = GameLevelManager::sharedState(a2);
result = sub_10057AFF0(
v2,
*(unsigned int *)(*(_QWORD *)(a1 + 696) + 320LL),
*(unsigned int *)(*(_QWORD *)(a1 + 696) + 316LL));
if ( (_BYTE)result )
{
v4 = (char *)operator new(0x20u);
v6 = v4;
*(_QWORD *)&v5 = 33;
*((_QWORD *)&v5 + 1) = 27;
strcpy(v4, "Accepting Friend Request...");
*(_QWORD *)(a1 + 720) = UploadActionPopup::create(a1 + 672, &v5);
operator delete(v4);
return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 720) + 1312LL))(*(_QWORD *)(a1 + 720));
}
return result;
}