//
// EditorSFXManager::sharedState from 0x1004c7450 to 0x1004c74d8 (136 bytes)
//
// 125 xrefs:
// > GJTransformControl::ccTouchMoved @ 0x10015bb98
// > EditorUI::moveObjectCall_1 @ 0x10015cdbc
// > EditorUI::moveObjectCall_1 @ 0x10015cde0
// > EditorUI::transformObjectCall_1 @ 0x10015d4f0
// > EditorUI::activateTransformControl @ 0x10015f908
// > EditorUI::activateScaleControl @ 0x10015ff20
// > EditorUI::ccTouchMoved @ 0x10016192c
// > EditorUI::ccTouchEnded @ 0x100161ed8
// > EditorUI::ccTouchEnded @ 0x10016200c
// > EditorUI::handleEditorAction @ 0x100162cfc
// > EditorUI::handleEditorAction @ 0x100163498
// > EditorUI::handleEditorAction @ 0x1001636b0
// > EditorUI::handleEditorAction @ 0x1001636d0
// > EditorUI::handleEditorAction @ 0x100163840
// > sub_100163D04 @ 0x100163dbc
// > sub_100163D04 @ 0x100163ea0
// > EditorUI::onDpadStep @ 0x100186ab0
// > EditorUI::onDuplicate @ 0x100189b08
// > EditorUI::onCopy @ 0x10018a94c
// > EditorUI::onPaste @ 0x10018aa90
// > EditorUI::onCopyState @ 0x10018af54
// > EditorUI::onPasteState @ 0x10018afac
// > EditorUI::onPasteColor @ 0x10018b010
// > EditorUI::selectObjectsInRect @ 0x1001a62d8
// > EditorUI::onDeselectAll @ 0x1001a6d5c
// > sub_1001F489C @ 0x1001f4bf0
// > sub_10021378C @ 0x100213860
// > LoadingLayer::loadAssets @ 0x10026efe4
// > GameManager::dataLoaded @ 0x1003b8f48
// > GameManager::firstLoad @ 0x1003ba118
// > GameManager::encodeDataTo @ 0x1003ba7a0
// > LevelEditorLayer::init @ 0x1003f6704
// > LevelEditorLayer::init @ 0x1003f671c
// > LevelEditorLayer::init @ 0x1003f7364
// > LevelEditorLayer::saveLevel @ 0x100404d30
// > LevelEditorLayer::doAutoSave @ 0x10040b480
// > LevelEditorLayer::doAutoBackup @ 0x10040b874
// > EditorPauseLayer::customSetup @ 0x100444118
// > EditorPauseLayer::onResume @ 0x100444354
// > EditorPauseLayer::editorSFXSliderChanged @ 0x1004449c4
// > EditorPauseLayer::onExitEditor @ 0x100444b2c
// > EditorUI::toggleMode @ 0x100470c40
// > EditorUI::toggleSwipe @ 0x100470cf8
// > EditorUI::toggleFreeMove @ 0x100470e10
// > EditorUI::toggleSnap @ 0x100470e90
// > EditorUI::toggleEnableRotate @ 0x100470ee8
// > EditorUI::undoLastAction @ 0x100470f60
// > EditorUI::redoLastAction @ 0x100470fc4
// > EditorUI::onDeleteSelected @ 0x100471038
// > EditorUI::onHideUIBtn @ 0x1004711f4
// > EditorUI::onPlaytest @ 0x100471420
// > EditorUI::onStopPlaytest @ 0x1004715b8
// > EditorUI::zoomIn @ 0x10047160c
// > EditorUI::zoomOut @ 0x10047163c
// > EditorUI::onPause @ 0x100471854
// > EditorUI::onSettings @ 0x100471bec
// > EditorUI::editObject @ 0x100471d14
// > EditorUI::editGroup @ 0x100472b28
// > sub_1004734B8 @ 0x100473528
// > EditorUI::clickOnPosition @ 0x1004740f0
// > EditorUI::onDelete @ 0x100474398
// > EditorUI::onCreateButton @ 0x100476cac
// > EditorUI::selectBuildTab @ 0x100476d58
// > EditorUI::playSoundForCreatedObject @ 0x100477990
// > EditorUI::playSoundForCreatedObject @ 0x1004779a0
// > EditorUI::editObjectSpecial @ 0x10047c2c0
// > sub_10047C628 @ 0x10047c638
// > EditorUI::editObjectOptions @ 0x10047cc0c
// > EditorUI::triggerSwipeMode @ 0x10047d2a0
// > EditButtonBar::onLeft @ 0x1004a3768
// > EditButtonBar::onRight @ 0x1004a37ac
// > EditButtonBar::onDotClicked @ 0x1004a3830
// > sub_1004B14BC @ 0x1004b14d8
// > sub_1004B302C @ 0x1004b3048
// > sub_1004C641C @ 0x1004c642c
// > sub_1004C641C @ 0x1004c6440
// > sub_1004C6460 @ 0x1004c6470
// > EditorSFXActionConfigLayer::refreshRows @ 0x1004c65ac
// > EditorSFXActionConfigLayer::refreshRows @ 0x1004c6904
// > EditorSFXActionConfigLayer::onDeleteSound @ 0x1004c6e58
// > EditorSFXActionConfigLayer::onEditSound @ 0x1004c6eac
// > EditorSFXActionConfigLayer::onPreviewSound @ 0x1004c6f54
// > EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1004c700c
// > EditorSFXSettingsPopup::getValue @ 0x1004cbfc4
// > EditorSFXSettingsPopup::valueDidChange @ 0x1004cc00c
// > sub_1004CD5C0 @ 0x1004cd660
// > sub_1004CD5C0 @ 0x1004cd668
// > sub_1004CD5C0 @ 0x1004cd674
// > sub_1004CD5C0 @ 0x1004cd67c
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1004cdfb8
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1004cdfc0
// > sub_1004D224C @ 0x1004d228c
// > sub_1004D224C @ 0x1004d229c
// > sub_1004D268C @ 0x1004d26a8
// > sub_1004D268C @ 0x1004d26b0
// > sub_1004D268C @ 0x1004d26c4
// > sub_1004D268C @ 0x1004d2700
// > sub_1004D268C @ 0x1004d2790
// > sub_1004D2A34 @ 0x1004d2a54
// > sub_1004D2A34 @ 0x1004d2a5c
// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0x1004d3250
// > EditorSoundConfigInfoLayer::likedItem @ 0x1004d39d4
// > EditorSoundConfigInfoLayer::likedItem @ 0x1004d39dc
// > sub_1004D3A2C @ 0x1004d3a74
// > sub_1004D3A2C @ 0x1004d3a90
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3d50
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3da8
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3e7c
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3eb8
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1004d3f78
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1004d4410
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1004d4418
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1004d45f0
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1004d462c
// > EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x1004d6b38
// > EditorSoundsLayer::buildContentForTab @ 0x1004d7ea4
// > sub_1004D8EEC @ 0x1004d8f10
// > sub_1004D8EEC @ 0x1004d8f50
// > EditorSoundsSettingsPopup::FLAlert_Clicked @ 0x1004d91bc
// > PlayLayer::tryShowDeathMarkers @ 0x10051e570
// > PlayLayer::tryShowDeathMarkers @ 0x10051e5d8
// > PlayLayer::tryShowDeathMarkers @ 0x10051e5f0
// > PlayLayer::tryShowDeathMarkers @ 0x10051e61c
// > sub_10051E6A8 @ 0x10051e6e0
// > sub_10051E6A8 @ 0x10051e6f0
//
// 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:06:23 +0000
//
__int64 EditorSFXManager::sharedState()
{
__int64 result; // x0
_OWORD *v1; // x0
result = qword_1009F7F90;
if ( !qword_1009F7F90 )
{
v1 = operator new(0xC8u);
*v1 = 0u;
v1[1] = 0u;
*((_DWORD *)v1 + 8) = 1065353216;
*(_OWORD *)((char *)v1 + 40) = 0u;
*(_OWORD *)((char *)v1 + 56) = 0u;
*((_DWORD *)v1 + 18) = 1065353216;
v1[5] = 0u;
v1[6] = 0u;
*((_DWORD *)v1 + 28) = 1065353216;
*((_QWORD *)v1 + 16) = 0;
*((_QWORD *)v1 + 15) = v1 + 8;
*((_QWORD *)v1 + 18) = 0;
*((_QWORD *)v1 + 19) = 0;
*((_QWORD *)v1 + 17) = 0;
*((_DWORD *)v1 + 40) = 1;
*((_QWORD *)v1 + 21) = 0;
*((_QWORD *)v1 + 22) = 0;
*((_QWORD *)v1 + 23) = 0;
*((_DWORD *)v1 + 48) = 1065353216;
*((_BYTE *)v1 + 196) = 0;
qword_1009F7F90 = (__int64)v1;
EditorSFXManager::init();
return qword_1009F7F90;
}
return result;
}