{"type": "func", "start": 8126900, "end": 8127028, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x7c01b4 to 0x7c0234 (128 bytes)\n// \n// 5 xrefs:\n// > EditorUI::init @ 0x7d0ff4\n// > EditorUI::handleEditorAction @ 0xbd7d14\n// > <???> @ 0x91570\n// > EditorUI::init @ 0x7cf4d4\n// > <???> @ 0x1543e58\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::toggleSwipe(EditorUI *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x1\n  ButtonSprite *v4; // x0\n  GameManager *updated; // x0\n  GameManager *v6; // x0\n  EditorSFXManager *v7; // x0\n  EditorSFXManager *v8; // x0\n\n  v3 = *((_QWORD *)this + 119);\n  *((_BYTE *)this + 860) ^= 1u;\n  v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3);\n  if ( *((_BYTE *)this + 860) )\n    updated = (GameManager *)ButtonSprite::updateBGImage(v4, \"GJ_button_02.png\");\n  else\n    updated = (GameManager *)ButtonSprite::updateBGImage(v4, \"GJ_button_01.png\");\n  v6 = (GameManager *)GameManager::sharedState(updated);\n  v7 = (EditorSFXManager *)GameManager::setGameVariable(v6, \"0003\", *((_BYTE *)this + 860));\n  v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);\n  return EditorSFXManager::playAction(v8, 192, 189);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x7c01b4 to 0x7c0234 (128 bytes)\n; \n; 5 xrefs:\n; > EditorUI::init @ 0x7d0ff4\n; > EditorUI::handleEditorAction @ 0xbd7d14\n; > <???> @ 0x91570\n; > EditorUI::init @ 0x7cf4d4\n; > <???> @ 0x1543e58\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x7c01b4\nMOV             X29, SP                                                ; +0x4, 0x7c01b8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x7c01bc\nMOV             X19, X0                                                ; +0xc, 0x7c01c0\nLDRB            W0, [X0,#0x35C]                                        ; +0x10, 0x7c01c4\nLDR             X1, [X19,#0x3B8]                                       ; +0x14, 0x7c01c8\nEOR             W0, W0, #1                                             ; +0x18, 0x7c01cc\nSTRB            W0, [X19,#0x35C]                                       ; +0x1c, 0x7c01d0\nMOV             X0, X1                                                 ; +0x20, 0x7c01d4\nLDR             X1, [X1]                                               ; +0x24, 0x7c01d8\nLDR             X1, [X1,#0x430]                                        ; +0x28, 0x7c01dc\nBLR             X1                                                     ; +0x2c, 0x7c01e0\nLDRB            W1, [X19,#0x35C]                                       ; +0x30, 0x7c01e4\nCBZ             W1, loc_7C0224                                         ; +0x34, 0x7c01e8\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x38, 0x7c01ec\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x40, 0x7c01f4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x44, 0x7c01f8\nLDRB            W2, [X19,#0x35C]; bool                                 ; +0x48, 0x7c01fc\nADRL            X1, a0003; \"0003\"                                      ; +0x4c, 0x7c0200\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x54, 0x7c0208\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x58, 0x7c020c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0x7c0210\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0x7c0214\nMOV             W1, #0xC0; int                                         ; +0x64, 0x7c0218\nMOV             W2, #0xBD; int                                         ; +0x68, 0x7c021c\nB               _ZN16EditorSFXManager10playActionEii; EditorSFXManager::playAction(int,int) ; +0x6c, 0x7c0220\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x70, 0x7c0224\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x78, 0x7c022c\nB               loc_7C01F8                                             ; +0x7c, 0x7c0230", "xrefs": ["EditorUI::init @ 0x7d0ff4", "EditorUI::handleEditorAction @ 0xbd7d14", "<???> @ 0x91570", "EditorUI::init @ 0x7cf4d4", "<???> @ 0x1543e58"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}