{"type": "func", "start": 4722412, "end": 4722492, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x480eec to 0x480f3c (80 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x48bf4e\n// > EditorUI::handleEditorAction @ 0x6f1ba0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:22 +0000\n// \n\nint __fastcall EditorUI::toggleSwipe(EditorUI *this, cocos2d::CCObject *a2)\n{\n  char *v3; // r0\n  const char *v4; // r1\n  char *updated; // r0\n  GameManager *v6; // r0\n  EditorSFXManager *v7; // r0\n  EditorSFXManager *v8; // r0\n\n  *((_BYTE *)this + 636) ^= 1u;\n  v3 = (char *)(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 174) + 536))(\n                 *((_DWORD *)this + 174),\n                 a2);\n  if ( *((_BYTE *)this + 636) )\n    v4 = \"GJ_button_02.png\";\n  else\n    v4 = \"GJ_button_01.png\";\n  updated = ButtonSprite::updateBGImage(v3, v4);\n  v6 = (GameManager *)GameManager::sharedState((GameManager *)updated);\n  v7 = (EditorSFXManager *)GameManager::setGameVariable(v6, \"0003\", (const char *)*((unsigned __int8 *)this + 636));\n  v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);\n  return EditorSFXManager::playAction(v8, 192, 189);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x480eec to 0x480f3c (80 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x48bf4e\n; > EditorUI::handleEditorAction @ 0x6f1ba0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:22 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x480eec\nMOV             R4, R0                                                 ; +0x2, 0x480eee\nLDRB.W          R3, [R0,#0x27C]                                        ; +0x4, 0x480ef0\nEOR.W           R3, R3, #1                                             ; +0x8, 0x480ef4\nSTRB.W          R3, [R0,#0x27C]                                        ; +0xc, 0x480ef8\nLDR.W           R0, [R0,#0x2B8]                                        ; +0x10, 0x480efc\nLDR             R3, [R0]                                               ; +0x14, 0x480f00\nLDR.W           R3, [R3,#0x218]                                        ; +0x16, 0x480f02\nBLX             R3                                                     ; +0x1a, 0x480f06\nLDRB.W          R3, [R4,#0x27C]                                        ; +0x1c, 0x480f08\nCBNZ            R3, loc_480F14                                         ; +0x20, 0x480f0c\nLDR             R1, =(aGjButton01Png - 0x480F14); \"GJ_button_01.png\"   ; +0x22, 0x480f0e\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x24, 0x480f10\nB               loc_480F18                                             ; +0x26, 0x480f12\nLDR             R1, =(aGjButton02Png - 0x480F1A); \"GJ_button_02.png\"   ; +0x28, 0x480f14\nADD             R1, PC; \"GJ_button_02.png\"                             ; +0x2a, 0x480f16\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x2c, 0x480f18\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x30, 0x480f1c\nLDR             R1, =(a0003 - 0x480F2A); \"0003\"                        ; +0x34, 0x480f20\nLDRB.W          R2, [R4,#0x27C]; bool                                  ; +0x36, 0x480f22\nADD             R1, PC; \"0003\"                                         ; +0x3a, 0x480f26\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x3c, 0x480f28\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x40, 0x480f2c\nMOVS            R1, #0xC0; int                                         ; +0x44, 0x480f30\nMOVS            R2, #0xBD; int                                         ; +0x46, 0x480f32\nPOP.W           {R4,LR}                                                ; +0x48, 0x480f34\nB.W             _ZN16EditorSFXManager10playActionEii; EditorSFXManager::playAction(int,int) ; +0x4c, 0x480f38", "xrefs": ["EditorUI::init @ 0x48bf4e", "EditorUI::handleEditorAction @ 0x6f1ba0"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}