//
// sub_100493AB0 from 0x100493ab0 to 0x100493b48 (152 bytes)
//
// 56 xrefs:
// > EditLevelLayer::onExportLevel @ 0x1001df9cd
// > sub_100212A20 @ 0x100212ad2
// > LevelCell::onClick @ 0x10023ad78
// > LevelAreaInnerLayer::onNextFloor @ 0x1002672fb
// > GameManager::showParentalRestrictedAlert @ 0x10036da40
// > LevelBrowserLayer::showExportResult @ 0x100487945
// > LevelBrowserLayer::showImportResult @ 0x100487b32
// > GameToolbox::doWeHaveInternet @ 0x1004e9715
// > CreateGuidelinesLayer::onClearGuidelines @ 0x10050d991
// > GameLevelManager::onUploadCommentCompleted @ 0x10052633c
// > GameSettingsLayer::onCustomButton @ 0x1006033af
// > sub_100870760 @ 0x100870812
// > VideoOptionsLayer::onApply @ 0x100881579
// > InfoLayer::commentUploadFailed @ 0x100896be6
// > ProfilePage::onFollow @ 0x10089ed77
// > ProfilePage::followUserFailed @ 0x1008a56c5
// > ProfilePage::commentUploadFailed @ 0x1008a76f8
// > ProfilePage::commentDeleteFailed @ 0x1008a77db
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f174f
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f180c
// > sub_1008F6E60 @ 0x1008f6f7f
// > sub_1008F8AA0 @ 0x1008f8baa
// > sub_1008F8AA0 @ 0x1008f8d02
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8ff5
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f9172
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f92b3
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f9335
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f93d5
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1008f9828
// > EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x1008f9954
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1008f9ac3
// > EditorSoundConfigInfoLayer::deleteEditorSoundFailed @ 0x1008f9bfa
// > sub_1008FAA30 @ 0x1008faac1
// > sub_1008FC760 @ 0x1008fc928
// > sub_1008FC760 @ 0x1008fca49
// > sub_1008FC760 @ 0x1008fcad8
// > EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x1008fcf8c
// > EditorSoundConfigUploadPopup::uploadEditorSoundFailed @ 0x1008fd139
// > sub_10091E3E0 @ 0x10091e42c
// > sub_10091E3E0 @ 0x10091e4a5
// > sub_10092F790 @ 0x10092f8c7
// > sub_100933900 @ 0x100933e3a
// > NewThreadPopup::onSend @ 0x100945c49
// > NewThreadPopup::onSend @ 0x100945e9f
// > NewThreadPopup::onSend @ 0x100945f2d
// > NewThreadPopup::onSend @ 0x100945fd4
// > sub_100952E80 @ 0x100952f17
// > NewsPopup::onBlockClicked @ 0x10095a9d6
// > sub_10095E5D0 @ 0x10095e723
// > sub_100966920 @ 0x100966a78
// > sub_1009812B0 @ 0x100981555
// > sub_100981650 @ 0x100981808
// > NotificationsPage::notificationRewardFailed @ 0x10098c719
// > sub_10098C760 @ 0x10098c7c9
// > NotificationsPage::notificationMuteFailed @ 0x10098c982
// > sub_10098C9D0 @ 0x10098ca32
//
// This function is hookable on this platform (idp: pc, 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:30:47 +0000
//
__int64 __fastcall sub_100493AB0(__int64 a1, __int64 a2, __int128 *a3, __int64 a4, __int64 a5)
{
__int64 v5; // r15
__int64 v6; // r12
__int64 result; // rax
__int64 v8; // rbx
__int128 v9; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
if ( (*(_BYTE *)a3 & 1) != 0 )
{
v5 = a5;
v6 = a4;
sub_10001AD30(&v9, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
a4 = v6;
a5 = v5;
}
else
{
__p = *((void **)a3 + 2);
v9 = *a3;
}
result = FLAlertLayer::create(a1, a2, &v9, a4, a5, 0, 250.0, 0.0, 1.0);
if ( (v9 & 1) != 0 )
{
v8 = result;
operator delete(__p);
return v8;
}
return result;
}