//
// EditorUI::toggleSnap from 0x686064 to 0x6860e8 (132 bytes)
//
// 5 xrefs:
// > EditorUI::init @ 0x6bdd1c
// > EditorUI::keyDown @ 0x6c5ebc
// > ??> @ 0x95280
// > EditorUI::init @ 0x6bc560
// > ??> @ 0x122d188
//
// 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::toggleSnap(EditorUI *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
_BOOL4 GameVariable; // w20
GameManager *v5; // x0
ButtonSprite *v6; // x0
const char *v7; // x1
v3 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v3, "0008");
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, "0008", !GameVariable);
v6 = (ButtonSprite *)a1->m_snapBtn->getNormalImage(a1->m_snapBtn);
if ( GameVariable )
v7 = "GJ_button_01.png";
else
v7 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v6, v7);
}