//
// EditorUI::toggleSwipe from 0x10000bd80 to 0x10000bde2 (98 bytes)
//
// 2 xrefs:
// > EditorUI::keyDown @ 0x100050b63
// > EditorUI::init @ 0x10000995c
//
// 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::toggleSwipe(EditorUI *a1, cocos2d::CCObject *a2)
{
ButtonSprite *v2; // rax
const char *v3; // rsi
GameManager *v4; // rax
a1->m_swipeEnabled ^= 1u;
v2 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_swipeBtn->getNormalImage)(
a1->m_swipeBtn,
a2);
v3 = "GJ_button_01.png";
if ( a1->m_swipeEnabled )
v3 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v2, v3);
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0003", a1->m_swipeEnabled);
}