//
// FriendRequestPopup::create from 0x1403a1590 to 0x1403a16da (330 bytes)
//
// 3 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x140159274
// > ProfilePage::onFriend @ 0x1405571e4
// > ??> @ 0x140923600
//
// 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 11:31:17 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall FriendRequestPopup::create(__int64 a1, unsigned __int8 a2)
{
_QWORD *v4; // rsi
v4 = operator new(0x2D8u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*v4 = &FriendRequestPopup::`vftable';
v4[40] = &FriendRequestPopup::`vftable';
v4[41] = &FriendRequestPopup::`vftable';
v4[42] = &FriendRequestPopup::`vftable';
v4[43] = &FriendRequestPopup::`vftable';
v4[44] = &FriendRequestPopup::`vftable';
v4[51] = &FriendRequestPopup::`vftable';
v4[54] = &FriendRequestPopup::`vftable';
v4[68] = &FriendRequestPopup::`vftable';
v4[83] = &FriendRequestPopup::`vftable';
v4[84] = &FriendRequestPopup::`vftable';
v4[85] = &FriendRequestPopup::`vftable';
*((_WORD *)v4 + 344) = 0;
v4[87] = 0;
v4[88] = 0;
v4[89] = 0;
v4[90] = 0;
if ( (unsigned __int8)FriendRequestPopup::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);
return nullptr;
}
}