//
// EditorUI::toggleSnap from 0x10000bee0 to 0x10000bf58 (120 bytes)
//
// 2 xrefs:
// > EditorUI::keyDown @ 0x100050d4c
// > EditorUI::init @ 0x100009af6
//
// 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 *v2; // rax
bool GameVariable; // r15
GameManager *v4; // rax
ButtonSprite *v5; // rax
const char *v6; // rsi
v2 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v2, "0008");
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0008", !GameVariable);
v5 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_snapBtn->getNormalImage)(a1->m_snapBtn);
v6 = "GJ_button_02.png";
if ( GameVariable )
v6 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v5, v6);
}