//
// TextAlertPopup::create from 0xa2c7a8 to 0xa2c980 (472 bytes)
//
// 113 xrefs:
// > UILayer::showTextAlert @ 0x6f0c34
// > LevelInfoLayer::cellPerformedAction @ 0x7e67e0
// > EditLevelLayer::onExportLevel @ 0x7ee294
// > LevelBrowserLayer::showExportResult @ 0x7f71ec
// > LevelBrowserLayer::showImportResult @ 0x7fbe9c
// > LevelBrowserLayer::deleteSelected @ 0x7fc1cc
// > ColorSelectPopup::onDefault @ 0x863640
// > ParentalGateLayer::onDone @ 0x8f9550
// > InfoLayer::bulkCommentDeleteFinished @ 0x90ae54
// > LocalLevelManager::postFileResults @ 0x911164
// > SetTextPopup::onClose @ 0xa2ca34
// > UISaveLoadLayer::onSave @ 0xa2eb78
// > UISaveLoadLayer::onLoad @ 0xa2edac
// > FRequestProfilePage::onMarkRead @ 0xa4f4fc
// > ProfilePage::followUserFinished @ 0xa5ca00
// > ProfilePage::onCopyName @ 0xa5d9d4
// > LevelLeaderboard::deleteLocalScores @ 0xa8238c
// > BrowseSmartKeyLayer::createTemplateObjects @ 0xb162c4
// > BrowseSmartTemplateLayer::onTemplateObject @ 0xb18b70
// > MusicBrowser::musicActionFailed @ 0xb845a8
// > MusicBrowser::onChangelog @ 0xb846c8
// > MusicBrowser::setupList @ 0xb850b0
// > SFXBrowser::musicActionFailed @ 0xb8e850
// > SFXBrowser::onChangelog @ 0xb8ecb0
// > SFXBrowser::setTextPopupClosed @ 0xb8f370
// > SFXBrowser::onExportFile @ 0xb8f9d0
// > SFXBrowser::onExportFile @ 0xb8fa64
// > SFXBrowser::FLAlert_Clicked @ 0xb905b8
// > SFXBrowser::sfxFolderPicked @ 0xb910ec
// > SFXBrowser::sfxFolderPicked @ 0xb91288
// > SFXBrowser::setupList @ 0xb92248
// > SFXBrowser::setupList @ 0xb9271c
// > SFXBrowser::onImportFile @ 0xb96b90
// > SFXBrowser::onImportFile @ 0xb96c80
// > SFXBrowser::sfxFoldersPicked @ 0xb97910
// > SFXBrowser::sfxFoldersPicked @ 0xb979b4
// > SFXBrowser::sfxFoldersPicked @ 0xb97a74
// > SFXBrowser::sfxFoldersPicked @ 0xb97afc
// > AutoSaveSettingsLayer::onOpenBackupDir @ 0xbc9f9c
// > EditorUI::showTextAlert @ 0xbd6ee4
// > EditorUI::handleEditorAction @ 0xbd82dc
// > EditorUI::handleEditorAction @ 0xbd87cc
// > EditorUI::toggleViewOption @ 0xbfea3c
// > GJKeybindManager::handleGlobalAudioAction @ 0xc09df0
// > AccountReviewPopup::onCopyAccountID @ 0xc40e98
// > sub_C40F58 @ 0xc4103c
// > AutoBackupOptionsPopup::onDeleteAll @ 0xc57578
// > AutoBackupOptionsPopup::onDeleteAll @ 0xc576ec
// > AutoBackupOptionsPopup::onPrune @ 0xc58d58
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58fb0
// > MessageThreadsPage::threadUpdateFailed @ 0xc687f0
// > MessageThreadsPage::friendPicked @ 0xc689ac
// > ThreadViewPopup::onRefresh @ 0xc68b68
// > ThreadViewPopup::threadUpdateFailed @ 0xc68d1c
// > ThreadViewPopup::threadUpdateFailed @ 0xc68db8
// > ThreadViewPopup::threadUpdateFailed @ 0xc68e4c
// > MemberListPopup::friendPicked @ 0xc6b848
// > MemberListPopup::threadUpdateFailed @ 0xc6ba18
// > NewThreadPopup::threadSendFailed @ 0xc6bb64
// > ThreadOptionsPopup::threadUpdateFailed @ 0xc6c4b8
// > InvitesPopup::threadUpdateFailed @ 0xc6d034
// > RenameThreadPopup::threadUpdateFailed @ 0xc6d1d0
// > ThreadDescPopup::finishSave @ 0xc6d2f4
// > ThreadDescPopup::threadUpdateFailed @ 0xc6d4d8
// > ThreadViewPopup::threadSearchFailed @ 0xc6d658
// > LevelBadgePopup::loadLevelsFinished @ 0xc71394
// > LevelBadgePopup::loadLevelsFailed @ 0xc715a4
// > ThreadViewPopup::insertShareToken @ 0xc73eb4
// > NewThreadPopup::insertShareToken @ 0xc74534
// > MessageThreadsPage::threadUpdateFinished @ 0xc76688
// > ThreadOptionsPopup::threadUpdateFinished @ 0xc781ac
// > ThreadOptionsPopup::threadUpdateFinished @ 0xc78280
// > ThreadOptionsPopup::threadUpdateFinished @ 0xc783dc
// > MessageThreadsPage::onRefresh @ 0xc789f0
// > ThreadSearchPopup::onSearch @ 0xc78dec
// > ThreadSearchPopup::onSearch @ 0xc78f20
// > RenameThreadPopup::onSave @ 0xc7af58
// > MemberListPopup::applyAddOutcome @ 0xc7c998
// > MemberListPopup::threadUpdateFinished @ 0xc7cd24
// > NewThreadPopup::friendPicked @ 0xc7efb4
// > FriendPickerPopup::getUserListFailed @ 0xc81510
// > NewThreadPopup::threadSendFinished @ 0xc88088
// > NewThreadPopup::threadSendFinished @ 0xc881b4
// > InvitesPopup::threadUpdateFinished @ 0xc888e0
// > ThreadViewPopup::threadUpdateFinished @ 0xc89488
// > ThreadViewPopup::threadUpdateFinished @ 0xc89574
// > ThreadViewPopup::threadUpdateFinished @ 0xc8966c
// > ThreadViewPopup::threadSendFinished @ 0xc89f6c
// > ThreadViewPopup::threadSendFailed @ 0xc8a188
// > DeathMarkerSettingsPopup::FLAlert_Clicked @ 0xca6068
// > DeathTrackerOptionsPopup::FLAlert_Clicked @ 0xca9464
// > EditorSoundConfigInfoLayer::musicActionFailed @ 0xcce0ec
// > EditorSoundConfigInfoLayer::onDownloadSFX @ 0xcd31b4
// > EditorSoundConfigInfoLayer::downloadMissingSFX @ 0xcd342c
// > LevelBindingsLayer::onCopy @ 0xcf15b0
// > LevelBindingsLayer::onReset @ 0xcf180c
// > LevelBindingsLayer::onApplyGlobal @ 0xcf1970
// > LevelBindingsLayer::onClear @ 0xcf1abc
// > LevelBindingsLayer::onPaste @ 0xcf1c18
// > LevelBindingsLayer::onPaste @ 0xcf1dc4
// > LevelBindingsLayer::onPaste @ 0xcf1e50
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0xcfbbf8
// > PlatformerControlsPopup::onUpload @ 0xcfc2a4
// > PlatformerControlsPopup::onApplyCreator @ 0xcfc5b8
// > ReportPopup::FLAlert_Clicked @ 0xcfef5c
// > ControlSlotsPopup::onLoad @ 0xd06f20
// > ControlSlotsPopup::onSave @ 0xd07620
// > TouchControlEditLayer::onPaste @ 0xd07f9c
// > TouchControlEditLayer::onPaste @ 0xd080ac
// > TouchControlEditLayer::onPaste @ 0xd08138
// > TouchControlEditLayer::onApplyGlobal @ 0xd08600
// > TouchControlEditLayer::onCopy @ 0xd08780
// > ??> @ 0x4aba8
//
// 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 12:59:45 +0000
//
__int64 __fastcall TextAlertPopup::create(char *a1, int a2, char *a3, float a4, float a5)
{
__int64 v10; // x19
char v11; // w0
__int64 v12; // x0
__int64 v13; // x1
char v14; // w0
__int64 v15; // x0
__int64 v16; // x1
int v17; // w21
__int64 v18; // x1
__int64 v19; // x0
__int64 v21; // [xsp+58h] [xbp+58h] BYREF
__int64 v22; // [xsp+60h] [xbp+60h]
void *v23; // [xsp+68h] [xbp+68h]
__int64 v24; // [xsp+70h] [xbp+70h] BYREF
__int64 v25; // [xsp+78h] [xbp+78h]
void *v26; // [xsp+80h] [xbp+80h]
v10 = operator new(0x158u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v10);
*(_QWORD *)(v10 + 328) = 0;
*(_QWORD *)(v10 + 336) = 0;
*(_QWORD *)v10 = &off_14785D0;
*(_DWORD *)(v10 + 316) = 0;
v21 = 0;
*(_DWORD *)(v10 + 320) = 0;
v11 = *a1;
v22 = 0;
v23 = nullptr;
if ( (v11 & 1) != 0 )
{
std::string::__init(&v21, *((void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
v12 = *(_QWORD *)a1;
v13 = *((_QWORD *)a1 + 1);
v23 = *((void **)a1 + 2);
v21 = v12;
v22 = v13;
}
v14 = *a3;
v24 = 0;
v25 = 0;
v26 = nullptr;
if ( (v14 & 1) != 0 )
{
std::string::__init(&v24, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v15 = *(_QWORD *)a3;
v16 = *((_QWORD *)a3 + 1);
v26 = *((void **)a3 + 2);
v24 = v15;
v25 = v16;
}
v17 = (unsigned __int8)TextAlertPopup::init(v10, (__int64)&v21, a2, &v24, a4, a5);
if ( (v24 & 1) != 0 )
operator delete(v26);
if ( (v21 & 1) != 0 )
operator delete(v23);
if ( v17 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
}
else
{
v18 = *(_QWORD *)v10;
v19 = v10;
v10 = 0;
(*(void (__fastcall **)(__int64))(v18 + 16))(v19);
}
return v10;
}