//
// FriendRequestPopup::create from 0x5df62c to 0x5df6ec (192 bytes)
//
// 2 xrefs:
// > GJRequestCell::onViewFriendRequest @ 0x426518
// > ProfilePage::onFriend @ 0x5f7d02
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:14 +0000
//
FLAlertLayer *__fastcall FriendRequestPopup::create(FriendRequestPopup *this, GJFriendRequest *a2, bool a3)
{
char v4; // r5
FLAlertLayer *v5; // r4
int v6; // r3
int *v7; // r0
v4 = (char)a2;
v5 = (FLAlertLayer *)operator new(0x228u);
FLAlertLayer::FLAlertLayer(v5);
*(_DWORD *)v5 = &off_CB8FA8;
*((_DWORD *)v5 + 66) = &off_CB9260;
*((_DWORD *)v5 + 67) = &off_CB9298;
*((_DWORD *)v5 + 68) = &off_CB92A4;
*((_DWORD *)v5 + 69) = &off_CB92B4;
*((_DWORD *)v5 + 70) = &off_CB92C8;
*((_DWORD *)v5 + 79) = &off_CB92E0;
*((_DWORD *)v5 + 83) = &off_CB9320;
*((_DWORD *)v5 + 110) = &off_CB9330;
*((_DWORD *)v5 + 130) = &off_CB9354;
*((_DWORD *)v5 + 131) = &off_CB9364;
*((_DWORD *)v5 + 132) = &off_CB9370;
*((_BYTE *)v5 + 532) = 0;
*((_BYTE *)v5 + 533) = 0;
*((_DWORD *)v5 + 134) = 0;
*((_DWORD *)v5 + 135) = 0;
*((_DWORD *)v5 + 136) = 0;
*((_DWORD *)v5 + 137) = 0;
if ( FriendRequestPopup::init(v5, this, v4) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
v6 = *(_DWORD *)v5;
v7 = (int *)v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}