//
// ObjectToolbox::sharedState from 0x100316630 to 0x10031668c (92 bytes)
//
// 22 xrefs:
// > GJSmartTemplate::offsetForDir @ 0x10000747c
// > sub_100008C9C @ 0x100008d78
// > PlayLayer::setupHasCompleted @ 0x10013fdb0
// > EditorUI::getCreateBtn @ 0x10018445c
// > EditorUI::updateDeleteButtons @ 0x10018789c
// > EditorUI::updateDeleteButtons @ 0x100187928
// > EditorUI::updateDeleteButtons @ 0x100187bd0
// > SelectArtLayer::init @ 0x10020de94
// > LoadingLayer::loadAssets @ 0x10026f364
// > GJBaseGameLayer::addGuideArt @ 0x1002a46a8
// > GJBaseGameLayer::addGuideArt @ 0x1002a47bc
// > GJBaseGameLayer::addGuideArt @ 0x1002a49b8
// > GameObject::createWithKey @ 0x1002f1400
// > sub_1002FB254 @ 0x1002fb390
// > GameObject::setupCustomSprites @ 0x10034e4ac
// > GameObject::setupCustomSprites @ 0x100350a1c
// > GameObject::setupCustomSprites @ 0x10035abd4
// > GameObject::playDestroyObjectAnim @ 0x1003e8288
// > LevelEditorLayer::createObject @ 0x1003fa01c
// > EditorUI::updateGridNodeSize @ 0x100474fd0
// > sub_100475030 @ 0x100475044
// > EditorUI::createSmartObjectsFromType @ 0x100479b88
//
// 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:03:15 +0000
//
__int64 ObjectToolbox::sharedState()
{
__int64 result; // x0
_QWORD *v1; // x19
result = qword_1009F67D0;
if ( !qword_1009F67D0 )
{
v1 = operator new(0x158u);
cocos2d::CCNode::CCNode((__int64)v1);
*v1 = off_10092F590;
v1[41] = 0;
v1[42] = 0;
v1[40] = v1 + 41;
qword_1009F67D0 = (__int64)v1;
ObjectToolbox::init(v1);
return qword_1009F67D0;
}
return result;
}