//
// FLAlertLayer::create from 0x10049b1b0 to 0x10049b355 (421 bytes)
//
// 22 xrefs:
// > MessagesProfilePage::onDeleteSelected @ 0x10022e716
// > GJUserCell::onCancelFriendRequest @ 0x10025677b
// > GJUserCell::onRemoveFriend @ 0x1002569ef
// > GJRequestCell::onDeleteRequest @ 0x10025791b
// > GJMessageCell::onDeleteMessage @ 0x10025868e
// > FriendRequestPopup::onBlock @ 0x1002a61c5
// > GJMessagePopup::onBlock @ 0x1002a809c
// > GJMessagePopup::onRemove @ 0x1002a8211
// > GJWriteMessagePopup::onSend @ 0x1002a9dac
// > GJWriteMessagePopup::onSend @ 0x1002a9e4d
// > GJWriteMessagePopup::onClearBody @ 0x1002aa107
// > LevelBrowserLayer::onDeleteSelected @ 0x10048d00d
// > MPLobbyLayer::onBtn1 @ 0x100493de2
// > sub_10049B0F0 @ 0x10049b161
// > FLAlertLayer::create_1 @ 0x10049b3f3
// > InfoAlertButton::activate @ 0x100575ed6
// > MusicDownloadManager::showTOS @ 0x1005905d5
// > FRequestProfilePage::onDeleteSelected @ 0x100790bc6
// > AudioAssetsBrowser::onInfo @ 0x1007b496f
// > ProfilePage::onFriend @ 0x1007bdd67
// > ProfilePage::onFriend @ 0x1007bde14
// > ProfilePage::onBlockUser @ 0x1007be163
//
// 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
//
char *__fastcall FLAlertLayer::create(
int a1,
int a2,
__int128 *a3,
int a4,
int a5,
char a6,
float a7,
double a8,
float a9)
{
char *v11; // rbx
double v12; // xmm0_8
double v13; // xmm2_8
char v14; // r14
__int128 v18; // [rsp+20h] [rbp-50h] BYREF
void *__p; // [rsp+30h] [rbp-40h]
float v20; // [rsp+40h] [rbp-30h]
float v21; // [rsp+44h] [rbp-2Ch]
v20 = a9;
v21 = a7;
v11 = (char *)operator new(0x278u);
cocos2d::CCLayerColor::CCLayerColor(v11);
*(_QWORD *)v11 = off_100944EB8;
*((_QWORD *)v11 + 40) = off_1009453D8;
*((_QWORD *)v11 + 41) = &off_100945448;
*((_QWORD *)v11 + 42) = off_100945460;
*((_QWORD *)v11 + 43) = off_100945480;
*((_QWORD *)v11 + 44) = off_1009454A0;
*((_QWORD *)v11 + 51) = off_1009454C8;
*((_QWORD *)v11 + 54) = off_100945548;
*((_QWORD *)v11 + 72) = 0;
*((_DWORD *)v11 + 146) = 0;
v11[588] = 0;
*((_OWORD *)v11 + 34) = 0;
*(_OWORD *)(v11 + 553) = 0;
*((_OWORD *)v11 + 37) = 0;
*((_QWORD *)v11 + 76) = 0;
*((_DWORD *)v11 + 154) = -1;
*((_WORD *)v11 + 310) = 0;
*((_DWORD *)v11 + 156) = -1;
v11[628] = 0;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
sub_100006B70(&v18, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), 0.0);
}
else
{
__p = *((void **)a3 + 2);
v18 = *a3;
}
*(_QWORD *)&v12 = LODWORD(v21);
*(_QWORD *)&v13 = LODWORD(v20);
v14 = FLAlertLayer::init((_DWORD)v11, a1, a2, (unsigned int)&v18, a4, a5, a6);
if ( (v18 & 1) != 0 )
operator delete(__p);
if ( v14 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);
}
else
{
(*(void (__fastcall **)(char *, double, double, double))(*(_QWORD *)v11 + 16LL))(v11, v12, a8, v13);
return nullptr;
}
return v11;
}