//
// TextAlertPopup::create from 0x10037db74 to 0x10037dca0 (300 bytes)
//
// 113 xrefs:
// > LevelInfoLayer::cellPerformedAction @ 0x10002c7f0
// > UILayer::showTextAlert @ 0x100051408
// > sub_10007A984 @ 0x10007aabc
// > sub_10007BBFC @ 0x10007bcf4
// > sub_100111434 @ 0x1001114a4
// > ParentalGateLayer::onDone @ 0x1001185b4
// > EditorUI::showTextAlert @ 0x100163b4c
// > sub_100163D04 @ 0x100163ee4
// > sub_100163D04 @ 0x100163f54
// > EditorUI::toggleViewOption @ 0x100189654
// > GJKeybindManager::handleGlobalAudioAction @ 0x10018bda8
// > sub_1001F3664 @ 0x1001f36e4
// > sub_1001F418C @ 0x1001f4218
// > sub_1001F418C @ 0x1001f428c
// > sub_1001F4350 @ 0x1001f43c8
// > sub_1001F4350 @ 0x1001f44ac
// > sub_1001F50BC @ 0x1001f5174
// > sub_1001F50BC @ 0x1001f5668
// > SFXBrowser::musicActionFailed @ 0x1001f5914
// > SFXBrowser::sfxFolderPicked @ 0x1001f6b78
// > SFXBrowser::sfxFolderPicked @ 0x1001f6ce8
// > SFXBrowser::sfxFoldersPicked @ 0x1001f716c
// > SFXBrowser::sfxFoldersPicked @ 0x1001f71e8
// > SFXBrowser::sfxFoldersPicked @ 0x1001f7260
// > SFXBrowser::sfxFoldersPicked @ 0x1001f72e0
// > SFXBrowser::setTextPopupClosed @ 0x1001f7638
// > SFXBrowser::FLAlert_Clicked @ 0x1001f7930
// > sub_10022EDE8 @ 0x10022ef10
// > ProfilePage::followUserFinished @ 0x10022fd70
// > sub_10024BE00 @ 0x10024bf90
// > LocalLevelManager::postFileResults @ 0x100261b64
// > LevelLeaderboard::deleteLocalScores @ 0x1002edb50
// > sub_10037D2F8 @ 0x10037d36c
// > sub_1003F13C4 @ 0x1003f143c
// > InfoLayer::bulkCommentDeleteFinished @ 0x1003f2980
// > sub_10044F8BC @ 0x10044f92c
// > sub_100469444 @ 0x1004694c4
// > sub_100469F94 @ 0x10046a048
// > MusicBrowser::musicActionFailed @ 0x10046a4d0
// > LevelBrowserLayer::showExportResult @ 0x10049a93c
// > LevelBrowserLayer::showImportResult @ 0x10049aaf8
// > LevelBrowserLayer::deleteSelected @ 0x10049ad14
// > sub_1004A0A1C @ 0x1004a0b80
// > DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x1004b7ed0
// > DeathTrackerOptionsPopup::FLAlert_Clicked @ 0x1004b9844
// > sub_1004D2080 @ 0x1004d21a0
// > sub_1004D368C @ 0x1004d3728
// > EditorSoundConfigInfoLayer::musicActionFailed @ 0x1004d3880
// > sub_1004EF174 @ 0x1004ef20c
// > sub_1004EF28C @ 0x1004ef314
// > sub_1004EF394 @ 0x1004ef410
// > sub_1004EF490 @ 0x1004ef5bc
// > sub_1004EF65C @ 0x1004ef7ac
// > sub_1004EF65C @ 0x1004ef820
// > sub_1004EF65C @ 0x1004ef89c
// > sub_1004F540C @ 0x1004f5480
// > MessageThreadsPage::threadUpdateFinished @ 0x1004f647c
// > MessageThreadsPage::threadUpdateFailed @ 0x1004f65e8
// > MessageThreadsPage::friendPicked @ 0x1004f694c
// > sub_1004F95D0 @ 0x1004f964c
// > ThreadViewPopup::threadSearchFailed @ 0x1004fbd30
// > sub_1004FC36C @ 0x1004fc4f4
// > ThreadViewPopup::threadUpdateFinished @ 0x1004fc948
// > ThreadViewPopup::threadUpdateFinished @ 0x1004fca00
// > ThreadViewPopup::threadUpdateFinished @ 0x1004fcb20
// > sub_1004FCC08 @ 0x1004fcfbc
// > ThreadViewPopup::threadUpdateFailed @ 0x1004fd174
// > ThreadViewPopup::threadUpdateFailed @ 0x1004fd20c
// > ThreadViewPopup::threadUpdateFailed @ 0x1004fd2a8
// > ThreadViewPopup::threadSendFinished @ 0x1004fd4d4
// > ThreadViewPopup::threadSendFailed @ 0x1004fd748
// > sub_100502138 @ 0x1005021c8
// > LevelBadgePopup::loadLevelsFinished @ 0x10050285c
// > LevelBadgePopup::loadLevelsFailed @ 0x100502c24
// > FriendPickerPopup::getUserListFailed @ 0x100504004
// > MemberListPopup::friendPicked @ 0x1005084a8
// > MemberListPopup::threadUpdateFinished @ 0x100508be0
// > MemberListPopup::threadUpdateFailed @ 0x100508d70
// > sub_10050BA0C @ 0x10050bbc0
// > NewThreadPopup::friendPicked @ 0x10050bf9c
// > NewThreadPopup::threadSendFinished @ 0x10050c1bc
// > NewThreadPopup::threadSendFinished @ 0x10050c2f8
// > NewThreadPopup::threadSendFailed @ 0x10050c5e0
// > ThreadOptionsPopup::threadUpdateFinished @ 0x10050de0c
// > ThreadOptionsPopup::threadUpdateFinished @ 0x10050dee8
// > ThreadOptionsPopup::threadUpdateFinished @ 0x10050dfec
// > ThreadOptionsPopup::threadUpdateFailed @ 0x10050e1f4
// > InvitesPopup::threadUpdateFinished @ 0x10051092c
// > InvitesPopup::threadUpdateFailed @ 0x100510b38
// > sub_100511188 @ 0x100511288
// > RenameThreadPopup::threadUpdateFailed @ 0x100511548
// > sub_1005121E4 @ 0x10051235c
// > sub_1005121E4 @ 0x100512400
// > sub_100513C28 @ 0x100513c84
// > ThreadDescPopup::threadUpdateFailed @ 0x100513ebc
// > sub_10051C1D8 @ 0x10051c3a0
// > sub_10051C560 @ 0x10051c614
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0x10051d23c
// > ReportPopup::FLAlert_Clicked @ 0x100522074
// > sub_100522AEC @ 0x100522bac
// > sub_10052D174 @ 0x10052d1ec
// > sub_10052D26C @ 0x10052d314
// > sub_10052D394 @ 0x10052d44c
// > sub_10052D394 @ 0x10052d4c0
// > sub_10052D394 @ 0x10052d798
// > sub_10052ED38 @ 0x10052edc4
// > sub_10052EE44 @ 0x10052eed0
// > sub_100532F70 @ 0x100533074
// > sub_1005331C8 @ 0x10053334c
// > sub_1005331C8 @ 0x1005333c0
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x1005336a0
// > sub_100541CE8 @ 0x100541d6c
// > sub_10054A264 @ 0x10054a2bc
//
// This function is hookable on this platform (idp: arm, 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:03:29 +0000
//
_QWORD *__fastcall TextAlertPopup::create(__int64 a1, __int64 a2, __int64 a3, float a4, float a5)
{
_QWORD *v10; // x19
int v11; // w20
void *__p[2]; // [xsp+0h] [xbp-70h] BYREF
__int64 v14; // [xsp+10h] [xbp-60h]
void *__dst[2]; // [xsp+20h] [xbp-50h] BYREF
__int64 v16; // [xsp+30h] [xbp-40h]
v10 = operator new(0x158u);
cocos2d::CCNode::CCNode((__int64)v10);
*v10 = &off_10093C208;
*(_QWORD *)((char *)v10 + 316) = 0;
v10[41] = 0;
v10[42] = 0;
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__dst, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__dst = *(_OWORD *)a1;
v16 = *(_QWORD *)(a1 + 16);
}
if ( *(char *)(a3 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a3, *(_QWORD *)(a3 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a3;
v14 = *(_QWORD *)(a3 + 16);
}
v11 = TextAlertPopup::init(v10, __dst, a2, __p, a4, a5);
if ( SHIBYTE(v14) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v16) < 0 )
{
operator delete(__dst[0]);
if ( v11 )
goto LABEL_11;
LABEL_13:
(*(void (__fastcall **)(_QWORD *))(*v10 + 16LL))(v10);
return nullptr;
}
if ( !v11 )
goto LABEL_13;
LABEL_11:
cocos2d::CCObject::autorelease((__int64)v10);
return v10;
}