//
// EditorUI::toggleSwipe from 0x7c01b4 to 0x7c0234 (128 bytes)
//
// 5 xrefs:
// > EditorUI::init @ 0x7d0ff4
// > EditorUI::handleEditorAction @ 0xbd7d14
// > ??> @ 0x91570
// > EditorUI::init @ 0x7cf4d4
// > ??> @ 0x1543e58
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:54:06 +0000
//
__int64 __fastcall EditorUI::toggleSwipe(EditorUI *this, cocos2d::CCObject *a2)
{
__int64 v3; // x1
ButtonSprite *v4; // x0
GameManager *updated; // x0
GameManager *v6; // x0
EditorSFXManager *v7; // x0
EditorSFXManager *v8; // x0
v3 = *((_QWORD *)this + 119);
*((_BYTE *)this + 860) ^= 1u;
v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3);
if ( *((_BYTE *)this + 860) )
updated = (GameManager *)ButtonSprite::updateBGImage(v4, "GJ_button_02.png");
else
updated = (GameManager *)ButtonSprite::updateBGImage(v4, "GJ_button_01.png");
v6 = (GameManager *)GameManager::sharedState(updated);
v7 = (EditorSFXManager *)GameManager::setGameVariable(v6, "0003", *((_BYTE *)this + 860));
v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);
return EditorSFXManager::playAction(v8, 192, 189);
}