//
// FriendRequestPopup::create from 0x1002d8b2c to 0x1002d8bf0 (196 bytes)
//
// 2 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x100112038
// > ProfilePage::onFriend @ 0x10019b00c
//
// 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
//
FriendRequestPopup *__fastcall FriendRequestPopup::create(GJFriendRequest *a1)
{
char *v2; // x19
v2 = (char *)operator new(0x2B8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = off_1007DA898;
*((_QWORD *)v2 + 40) = off_1007DADD8;
*((_QWORD *)v2 + 41) = &off_1007DAE48;
*((_QWORD *)v2 + 42) = off_1007DAE60;
*((_QWORD *)v2 + 43) = off_1007DAE80;
*((_QWORD *)v2 + 44) = off_1007DAEA0;
*((_QWORD *)v2 + 51) = off_1007DAEC8;
*((_QWORD *)v2 + 54) = off_1007DAF48;
*((_QWORD *)v2 + 79) = off_1007DAF68;
*((_QWORD *)v2 + 80) = &off_1007DAF88;
*((_QWORD *)v2 + 81) = &off_1007DAFA0;
v2[656] = 0;
*(_OWORD *)(v2 + 664) = 0u;
*(_OWORD *)(v2 + 680) = 0u;
if ( FriendRequestPopup::init((FriendRequestPopup *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (FriendRequestPopup *)v2;
}