{"type": "func", "start": 6840148, "end": 6840284, "name": "EditorUI::toggleSwipe", "pseudocode": "// \n// EditorUI::toggleSwipe from 0x685f54 to 0x685fdc (136 bytes)\n// \n// 5 xrefs:\n// > EditorUI::init @ 0x6bdd04\n// > EditorUI::keyDown @ 0x6c5cc0\n// > <???> @ 0x6b850\n// > EditorUI::init @ 0x6bc4f0\n// > <???> @ 0x122b868\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 EditorUI::toggleSwipe(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  bool m_swipeEnabled; // w1\n  CCMenuItemSpriteExtra *m_swipeBtn; // x0\n  CCMenuItemSpriteExtra_vtbl *v5; // x2\n  ButtonSprite *v6; // x0\n  GameManager *v7; // x0\n\n  m_swipeEnabled = a1->m_swipeEnabled;\n  m_swipeBtn = a1->m_swipeBtn;\n  v5 = m_swipeBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  a1->m_swipeEnabled = !m_swipeEnabled;\n  v6 = (ButtonSprite *)v5->getNormalImage(m_swipeBtn);\n  if ( a1->m_swipeEnabled )\n    ButtonSprite::updateBGImage(v6, \"GJ_button_02.png\");\n  else\n    ButtonSprite::updateBGImage(v6, \"GJ_button_01.png\");\n  v7 = GameManager::sharedState();\n  GameManager::setGameVariable(v7, \"0003\", a1->m_swipeEnabled);\n}", "assembly": "; \n; EditorUI::toggleSwipe from 0x685f54 to 0x685fdc (136 bytes)\n; \n; 5 xrefs:\n; > EditorUI::init @ 0x6bdd04\n; > EditorUI::keyDown @ 0x6c5cc0\n; > <???> @ 0x6b850\n; > EditorUI::init @ 0x6bc4f0\n; > <???> @ 0x122b868\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x685f54\nMOV             X29, SP                                                ; +0x4, 0x685f58\nLDR             X2, [X0,#0x368]                                        ; +0x8, 0x685f5c\nLDRB            W1, [X0,#0x314]                                        ; +0xc, 0x685f60\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x10, 0x685f64\nMOV             X19, X0                                                ; +0x14, 0x685f68\nMOV             X0, X2                                                 ; +0x18, 0x685f6c\nLDR             X2, [X2]                                               ; +0x1c, 0x685f70\nEOR             W1, W1, #1                                             ; +0x20, 0x685f74\nSTRB            W1, [X19,#0x314]                                       ; +0x24, 0x685f78\nLDR             X1, [X2,#0x420]                                        ; +0x28, 0x685f7c\nBLR             X1                                                     ; +0x2c, 0x685f80\nLDRB            W1, [X19,#0x314]                                       ; +0x30, 0x685f84\nCBZ             W1, loc_685FB4                                         ; +0x34, 0x685f88\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x38, 0x685f8c\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x40, 0x685f94\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x44, 0x685f98\nLDRB            W2, [X19,#0x314]; bool                                 ; +0x48, 0x685f9c\nADRP            X1, #a0003@PAGE; \"0003\"                                ; +0x4c, 0x685fa0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0x685fa4\nADD             X1, X1, #a0003@PAGEOFF; \"0003\"                         ; +0x54, 0x685fa8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0x685fac\nB               _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x5c, 0x685fb0\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x60, 0x685fb4\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x68, 0x685fbc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6c, 0x685fc0\nLDRB            W2, [X19,#0x314]; bool                                 ; +0x70, 0x685fc4\nADRP            X1, #a0003@PAGE; \"0003\"                                ; +0x74, 0x685fc8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x78, 0x685fcc\nADD             X1, X1, #a0003@PAGEOFF; \"0003\"                         ; +0x7c, 0x685fd0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x685fd4\nB               _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x84, 0x685fd8", "xrefs": ["EditorUI::init @ 0x6bdd04", "EditorUI::keyDown @ 0x6c5cc0", "<???> @ 0x6b850", "EditorUI::init @ 0x6bc4f0", "<???> @ 0x122b868"], "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"}