//
// ObjectToolbox::sharedState from 0x10066a410 to 0x10066a47c (108 bytes)
//
// 31 xrefs:
// > EditorUI::updateGridNodeSize_1 @ 0x10002f216
// > EditorUI::updateGridNodeSize_1 @ 0x10002f248
// > EditorUI::updateGridNodeSize @ 0x10002f29c
// > EditorUI::updateDeleteButtons @ 0x100032181
// > EditorUI::updateDeleteButtons @ 0x10003228d
// > EditorUI::updateDeleteButtons @ 0x1000325c5
// > EditorUI::getCreateBtn @ 0x10003377f
// > EditorUI::createSmartObjectsFromType @ 0x100043e04
// > PlayLayer::setupHasCompleted @ 0x1000ae654
// > LevelEditorLayer::createObject @ 0x1000e0312
// > GJBaseGameLayer::addGuideArt @ 0x1001625be
// > GJBaseGameLayer::addGuideArt @ 0x100162658
// > GJBaseGameLayer::addGuideArt @ 0x1001626c5
// > GameObject::playDestroyObjectAnim @ 0x10025ee2f
// > SelectArtLayer::init @ 0x10026fec0
// > LoadingLayer::loadAssets @ 0x1003a35ef
// > GJSmartTemplate::keyFromNeighbors @ 0x100425f9f
// > GJSmartTemplate::keyFromNeighbors @ 0x100426001
// > GJSmartTemplate::keyFromNeighbors @ 0x10042606b
// > GJSmartTemplate::keyFromNeighbors @ 0x1004260d2
// > GJSmartTemplate::keyFromNeighbors @ 0x10042612e
// > GJSmartTemplate::keyFromNeighbors @ 0x100426196
// > GJSmartTemplate::keyFromNeighbors @ 0x1004261f1
// > GJSmartTemplate::keyFromNeighbors @ 0x100426252
// > GJSmartTemplate::offsetForDir @ 0x100426403
// > GJSmartBlockPreview::addTemplateGuide_1 @ 0x100428d77
// > GameObject::setupCustomSprites @ 0x100445090
// > GameObject::setupCustomSprites @ 0x100448032
// > GameObject::setupCustomSprites @ 0x10045178c
// > GameObject::createWithKey @ 0x10059d46c
// > GameObject::objectFromVector @ 0x1005bfe1c
//
// 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; // rax
char *v1; // rbx
result = (ObjectToolbox *)qword_1009A3940;
if ( !qword_1009A3940 )
{
v1 = (char *)operator new(0x158u);
cocos2d::CCNode::CCNode((__int64)v1);
*(_QWORD *)v1 = off_1009892D0;
*(_OWORD *)(v1 + 328) = 0;
*((_QWORD *)v1 + 40) = v1 + 328;
qword_1009A3940 = (__int64)v1;
ObjectToolbox::init((ObjectToolbox *)v1);
return (ObjectToolbox *)qword_1009A3940;
}
return result;
}