//
// EditorUI::toggleSwipe from 0x100470c98 to 0x100470d10 (120 bytes)
//
// 3 xrefs:
// > EditorUI::handleEditorAction @ 0x1001632d8
// > EditorUI::init @ 0x10047094c
// > EditorUI::init @ 0x10046ed8c
//
// 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 11:05:38 +0000
//
__int64 __fastcall EditorUI::toggleSwipe(__int64 a1)
{
__int64 v2; // x0
const char *v3; // x1
__int64 v4; // x0
__n128 v5; // q0
__int64 v6; // x0
*(_BYTE *)(a1 + 860) ^= 1u;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 952) + 1072LL))(*(_QWORD *)(a1 + 952));
if ( *(_BYTE *)(a1 + 860) )
v3 = "GJ_button_02.png";
else
v3 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v2, (__int64)v3);
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0003", *(unsigned __int8 *)(a1 + 860));
v6 = EditorSFXManager::sharedState(v5);
return EditorSFXManager::playAction(v6, 192, 189);
}