//
// ObjectToolbox::sharedState from 0x100277a40 to 0x100277a9c (92 bytes)
//
// 22 xrefs:
// > GJSmartTemplate::offsetForDir @ 0x10000747c
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100008d78
// > PlayLayer::setupHasCompleted @ 0x1001170f0
// > SelectArtLayer::init @ 0x10017c7b4
// > LoadingLayer::loadAssets @ 0x1001d6e00
// > GJBaseGameLayer::addGuideArt @ 0x1002075c8
// > GJBaseGameLayer::addGuideArt @ 0x1002076dc
// > GJBaseGameLayer::addGuideArt @ 0x1002078d8
// > GameObject::createWithKey @ 0x100254264
// > GameObject::objectFromVector @ 0x10025e18c
// > GameObject::setupCustomSprites @ 0x1002af704
// > GameObject::setupCustomSprites @ 0x1002b1c74
// > GameObject::setupCustomSprites @ 0x1002bbe2c
// > GameObject::playDestroyObjectAnim @ 0x100349d64
// > LevelEditorLayer::createObject @ 0x10035a0e4
// > EditorUI::updateGridNodeSize @ 0x1003e76a4
// > EditorUI::updateGridNodeSize @ 0x1003e76e8
// > EditorUI::updateDeleteButtons @ 0x1003e95a4
// > EditorUI::updateDeleteButtons @ 0x1003e9630
// > EditorUI::updateDeleteButtons @ 0x1003e98d8
// > EditorUI::getCreateBtn @ 0x1003ea280
// > EditorUI::createSmartObjectsFromType @ 0x1003f2648
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
ObjectToolbox *__fastcall ObjectToolbox::sharedState()
{
ObjectToolbox *result; // x0
ObjectToolbox *v1; // x19
result = (ObjectToolbox *)qword_10086D8E0;
if ( !qword_10086D8E0 )
{
v1 = (ObjectToolbox *)operator new(0x158u);
cocos2d::CCNode::CCNode((__int64)v1);
v1->__vftable = (ObjectToolbox_vtbl *)off_1007D58E0;
v1->m_allKeys.__tree_.__pair1_.__value_.__left_ = nullptr;
v1->m_allKeys.__tree_.__pair3_.__value_ = 0;
v1->m_allKeys.__tree_.__begin_node_ = &v1->m_allKeys.__tree_.__pair1_.__value_;
qword_10086D8E0 = (__int64)v1;
ObjectToolbox::init(v1);
return (ObjectToolbox *)qword_10086D8E0;
}
return result;
}