//
// EditorUI::onStickyToggle from 0x140112960 to 0x140112a02 (162 bytes)
//
// 3 xrefs:
// > EditorUI::init @ 0x1400e0750
// > ??> @ 0x1406c9048
// > ??> @ 0x1406c9054
//
// 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
//
void EditorUI::onStickyToggle(EditorUI *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rcx
void *v4; // [rsp+30h] [rbp+8h]
void *v5; // [rsp+30h] [rbp+8h]
if ( !qword_1406C2ED8 )
{
v4 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
GameManager::toggleGameVariable((GameManager *)a1, "0180");
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
a1->m_linkControlsDisabled = GameManager::getGameVariable(v3, "0180");
EditorUI::updateButtons(a1);
}