//
// ObjectToolbox::sharedState from 0x81d6bc to 0x81d750 (148 bytes)
//
// 23 xrefs:
// > LoadingLayer::loadAssets @ 0x5c4b5c
// > PlayLayer::setupHasCompleted @ 0x5dca24
// > GameObject::createWithKey @ 0x6542b8
// > GameObject::objectFromVector @ 0x654edc
// > LevelEditorLayer::createObject @ 0x671e00
// > EditorUI::updateGridNodeSize @ 0x687768
// > EditorUI::updateGridNodeSize @ 0x687810
// > EditorUI::updateDeleteButtons @ 0x688a80
// > EditorUI::updateDeleteButtons @ 0x688bb8
// > EditorUI::updateDeleteButtons @ 0x688c5c
// > EditorUI::getCreateBtn @ 0x694824
// > EditorUI::createSmartObjectsFromType @ 0x6c12d0
// > GJBaseGameLayer::addGuideArt @ 0x86998c
// > GJBaseGameLayer::addGuideArt @ 0x869b1c
// > GJBaseGameLayer::addGuideArt @ 0x869d44
// > GameObject::setupCustomSprites @ 0x98a66c
// > GameObject::setupCustomSprites @ 0x996800
// > GameObject::setupCustomSprites @ 0x997a60
// > GameObject::playDestroyObjectAnim @ 0x9b2de8
// > GJSmartTemplate::offsetForDir @ 0x9d123c
// > GJSmartBlockPreview::addTemplateGuide @ 0x9d684c
// > SelectArtLayer::init @ 0xa35c48
// > ??> @ 0x907f8
//
// 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 *ObjectToolbox::sharedState()
{
ObjectToolbox *result; // x0
__int64 v1; // x20
result = (ObjectToolbox *)qword_1242A50;
if ( !qword_1242A50 )
{
v1 = operator new(0x170u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v1);
*(_QWORD *)(v1 + 344) = v1 + 328;
*(_QWORD *)(v1 + 352) = v1 + 328;
*(_QWORD *)v1 = &off_1186290;
*(_DWORD *)(v1 + 328) = 0;
*(_QWORD *)(v1 + 336) = 0;
*(_QWORD *)(v1 + 360) = 0;
qword_1242A50 = v1;
ObjectToolbox::init((ObjectToolbox *)v1);
return (ObjectToolbox *)qword_1242A50;
}
return result;
}