//
// FriendRequestPopup::create from 0x1402959d0 to 0x140295b01 (305 bytes)
//
// 3 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x1400bcc4f
// > ProfilePage::onFriend @ 0x1403c4155
// > ??> @ 0x1406d1bc8
//
// 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
FriendRequestPopup *FriendRequestPopup::create(GJFriendRequest *a1)
{
FriendRequestPopup *v2; // rdi
v2 = (FriendRequestPopup *)operator new(0x2B8u);
FLAlertLayer::FLAlertLayer(v2);
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (FriendRequestPopup_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&FriendRequestPopup::`vftable';
v2->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&FriendRequestPopup::`vftable';
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&FriendRequestPopup::`vftable';
LOBYTE(v2->m_unk) = 0;
v2->m_request = nullptr;
v2->m_circle = nullptr;
v2->m_closeBtn = nullptr;
v2->m_popup = nullptr;
if ( FriendRequestPopup::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
((void (__fastcall *)(FriendRequestPopup *, __int64))v2->~FriendRequestPopup)(v2, 1);
return nullptr;
}
}