//
// EditorSFXManager::sharedState from 0x140185140 to 0x1401852bc (380 bytes)
//
// 143 xrefs:
// > DeathMarkerLayer::init @ 0x140116c12
// > DeathMarkerLayer::playMarkerSound @ 0x140118fc0
// > DeathMarkerLayer::playPendingLabelSound @ 0x140119060
// > EditButtonBar::onRight @ 0x140177b22
// > EditButtonBar::onLeft @ 0x140177b62
// > EditButtonBar::onDotClicked @ 0x140177bff
// > EditorPauseLayer::customSetup @ 0x140182026
// > EditorPauseLayer::editorSFXSliderChanged @ 0x14018246c
// > EditorPauseLayer::onResume @ 0x1401824f6
// > EditorPauseLayer::onExitEditor @ 0x140182b9d
// > EditorSFXActionConfigLayer::init @ 0x140183bc3
// > EditorSFXActionConfigLayer::refreshRows @ 0x140183dc2
// > EditorSFXActionConfigLayer::refreshRows @ 0x14018417f
// > EditorSFXActionConfigLayer::refreshModeButtons @ 0x140184843
// > EditorSFXActionConfigLayer::onToggleMode @ 0x1401848d8
// > EditorSFXActionConfigLayer::onToggleMode @ 0x1401848fc
// > EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1401849d0
// > EditorSFXActionConfigLayer::onPreviewSound @ 0x140184a9b
// > EditorSFXActionConfigLayer::onEditSound @ 0x140184b5b
// > EditorSFXActionConfigLayer::onDeleteSound @ 0x140184c00
// > EditorSFXSettingsPopup::getValue @ 0x14018d74b
// > EditorSFXSettingsPopup::valueDidChange @ 0x14018d82e
// > EditorSoundBrowserLayer::loadCurrentPage @ 0x14018f7c6
// > EditorSoundBrowserLayer::loadCurrentPage @ 0x14018f7d0
// > EditorSoundBrowserLayer::loadCurrentPage @ 0x14018f80f
// > EditorSoundBrowserLayer::loadCurrentPage @ 0x14018f819
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x140190261
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x14019026b
// > EditorSoundConfigInfoLayer::onFavorite @ 0x1401950e6
// > EditorSoundConfigInfoLayer::onFavorite @ 0x140195104
// > EditorSoundConfigInfoLayer::onFavorite @ 0x140195179
// > EditorSoundConfigInfoLayer::onFavorite @ 0x14019522c
// > EditorSoundConfigInfoLayer::onFavorite @ 0x14019535e
// > EditorSoundConfigInfoLayer::onLocalDelete @ 0x140195469
// > EditorSoundConfigInfoLayer::onLocalDelete @ 0x140195480
// > EditorSoundConfigInfoLayer::refreshActionButtons @ 0x14019574c
// > EditorSoundConfigInfoLayer::refreshActionButtons @ 0x140195763
// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0x140196218
// > EditorSoundConfigInfoLayer::likedItem @ 0x140196def
// > EditorSoundConfigInfoLayer::likedItem @ 0x140196e07
// > EditorSoundConfigInfoLayer::applyConfig @ 0x1401971c3
// > EditorSoundConfigInfoLayer::applyConfig @ 0x1401971e3
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140197e2f
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198274
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198698
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198702
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198857
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x140198cfc
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x140198d15
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198f61
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198fed
// > EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x14019c387
// > EditorSoundsLayer::buildContentForTab @ 0x14019ddbb
// > GJTransformControl::ccTouchMoved @ 0x1401a75f7
// > EditorUI::onSettings @ 0x1401ac532
// > EditorUI::onPause @ 0x1401accfa
// > EditorUI::onPause @ 0x1401acd63
// > EditorUI::clickOnPosition @ 0x1401adb56
// > EditorUI::toggleMode @ 0x1401afdb1
// > EditorUI::onDelete @ 0x1401b02bf
// > EditorUI::onDeleteSelected @ 0x1401b09c4
// > EditorUI::onCreateButton @ 0x1401b2113
// > EditorUI::playSoundForCreatedObject @ 0x1401b277e
// > EditorUI::playSoundForCreatedObject @ 0x1401b2797
// > EditorUI::toggleSwipe @ 0x1401b3480
// > EditorUI::toggleFreeMove @ 0x1401b355c
// > EditorUI::toggleSnap @ 0x1401b3668
// > EditorUI::toggleEnableRotate @ 0x1401b3752
// > EditorUI::undoLastAction @ 0x1401b3bc9
// > EditorUI::redoLastAction @ 0x1401b3c39
// > EditorUI::onHideUIBtn @ 0x1401b3ccb
// > EditorUI::onShowUIBtn @ 0x1401b3ddf
// > EditorUI::onPlaytest @ 0x1401b479b
// > EditorUI::onStopPlaytest @ 0x1401b4999
// > EditorUI::zoomIn @ 0x1401b4b0e
// > EditorUI::zoomOut @ 0x1401b4b8e
// > EditorUI::selectBuildTab @ 0x1401b5767
// > EditorUI::editObject @ 0x1401bb44f
// > EditorUI::editObjectSpecial @ 0x1401bd4f8
// > EditorUI::editObjectSpecial @ 0x1401bdbef
// > EditorUI::editObjectSpecial @ 0x1401bdcb9
// > EditorUI::editGroup @ 0x1401be79c
// > EditorUI::triggerSwipeMode @ 0x1401bf824
// > EditorUI::ccTouchMoved @ 0x1401c09b5
// > EditorUI::ccTouchEnded @ 0x1401c15a8
// > EditorUI::ccTouchEnded @ 0x1401c1603
// > EditorUI::ccTouchEnded @ 0x1401c1911
// > EditorUI::handleAction @ 0x1401c1da1
// > EditorUI::handleEditorAction @ 0x1401c22fa
// > EditorUI::handleEditorAction @ 0x1401c2322
// > EditorUI::handleEditorAction @ 0x1401c23a3
// > EditorUI::handleEditorAction @ 0x1401c241b
// > EditorUI::handleEditorAction @ 0x1401c2b46
// > EditorUI::handleEditorAction @ 0x1401c2f2d
// > EditorUI::handleEditorAction @ 0x1401c3371
// > EditorUI::handleEditorAction @ 0x1401c3bb6
// > EditorUI::handleEditorAction @ 0x1401c3d94
// > EditorUI::handleEditorAction @ 0x1401c3f8a
// > EditorUI::handleEditorAction @ 0x1401c4355
// > EditorUI::handleEditorAction @ 0x1401c43f8
// > sub_1401C4B40 @ 0x1401c4c64
// > sub_1401C4B40 @ 0x1401c504c
// > EditorUI::onDuplicate @ 0x1401c5563
// > EditorUI::onCopy @ 0x1401c5c74
// > EditorUI::onPaste @ 0x1401c5e71
// > EditorUI::onCopyState @ 0x1401c704b
// > EditorUI::onPasteState @ 0x1401c7123
// > EditorUI::onPasteColor @ 0x1401c72e9
// > EditorUI::onDeselectAll @ 0x1401c98f4
// > EditorUI::onDpadStep @ 0x1401f3fcc
// > EditorUI::moveObjectCall_1 @ 0x1401feba9
// > EditorUI::moveObjectCall_1 @ 0x1401febe0
// > EditorUI::moveObjectCall_1 @ 0x1401febec
// > EditorUI::moveObjectCall_1 @ 0x1401febf8
// > EditorUI::moveObjectCall_1 @ 0x1401fec04
// > EditorUI::moveObjectCall_1 @ 0x1401fec10
// > EditorUI::transformObjectCall_1 @ 0x1401ff3c8
// > EditorUI::transformObjectCall_1 @ 0x1401ff3d4
// > EditorUI::transformObjectCall_1 @ 0x1401ff3e0
// > EditorUI::activateScaleControl @ 0x140202c01
// > EditorUI::activateTransformControl @ 0x1402032d4
// > GameManager::dataLoaded @ 0x140283366
// > GameManager::firstLoad @ 0x140285406
// > GameManager::encodeDataTo @ 0x140285f0a
// > EditorSoundsSettingsPopup::onDownloadAll @ 0x1403d4de3
// > EditorSoundsSettingsPopup::onDownloadAll @ 0x1403d4ee5
// > EditorSoundsSettingsPopup::FLAlert_Clicked @ 0x1403d514a
// > LevelEditorLayer::init @ 0x1403ed932
// > LevelEditorLayer::init @ 0x1403ed9c8
// > LevelEditorLayer::init @ 0x1403eef0c
// > LevelEditorLayer::saveLevel @ 0x1403ff5b7
// > LevelEditorLayer::doAutoSave @ 0x14040926d
// > LevelEditorLayer::doAutoBackup @ 0x14040970b
// > LoadingLayer::loadAssets @ 0x14046a1dd
// > sub_14051E830 @ 0x14051e887
// > sub_14051E830 @ 0x14051e8aa
// > PlayLayer::tryShowDeathMarkers @ 0x140520555
// > PlayLayer::tryShowDeathMarkers @ 0x14052059b
// > PlayLayer::tryShowDeathMarkers @ 0x1405205b3
// > PlayLayer::tryShowDeathMarkers @ 0x1405205ee
// > SetupSFXPopup::createSFXWidget @ 0x1405de027
// > SFXBrowser::setupSFXBrowser @ 0x140618fa3
// > ??> @ 0x140918dc4
//
// 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 11:27:38 +0000
//
// Hidden C++ exception states: #wind=6
__int64 EditorSFXManager::sharedState()
{
__int64 result; // rax
_QWORD *v1; // rax
_QWORD *v2; // rax
__int64 v3; // rcx
cocos2d::CCObject *v4; // rax
__int64 v5; // rcx
cocos2d::CCObject *v6; // rax
char *v7; // [rsp+38h] [rbp+10h]
result = qword_14090BFA0;
if ( !qword_14090BFA0 )
{
v7 = (char *)operator new(0x110u);
*(_DWORD *)v7 = 0;
*((_QWORD *)v7 + 1) = 0;
*((_QWORD *)v7 + 2) = 0;
v1 = operator new(0x20u);
*v1 = v1;
v1[1] = v1;
*((_QWORD *)v7 + 1) = v1;
*((_QWORD *)v7 + 3) = 0;
*((_QWORD *)v7 + 4) = 0;
*((_QWORD *)v7 + 5) = 0;
*((_QWORD *)v7 + 6) = 7;
*((_QWORD *)v7 + 7) = 8;
*(_DWORD *)v7 = 1065353216;
sub_14003F200((__int64)(v7 + 24), 0x10u, *((_QWORD *)v7 + 1));
sub_1400666C0((__int64)(v7 + 64));
sub_14003EC10((__int64)(v7 + 128));
*((_QWORD *)v7 + 24) = 0;
*((_QWORD *)v7 + 25) = 0;
v2 = operator new(0x48u);
*v2 = v2;
v2[1] = v2;
v2[2] = v2;
*((_WORD *)v2 + 12) = 257;
*((_QWORD *)v7 + 24) = v2;
*((_QWORD *)v7 + 26) = 0;
*((_QWORD *)v7 + 27) = 0;
*((_DWORD *)v7 + 56) = 1;
*(_OWORD *)(v7 + 232) = 0;
*((_QWORD *)v7 + 31) = 0;
*((_QWORD *)v7 + 32) = 15;
v7[232] = 0;
*((_DWORD *)v7 + 66) = 1065353216;
v7[268] = 0;
qword_14090BFA0 = (__int64)v7;
v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(v3);
*((_QWORD *)v7 + 26) = v4;
cocos2d::CCObject::retain(v4);
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5);
*((_QWORD *)v7 + 27) = v6;
cocos2d::CCObject::retain(v6);
*((_DWORD *)v7 + 56) = 1;
*((_DWORD *)v7 + 66) = 1065353216;
return qword_14090BFA0;
}
return result;
}