//
// EditorSFXManager::sharedState from 0x1008e0df0 to 0x1008e0ed6 (230 bytes)
//
// 147 xrefs:
// > EditorUI::init @ 0x100007929
// > EditorUI::init @ 0x100007984
// > EditorUI::init @ 0x1000079f9
// > EditorUI::toggleMode @ 0x100007dec
// > EditorUI::toggleSwipe @ 0x100007eac
// > EditorUI::toggleFreeMove @ 0x100007fac
// > EditorUI::toggleSnap @ 0x100008040
// > EditorUI::toggleEnableRotate @ 0x1000080a2
// > EditorUI::undoLastAction @ 0x100008129
// > EditorUI::redoLastAction @ 0x1000081c9
// > EditorUI::onDeleteSelected @ 0x100008285
// > EditorUI::onHideUIBtn @ 0x100008527
// > EditorUI::onPlaytest @ 0x1000087a2
// > EditorUI::onStopPlaytest @ 0x100008959
// > EditorUI::zoomIn @ 0x1000089be
// > EditorUI::zoomOut @ 0x100008a9e
// > EditorUI::onPause @ 0x100008dfc
// > EditorUI::onPause @ 0x100008e68
// > EditorUI::onSettings @ 0x1000092ee
// > EditorUI::editObject @ 0x10000942d
// > EditorUI::editGroup @ 0x10000a867
// > EditorUI::onShowUIBtn @ 0x10000b68f
// > EditorUI::clickOnPosition @ 0x10000c82d
// > EditorUI::onDelete @ 0x10000cc75
// > EditorUI::onCreateButton @ 0x1000108a0
// > EditorUI::selectBuildTab @ 0x100010954
// > EditorUI::playSoundForCreatedObject @ 0x1000119d3
// > EditorUI::playSoundForCreatedObject @ 0x1000119e5
// > EditorUI::editObjectSpecial @ 0x10001912d
// > sub_100019580 @ 0x100019589
// > EditorUI::editObjectOptions @ 0x100019dac
// > EditorUI::triggerSwipeMode @ 0x10001a801
// > LevelEditorLayer::init @ 0x1000a9d80
// > LevelEditorLayer::init @ 0x1000a9d9f
// > LevelEditorLayer::init @ 0x1000ab05f
// > LevelEditorLayer::saveLevel @ 0x1000c649e
// > sub_1000D5190 @ 0x1000d5336
// > sub_1000D5780 @ 0x1000d598b
// > EditorPauseLayer::customSetup @ 0x10027de18
// > EditorPauseLayer::onResume @ 0x10027e262
// > EditorPauseLayer::onSaveAndExit @ 0x10027e3ab
// > EditorPauseLayer::onExitNoSave @ 0x10027e5c5
// > EditorPauseLayer::editorSFXSliderChanged @ 0x10027eb03
// > EditorPauseLayer::onExitEditor @ 0x10027f409
// > EditorPauseLayer::FLAlert_Clicked @ 0x10027f48b
// > EditorPauseLayer::keyBackClicked @ 0x10027f592
// > sub_10027F600 @ 0x10027f61a
// > GameManager::dataLoaded @ 0x10037351e
// > GameManager::firstLoad @ 0x100374df2
// > GameManager::encodeDataTo @ 0x100375759
// > LoadingLayer::loadAssets @ 0x10038c7f2
// > SFXBrowser::setupSFXBrowser @ 0x10043009d
// > SetupSFXPopup::createSFXWidget @ 0x1004b2ffe
// > EditorUI::onDuplicate @ 0x1005b5dcc
// > EditorUI::onCopy @ 0x1005b7d13
// > EditorUI::onPaste @ 0x1005b7e81
// > EditorUI::onPasteInPlace @ 0x1005b81a9
// > EditorUI::onCopyState @ 0x1005b85d3
// > EditorUI::onPasteState @ 0x1005b8643
// > EditorUI::onPasteColor @ 0x1005b86b3
// > EditorUI::selectObjectsInRect @ 0x1005b906f
// > EditorUI::onDeselectAll @ 0x1005b9e03
// > EditorUI::ccTouchMoved @ 0x10060a774
// > EditorUI::ccTouchEnded @ 0x10060ae2a
// > EditorUI::ccTouchEnded @ 0x10060b0cd
// > EditorUI::ccTouchEnded @ 0x10060b202
// > EditorUI::handleEditorAction @ 0x10060c923
// > EditorUI::handleEditorAction @ 0x10060cab5
// > EditorUI::handleEditorAction @ 0x10060cd58
// > EditorUI::handleEditorAction @ 0x10060cd81
// > EditorUI::handleEditorAction @ 0x10060cf2b
// > EditorUI::handleEditorAction @ 0x10060cfad
// > sub_10060DCB0 @ 0x10060dd98
// > sub_10060DCB0 @ 0x10060df2a
// > EditorUI::moveObjectCall_1 @ 0x10060e478
// > EditorUI::moveObjectCall_1 @ 0x10060e4a0
// > EditorUI::transformObjectCall_1 @ 0x10060ed29
// > EditorUI::activateTransformControl @ 0x100611817
// > EditorUI::activateScaleControl @ 0x100612bf5
// > EditorUI::onDpadStep @ 0x10063af95
// > EditorUI::onDpadStep @ 0x10063afb6
// > GJTransformControl::ccTouchMoved @ 0x100646e15
// > EditButtonBar::onLeft @ 0x1006b49e6
// > EditButtonBar::onRight @ 0x1006b4a66
// > EditButtonBar::onDotClicked @ 0x1006b4b07
// > DeathMarkerLayer::init @ 0x1008bd398
// > sub_1008BF440 @ 0x1008bf452
// > sub_1008C1A60 @ 0x1008c1a72
// > EditorSFXActionConfigLayer::init @ 0x1008df905
// > sub_1008DFA20 @ 0x1008dfa2a
// > sub_1008DFA20 @ 0x1008dfa46
// > sub_1008DFA20 @ 0x1008dfa5c
// > sub_1008DFAD0 @ 0x1008dfad9
// > EditorSFXActionConfigLayer::refreshRows @ 0x1008dfc28
// > EditorSFXActionConfigLayer::refreshRows @ 0x1008e0039
// > EditorSFXActionConfigLayer::onDeleteSound @ 0x1008e060a
// > EditorSFXActionConfigLayer::onEditSound @ 0x1008e065c
// > EditorSFXActionConfigLayer::onPreviewSound @ 0x1008e070c
// > EditorSFXActionConfigLayer::sfxBrowserClosed @ 0x1008e07e6
// > sub_1008E0860 @ 0x1008e08a0
// > EditorSFXSettingsPopup::getValue @ 0x1008eeda5
// > EditorSFXSettingsPopup::valueDidChange @ 0x1008eedd6
// > sub_1008F0AC0 @ 0x1008f0bb4
// > sub_1008F0AC0 @ 0x1008f0bc2
// > sub_1008F0AC0 @ 0x1008f0c56
// > sub_1008F0AC0 @ 0x1008f0c64
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f16ce
// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f16dc
// > sub_1008F68C0 @ 0x1008f6910
// > sub_1008F68C0 @ 0x1008f691e
// > sub_1008F6E60 @ 0x1008f6e7a
// > sub_1008F6E60 @ 0x1008f6e84
// > sub_1008F6E60 @ 0x1008f6ea3
// > sub_1008F6E60 @ 0x1008f6ef4
// > sub_1008F6E60 @ 0x1008f7029
// > sub_1008F7400 @ 0x1008f7425
// > sub_1008F7400 @ 0x1008f742f
// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0x1008f7e98
// > EditorSoundConfigInfoLayer::likedItem @ 0x1008f89b4
// > EditorSoundConfigInfoLayer::likedItem @ 0x1008f89be
// > sub_1008F8A00 @ 0x1008f8a4f
// > sub_1008F8A00 @ 0x1008f8a59
// > sub_1008F8AA0 @ 0x1008f8aef
// > sub_1008F8AA0 @ 0x1008f8b12
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8f51
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8fa8
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f9054
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f911a
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f9220
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1008f9791
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x1008f979b
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1008f99ec
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x1008f9a31
// > EditorSoundConfigUploadPopup::uploadEditorSoundFinished @ 0x1008fce28
// > EditorSoundsLayer::buildContentForTab @ 0x1008fe5cb
// > sub_1008FF950 @ 0x1008ff971
// > sub_1008FF950 @ 0x1008ff9b4
// > EditorSoundsSettingsPopup::FLAlert_Clicked @ 0x1008ffd2b
// > sub_1008FFD80 @ 0x1008ffd9d
// > PlayLayer::tryShowDeathMarkers @ 0x100962057
// > PlayLayer::tryShowDeathMarkers @ 0x100962073
// > PlayLayer::tryShowDeathMarkers @ 0x10096211e
// > PlayLayer::tryShowDeathMarkers @ 0x10096213a
// > PlayLayer::tryShowDeathMarkers @ 0x1009623ac
// > PlayLayer::tryShowDeathMarkers @ 0x1009623f8
// > PlayLayer::tryShowDeathMarkers @ 0x100962414
// > PlayLayer::tryShowDeathMarkers @ 0x100962454
//
// 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:37:46 +0000
//
__int64 EditorSFXManager::sharedState()
{
__int64 result; // rax
_OWORD *v1; // rbx
void *v2; // rax
void *v3; // rax
result = qword_100BE7118;
if ( !qword_100BE7118 )
{
v1 = operator new(0xC8u);
*v1 = 0;
v1[1] = 0;
*((_DWORD *)v1 + 8) = 1065353216;
*(_OWORD *)((char *)v1 + 40) = 0;
*(_OWORD *)((char *)v1 + 56) = 0;
*((_DWORD *)v1 + 18) = 1065353216;
v1[5] = 0;
v1[6] = 0;
*((_DWORD *)v1 + 28) = 1065353216;
v1[8] = 0;
*((_QWORD *)v1 + 15) = v1 + 8;
v1[9] = 0;
*((_DWORD *)v1 + 40) = 1;
*(_OWORD *)((char *)v1 + 168) = 0;
*((_QWORD *)v1 + 23) = 0;
*((_DWORD *)v1 + 48) = 1065353216;
*((_BYTE *)v1 + 196) = 0;
qword_100BE7118 = (__int64)v1;
v2 = sub_1007FE900();
*((_QWORD *)v1 + 18) = v2;
cocos2d::CCObject::retain((__int64)v2);
v3 = sub_1007FE900();
*((_QWORD *)v1 + 19) = v3;
cocos2d::CCObject::retain((__int64)v3);
*((_DWORD *)v1 + 40) = 1;
*((_DWORD *)v1 + 48) = 1065353216;
return qword_100BE7118;
}
return result;
}