{"type": "func", "start": 4298928632, "end": 4298928736, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x1003c71f8 to 0x1003c7260 (104 bytes)\n// \n// 3 xrefs:\n// > EditorUI::init @ 0x1003c6dc0\n// > EditorUI::keyDown @ 0x1003fa0f8\n// > EditorUI::init @ 0x1003c5510\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::toggleSwipe(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  ButtonSprite *v3; // x0\n  const char *v4; // x1\n  GameManager *v5; // x0\n\n  a1->m_swipeEnabled ^= 1u;\n  v3 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_swipeBtn->getNormalImage)(\n                         a1->m_swipeBtn,\n                         a2);\n  if ( a1->m_swipeEnabled )\n    v4 = \"GJ_button_02.png\";\n  else\n    v4 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v3, v4);\n  v5 = GameManager::sharedState();\n  GameManager::setGameVariable(v5, \"0003\", a1->m_swipeEnabled);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x1003c71f8 to 0x1003c7260 (104 bytes)\n; \n; 3 xrefs:\n; > EditorUI::init @ 0x1003c6dc0\n; > EditorUI::keyDown @ 0x1003fa0f8\n; > EditorUI::init @ 0x1003c5510\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003c71f8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003c71fc\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003c7200\nMOV             X19, X0                                                ; +0xc, 0x1003c7204\nLDRB            W8, [X0,#0x304]                                        ; +0x10, 0x1003c7208\nEOR             W8, W8, #1                                             ; +0x14, 0x1003c720c\nSTRB            W8, [X0,#0x304]                                        ; +0x18, 0x1003c7210\nLDR             X0, [X0,#0x358]                                        ; +0x1c, 0x1003c7214\nLDR             X8, [X0]                                               ; +0x20, 0x1003c7218\nLDR             X8, [X8,#0x420]                                        ; +0x24, 0x1003c721c\nBLR             X8                                                     ; +0x28, 0x1003c7220\nLDRB            W8, [X19,#0x304]                                       ; +0x2c, 0x1003c7224\nADRL            X9, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x30, 0x1003c7228\nADRL            X10, aGjButton02Png; \"GJ_button_02.png\"                ; +0x38, 0x1003c7230\nCMP             W8, #0                                                 ; +0x40, 0x1003c7238\nCSEL            X1, X10, X9, NE                                        ; +0x44, 0x1003c723c\nBL              ButtonSprite__updateBGImage                            ; +0x48, 0x1003c7240\nBL              GameManager__sharedState                               ; +0x4c, 0x1003c7244\nLDRB            W2, [X19,#0x304]                                       ; +0x50, 0x1003c7248\nADRL            X1, a0003; \"0003\"                                      ; +0x54, 0x1003c724c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1003c7254\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1003c7258\nB               GameManager__setGameVariable                           ; +0x64, 0x1003c725c", "xrefs": ["EditorUI::init @ 0x1003c6dc0", "EditorUI::keyDown @ 0x1003fa0f8", "EditorUI::init @ 0x1003c5510"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}