//
// EditorUI::toggleSwipe from 0x14010ffc0 to 0x14011005e (158 bytes)
//
// 4 xrefs:
// > EditorUI::init @ 0x1400e183e
// > EditorUI::keyDown @ 0x140125a9b
// > EditorUI::init @ 0x1400dfea8
// > ??> @ 0x1406c8e80
//
// 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
//
// Hidden C++ exception states: #wind=1
void EditorUI::toggleSwipe(EditorUI *a1, cocos2d::CCObject *a2)
{
ButtonSprite *v3; // rax
const char *v4; // rdx
GameManager *v5; // rcx
void *v6; // [rsp+30h] [rbp+8h]
a1->m_swipeEnabled = !a1->m_swipeEnabled;
v3 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_swipeBtn->getNormalImage)(
a1->m_swipeBtn,
a2);
v4 = "GJ_button_01.png";
if ( a1->m_swipeEnabled )
v4 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v3, v4);
v5 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v6 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v5 = (GameManager *)qword_1406C2ED8;
}
GameManager::setGameVariable(v5, "0003", a1->m_swipeEnabled);
}