//
// EditorUI::toggleSnap from 0x1003c7360 to 0x1003c73d4 (116 bytes)
//
// 3 xrefs:
// > EditorUI::init @ 0x1003c6dd0
// > EditorUI::keyDown @ 0x1003fa1d8
// > EditorUI::init @ 0x1003c558c
//
// 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 __fastcall EditorUI::toggleSnap(EditorUI *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
_BOOL4 GameVariable; // w21
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 *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_snapBtn->getNormalImage)(a1->m_snapBtn);
if ( GameVariable )
v7 = "GJ_button_01.png";
else
v7 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v6, v7);
}